spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

How to update/improve plan after updating an existing spec (without receating plan from scratch)

Open armujahid opened this issue 1 year ago • 7 comments

I’ve noticed that when we update the spec and re-plan, even with explicit instructions to modify the existing plan, it gets overwritten with the plan template (using setup-plan.sh) and recreated. Is there a recommended way to update the plan without fully recreating it, or is this behavior intentional? Similar to how /clarify updates the spec, it would be useful to have a command that allows updating or improving the existing plan (without conflicting with spec).

armujahid avatar Oct 27 '25 08:10 armujahid

I have the same question too. I've tried to quickly revert the file changes once they are made, just before the agent read the file and that worked for me, it actually updated the file instead of recreating it. I'm wondering if there is a better way tho.

NunoMiguelVeloso avatar Oct 27 '25 22:10 NunoMiguelVeloso

I was see the same need. I proposed something in this issue: https://github.com/github/spec-kit/issues/1063

MDean-Slalom avatar Oct 28 '25 00:10 MDean-Slalom

Same here!

arctouch-paulagueiros avatar Nov 05 '25 22:11 arctouch-paulagueiros

My approach is to adjust the slash command prompt in plan.md and modify the Setup step as follows:

1. **Setup**:
   - First, **Must** check if `plan.md` already exists in the current feature directory
   - If `plan.md` exists: **Must** Run `.specify/scripts/powershell/setup-plan.ps1 -Json -SkipTemplate` from repo root
   - If `plan.md` does not exist: **Must** Run `.specify/scripts/powershell/setup-plan.ps1 -Json` from repo root
   - Parse JSON output for FEATURE_SPEC, IMPL_PLAN, SPECS_DIR, BRANCH
   - For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot")

However, even with this adjustment, we occasionally encounter situations where the LLM doesn't follow the instructions and recreates plan.md. So if anyone has a better or more precise prompt or approach, we'd really love to hear it!

MomoChenisMe avatar Nov 20 '25 08:11 MomoChenisMe

In my chat input in VSCode Github Copilot, I wrote at the end GOLDEN RULE: you are updating a plan: DO NOT RUN setup-plan.sh. Maybe something shorter can work too: DO NOT run setup-plan.

Opus 4.6 was like:

Looking at the current plan, it already reflects most of these changes .....

some list

What's missing from the plan based on the new spec and my research: .....

some list

Falamarcao avatar Feb 13 '26 02:02 Falamarcao

This issue has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Jul 14 '26 00:07 github-actions[bot]

This issue has been automatically closed due to inactivity (180 days total). If you believe this issue is still relevant, please reopen it or create a new issue.

github-actions[bot] avatar Aug 14 '26 00:08 github-actions[bot]