Replies: 4 comments 8 replies
|
Hello @i102761 , here is my video on this. Spec-Driven Development on Brownfield Projects - https://www.youtube.com/watch?v=gJvwn-nuSc8 Would love to hear you thoughts and feedback. |
|
Yes there's real value, and we built a feature specifically for brownfield adoption. Full disclosure: I'm the creator of SPECLAN, another VS Code extension in this space. The flow: paste your existing README or PRD or user stories into an HLRD import dialog, the AI parses it and generates a Goal then Feature then Requirement then Acceptance Criterion tree in one pass. You review, edit, and you have a baseline. We tested it on a 15k LOC Flutter app recently — it caught ~80% of the major features from the README alone, the rest needed manual entries. The reason to baseline is traceability: when the first change request lands you need something to change FROM. Starting only with change specs means you can never answer "why does the system do X?" — the pre-existing behavior is invisible. Even a partial baseline (just the features adjacent to the planned change) is better than nothing. The prompt itself is less important than the parsing target — you want the AI to extract a tree, not a flat list. Hierarchical parent/child relationships are what make subsequent changes navigable. |
From my understanding, changes are already including the "why" in proposal.md + design.md. If you want a oneshot baseline, I guess you could just prompt your agent to create archived specs for the whole existing project. From my experience a well performing model like Codex 5.3 is able to pickup existing architecture and intent from any proposal, when called within an agentic coding tool (opencode in my case), but there is less guarantee that it will actually make the effort to do so if not explicitly prompted to. So I agree that for browfield projects it is not clear which workflow should be followed. |
|
The project's position is: no, don't baseline upfront. From the FAQ — "Existing codebases are the main event. OpenSpec is brownfield-first: you do not document your whole app up front. You write specs only for what each change touches, and your specs fill in over time around the work you actually do." You're right that There's now a dedicated guide: Using OpenSpec in an Existing Project. If you still want a baseline, community tooling exists for it (see discussions #739 and #634) — it's just not the recommended starting point. Closing as answered — reopen or comment if your case is different. |
Uh oh!
There was an error while loading. Please reload this page.
For adopting OpenSpec with an existing application, is there value in somehow generating Specs on all of the current application features to baseline it before taking forward with the first change? Else the master specs will only start with just the new feature once done. If there is value in doing, what is the recommended prompt to use?
All reactions