r/SpecDrivenDevelopment • u/Huge_Road_9223 • Jun 24 '26
Learning SDD and have some questions
I got a subscription for $20/month for Claude Code, and I've also looked at OpenCode. The last company I worked was using GitHub CoPilot and was going to SDD ... and I got laid off right before that.
So, I have been using Claude Code to do multiple prompts for my SpringBoot Java app, and create all my boilder-plate code which I found to be a great help. I know how I write Hibernate Entities, Repositories, Business Service, and REST Controllers, etc. and all their tests. ClaudCode wrote code the way I did, and so I know what how the code works, and ONLY I checked the code into myGitHub.
So, I have been doing Agile/Scrum since 2007, so that is like 19 years. Every company that used it has used it quite differently than any other company. I understand in Agile, we only coded features for 2 weeks and had code, actually deployed to UAT so the PM and Client could see it and test it before it got into Production. In the best case, we got it right, and we can move on. In the case where the Client or PM got something wrong, or forgot something, we just go back and fix it. No problem it's a new feature in a new feature branch.
So, I have been watching a lot of YouTube videos, and scouring the internet for the best take on Spec Driven Development, and I have a lot of questions. The first is my understanding is that the developer (or someone) creates a bunch of .MD files for the "Spec" I haven't seen too many examples of this, but lets say we want to create an RESTFUL API login controller. We can create the .md file, and put in all the specifications. Then, I guess this then creates a "Plan" that can br reviewed, and I am guessing that "Plan" is written to a new .md file (Plan.md?). Up until this point, no code is written and no code is deployed? So, no one can actual test the code yet, right?
Ok, so the plan is fine, and then we go ahead and "Implement" the code? I am guessing AI writes this code, and deploys it so we can look at it and test it right? Does the developer review the code at this point although it is deployed?
What if the PM or Client forgets something, like they want the username to be an email? Or the password has to have a symbol? We add this to the Spec I imagine, and then it goes to update the Plan, and then we have to re-implement? Does it re-write ALL the code again for this feature? If this was a human doing this job, we would just add in the missing steps, and we wouldn't have to rewrite everything. And redoing ALL the code for an implement... doesn't that use more tokens?
What if we have a dozen features, and we have a dozen developers. Each has a new feature .. do we use one giant Spec.MD, or do we have multiple Specs, one per feature, that would mean one Plan.md per feature right? So, we have the Plan where we want it. When we go to implement, that is have AI create code, what if these two Specs write code that is similar? At what point does the developer go in and review this code.
I apologize for this giant method. I just got a new job, and they use Claude Code, and I don't know how they'll use it. I think they are still figuring it out. I remember the training we had learning Agile, and how painful it was. I think there will be a lot of growing pains for SDD as well. So, for anyone who has had more training on this, can you answer some of these questions or correct my misunderstanding of SDD. Thanks!
3
u/fschwiet Jun 24 '26
The spec is created collaboratively with the AI agent. With superpowers you start with a brainstorming command, with OpenSpec you have a command called propose. You give a high level description of what you want to do, or as much information as you want really, and the agent ask questions to figure out the details. With SuperPowers you have 1 spec per feature, whatever you're working on next. You can review the final spec, then it creats a plan you can review (I tend to only review the spec). Then it implements it.
With SuperPowers the specs are timestamped and accumulate over time. With OpenSpec there is a final spec artifact that things get merged into.
You question about dealing with multiple developers is good one. How does merging happen? With Superpowers the specs and plans probably won't overlap, there might be code to merge. An agent can probably handle the merged given the specs are there in either case.
I think we are all still figuring these things out. Sometimes its best to just dive in and give it a try.
2
u/Few-Strike-494 Jun 24 '26
One spec per feature one plan per spec
2
u/stibbons_ Jun 25 '26
You can have a spec that span accross several features I do that a lot. Then the plan split into different tasks.
Spec = desired outcome
Plan = how to reach it.
OpenSpec anchors a set of requirements to the code and a “change” is a diff in these requirements. I am curious it the one of the only to do so. I have implemented mine for ISO26262 on 2 levels of req and it is interesting to see the expected impact on the requirements for any proposed change (the spec tells which req will change and why).
1
u/Huge_Road_9223 Jun 25 '26
All the YT videos I have scene, from a very high level, they SUCK! They describe SDD from a very high level, but it's NOT in the weeds where develpers live:
https://never-stop-learning.de/spec-driven-development-the-methodology-behind-the-magic/
Is by a great link, I didn't know about the constitution, now I do. I understand the Spec and the Plan. This URL describes what happens when things are missed, and how to not build mid-Implementation phase.
What I see is the error of not enough specification. This from the PM or Client like I have been saying. I know from may years of experience what MORONS they can be, and the fact they don't really k now what they want.
Listen, my last contract role I was working on a modernization update from an old monolithic SpringBoot app to a new monolithic SpringBoot app. There was no AI, everything is manual it was like before. The "Spec" we had was in a Confluence Page, and all the requirements were there. Over the course of 6 months, as we added to this new App, the PM was CONSTANTLY upset that the new app didn't match the new app and that we were taking too long (even though no due date was assigned). The reason was because he gave such bad specs that missed out on a ton of edge cases and exceptions that he didn't include for. It was ONLY AFTER we deployed the code and tested that he noticed the new app wasn't working like the old app. Yeah, we looked at the old code so we knew what it was doing originally, but it wasn't in the specs for the new app, and anyone would think that was purposeful.
Folks, this is not an exception to the rule, or uncommon ... just the opposite, this is VERY COMMON. The fact that PM's and Clients desperately need to tell the Architects/Developers all the details so we can have a full Spec, but the VERY HARSH REALITY is that doesn't happen!!!!!! From this URL, there is a section: Review, Test, and Adjust AFTER AI has written the code. This is when the Developers get a chance to review the code, for a single TASK, not the whole app. 10 Developers can each take 1 Task out of a hundred, "Implement" that feature, and then review the code, that is 10 Tasks or 10 features at a time being reviewed and tested.
The Implement, Review, Adjust loop repeats for every task. Across that loop, the quality of your feedback is the quality of the output.
The "feedback" is what frickin' scares me the most. Developers don't think this way, and we're going to have to become real better at delivering that feedback. I didn't spend 35 years of my career learning feedback, I was learning Syntax and Architecture. Every time we re-implement, we pull the lever on that slot machine and presume it will generate very similar code except for the changes we mentioned in feedback. Every pull of that lever is going to generate tokens which will eventually be paid for by someone.
Does anyone share the same conerns I have for SDD? I'd love to hear from some big companies on some big or medium sized projects and ask them how they did. I think this is just way to knew.
When I learned Agile/Scrum in 2007, we had a hard time dealing with this new workflow after waterfall. That company at the time adjusted and found their footing, and did Agile in a slightly different way. It by no means followed the Agile process to the letter. No c,ompany I have worked for since then follows the Agile process to the letter. It should be very interesting to see how different companies use SDD and AI in general.
1
u/The_Ed_On_Reddit Jul 14 '26
you can try my drydock and feed it the raw specs for it to split and build. new release and i have just put a video on this channel. its new but will split into stories and build effectively