Embed a copyable re-invoke command in every generated plan so any developer can resume, reference, or re-run the planning workflow directly from the plan HTML — no need to reconstruct the command from scratch.
Read and implement all steps in the plan at docs/plans/add-reinvoke-prompt-to-plan-output.md — Add re-invoke prompt to plan output. Verify against the plan's Tests, Verification, and Acceptance Criteria before reporting done. If everything passed, mark completion in docs/plans/add-reinvoke-prompt-to-plan-output.md — tick each step's [x] marker and each criterion's - [x], set status: completed — and re-render the HTML from the spec. If any check failed, leave status: in-progress and say which.
More ways to run this plan — goal & workflow prompts, file path
Achieve this goal: Add re-invoke prompt to plan output. The plan at docs/plans/add-reinvoke-prompt-to-plan-output.md describes one approach — use it as reference, but optimize for the outcome. Verify against the plan's Tests, Verification, and Acceptance Criteria before reporting done. If everything passed, mark completion in docs/plans/add-reinvoke-prompt-to-plan-output.md — tick each step's [x] marker and each criterion's - [x], set status: completed — and re-render the HTML from the spec. If any check failed, leave status: in-progress and say which.
add-reinvoke-prompt-to-plan-output.html
docs/plans/add-reinvoke-prompt-to-plan-output.html
docs/plans/add-reinvoke-prompt-to-plan-output.md
Context
The story behind this plan — what prompted the work and why it matters now.
Plans generated by the plan-agent:planning skill are self-contained HTML files stored in docs/plans/ . Once a plan exists, the only way to re-invoke the skill against it (to continue implementation, update status, or run a follow-up) is to manually reconstruct the original command — the filename and a short objective summary. There is no prompt in the plan itself that surfaces this command.
The user wants each generated plan to include a visible, copyable re-invoke command in the format /plan-agent:planning <filename>.html <short-objective> so the workflow is recoverable from the artifact alone.
Steps
The step-by-step work, in order — each step says what to do, why it matters, and how to check it worked.
Definition of done
The plan counts as done when every statement below is true — check each one off as you verify it.
Final check
One last pass to confirm the whole change works end to end.
Run /plan-agent:planning --quick test reinvoke prompt and open the generated HTML file. Confirm:
A .plan-reinvoke row appears immediately below the .objective-card and before the .progress-wrap .
The command text reads /plan-agent:planning test-reinvoke-prompt.html test reinvoke prompt (or a condensed equivalent ≤60 chars).
Clicking Copy copies the command text to clipboard and flashes "Copied ✓".
Printing the page (Cmd+P → PDF) hides the reinvoke row.
Also confirm that this plan file itself already demonstrates the feature — the reinvoke row immediately below the objective card shows the correct command.
Wrapping up
Three gates that must all pass before this plan is marked completed.
Completion Report
No items to report — all requirements met.