diff --git a/docs/superpowers/plans/2026-03-13-script-generator-phase2.md b/docs/superpowers/plans/2026-03-13-script-generator-phase2.md new file mode 100644 index 00000000..708308ba --- /dev/null +++ b/docs/superpowers/plans/2026-03-13-script-generator-phase2.md @@ -0,0 +1,1602 @@ +# Script Generator Phase 2 — Frontend Implementation Plan + +> **For agentic workers:** REQUIRED: Use superpowers:subagent-driven-development (if subagents available) or superpowers:executing-plans to implement this plan. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** Build the Script Library frontend — browse PowerShell templates by category, fill parameters, get a live preview, and generate + copy/download the final script. + +**Architecture:** Zustand store owns all browsing/form/generation state; `ScriptLibraryPage` renders a top filter bar above a two-column layout (template list left, generator panel right); client-side `{{key}}` substitution drives the live preview; the real `POST /scripts/generate` is called only on the Generate button. + +**Tech Stack:** React 19, TypeScript, Zustand, Axios (`apiClient`), Tailwind CSS v3, Lucide React, existing shared `` / `