You don't. I do. I do spec driven development using AI. I iterate on spec documents until they outline precisely how I understand the problem space and the solution, before letting AI implement the specification. The step of implementing the specification is essentially like compiling the spec into source code, before passing it to the actual compiler to produce machine code.
In my workflow, the specs really are just an artifact at a higher level of abstraction from the source code.
Is the AI helping with writing the spec or is that something you do entirely alone? If it's the latter than I can see this working but otherwise the writing quality of SOTA models is so poor that I'd rather the LLM just build the entire project
LLMs (not SOTA, lol) help me write the spec, but I read and approve every word. If I don't like how something is written, I change it. I iterate on specs for hours sometimes before letting an LLM implement it. I'm using LLMs to help write it, but mostly by poking holes and driving a more holistic scope.
Are the specs all sufficiently abstracted from the code base that you could have agent's replay them and rebuild the code base from zero? Or is each spec referencing things from the current state of the code such that the drift in the code base that would occur on replay would cause later specs to become non-sensical?
I haven't tried yet, but I have been thinking about trying to take an application that was developed using spec driven development and trying to actually let an AI reimplement it from the specs. The trouble with that is that so far any application I have worked on that is sufficiently complex that it would be interesting to try, os one that I introduced spec driven development in after the project was already developed for a while (pre-ai). Applications that I developed fully with spec driven development with AI haven't gotten mature enough to really be interesting to enough to try that yet. I'll definitely try it soon though!
You don't. I do. I do spec driven development using AI. I iterate on spec documents until they outline precisely how I understand the problem space and the solution, before letting AI implement the specification. The step of implementing the specification is essentially like compiling the spec into source code, before passing it to the actual compiler to produce machine code.
In my workflow, the specs really are just an artifact at a higher level of abstraction from the source code.
Replies (2)
Replies (2)
Ask it to generate a technical spec for a problem you discuss with it.
Then, as if working with a freshly graduated new hire, go in and comment on every single thing you dislike about.
This will take a long time and feel pointless, but continue iterating with it unless you get something you like.
At the end, ask an agent to review each of your comments and come up with a SKILL for writing like you expect. Review the SKILL, obviously.
I did not save time on the first project, but now I get a much more solid starting point to review from.
Replies (1)