Plan via Lavish
When the user invokes /plan, produce a thorough implementation plan and render it as a Lavish HTML artifact instead of responding with prose. The artifact is the response.
Request
$ARGUMENTS
Workflow
Read the playbooks first — always run both before writing HTML:
npx -y lavish-axi playbook plan npx -y lavish-axi playbook diagramIf the plan involves comparisons or code, also run
npx -y lavish-axi playbook comparisonand/ornpx -y lavish-axi playbook code.Think through the plan — before writing HTML, reason about:
- Goal and current state
- Proposed approach and key decisions
- Files/modules that will change
- Risks, open questions, and alternatives ruled out
Create the artifact at
.lavish/plan-<slug>.htmlwhere<slug>is a short kebab-case name for the task. Follow the plan playbook structure:- Start with the goal, current state, and desired outcome
- Show the proposed approach with key decisions called out visually
- Include a Mermaid diagram if architecture or flow is involved
- List risks, failure modes, and open questions
- End with a concrete step-by-step implementation checklist
Design direction — check the project for its design system first (Tailwind config, CSS tokens, component library). If none, run
npx -y lavish-axi designfor the CDN defaults.Open in Lavish:
npx -y lavish-axi .lavish/plan-<slug>.htmlPoll for feedback (run in background):
npx -y lavish-axi poll .lavish/plan-<slug>.htmlWhen feedback arrives, apply changes and reply with:
npx -y lavish-axi poll .lavish/plan-<slug>.html --agent-reply "<message>"When the user approves the plan, end the session:
npx -y lavish-axi end .lavish/plan-<slug>.htmlThen proceed with implementation.
Plan artifact structure
A good plan artifact has these sections, in order:
- Header — task name, branch/PR context if available, one-line goal
- Current state — what exists today, what's broken or missing
- Proposed approach — the solution in plain language, major decisions highlighted
- Architecture / flow diagram — Mermaid diagram when there are moving parts
- File-level changes — which files change and why (table or annotated list)
- Risks & open questions — failure modes, backwards-compat concerns, unknowns
- Implementation checklist — ordered steps the developer will follow
Rules
- Never respond with prose when
/planis invoked — the artifact IS the answer - Keep claims grounded: verify file paths exist before citing them; use
greporfindif unsure - Do not leave unresolved open questions in the artifact — either answer them or mark them explicitly as "needs decision from user"
- The checklist at the end must be concrete enough that another developer could implement without re-reading the conversation