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

docs: document evolving specs in existing projects

Open WOLIKIMCHENG opened this issue 5 months ago • 5 comments

Description

Closes #916.

Documents how existing projects can evolve specs over time using the persistence models introduced in the Spec Persistence Models guide. The update moves the brownfield workflow into a dedicated Evolving Specs guide and links to it from the README and SDD concepts page.

Scope:

  • Adds docs/guides/evolving-specs.md with guidance for flow-forward, living spec, and flow-back workflows.
  • Keeps Spec Kit project-file updates separate from feature artifact evolution.
  • Updates README, SDD concepts, docs TOC, and DocFX content globs.
  • Removes the brownfield workflow section from the upgrade guide.

Non-goals:

  • No CLI behavior changes.
  • No new specify update command.
  • No template, script, or extension changes.

Testing

  • [x] git diff --check
  • [x] python -m json.tool docs/docfx.json
  • [x] Parsed docs/toc.yml and checked updated local docs links/anchors

WOLIKIMCHENG avatar Jun 09 '26 05:06 WOLIKIMCHENG

Thanks for tackling this — the gap you're addressing is real, and the step-by-step workflow is useful.

Since this PR was opened, #2856 landed on main introducing the spec persistence models page (flow-back, flow-forward, living). Your brownfield guidance should build on that vocabulary rather than existing independently.

Requested changes:

  1. Rebase onto main to pick up #2856.

  2. Move the new content out of upgrade.md into docs/guides/evolving-specs.md. The upgrade guide is about refreshing Spec Kit tooling — evolving your specs is a different workflow.

  3. Structure the guide around the three persistence models. One document, three sections — each with clear steps for that model:

    • Flow-forward: create a new feature directory, run the standard specify → plan → tasks → implement flow.
    • Living spec: edit spec.md first, then regenerate plan.md and tasks.md from it.
    • Flow-back: edit wherever the insight lands, then reconcile the artifact set.
  4. Drop or consolidate the sdd.md addition — that file already links to the persistence-models page. A single sentence there pointing to your new guide is enough.

  5. Keep the README.md addition but update the link target to the new guide path.

  6. Add the new page to docs/toc.yml under a Development or Guides section.

The scope stays docs-only and the core content you wrote (the step-by-step workflow) remains — it just gets framed per-model so readers with different conventions get tailored guidance.

mnriem avatar Jun 09 '26 21:06 mnriem

Thanks for the detailed review. I've updated the PR to build on the spec persistence models and moved the brownfield guidance into docs/guides/evolving-specs.md. The guide is now organized around flow-forward, living spec, and flow-back, with the README, SDD concepts page, docs TOC, and DocFX content globs updated accordingly.

WOLIKIMCHENG avatar Jun 10 '26 03:06 WOLIKIMCHENG

Thanks for the review. I've pushed an update addressing the Copilot feedback: the upgrade workflow now links to the upgrade guide, and the flow-forward / flow-back headings are aligned with the Spec Persistence Models terminology.

WOLIKIMCHENG avatar Jun 11 '26 03:06 WOLIKIMCHENG

Thanks again. I've pushed a follow-up update addressing the latest Copilot feedback: the specify init --here --force example is now labeled as a terminal command, the SDD link text now matches the guide scope, and the README addition is wrapped for readability.

WOLIKIMCHENG avatar Jun 15 '26 01:06 WOLIKIMCHENG

Please address Copilot feedback

mnriem avatar Jun 16 '26 21:06 mnriem

Thanks for the follow-up. I updated the project-file refresh command to require an explicit integration:

specify init --here --force --integration <your-agent>

I also added a short note that <your-agent> should match the AI coding agent integration used by the target project.

WOLIKIMCHENG avatar Jun 17 '26 05:06 WOLIKIMCHENG

Thank you!

mnriem avatar Jun 17 '26 13:06 mnriem