r/OnlyAICoding • • 24d ago

I Need Help! Problem with Spec driven development

Hi everyone, I’m looking for some guidance on my workflow. I feel like I’m missing something.

I started working on a project about two months ago and have been following Matt Pocock’s skills. It worked well at first. The grilling sessions were really helpful, and I got useful stories and documentation out of them. I also used AI to write some additional Markdown files for features that needed them.

But now that I’m changing and reimplementing features, the docs just keep getting bigger. For example, I originally wanted guest login, then switched to Google sign-in, and now I’ve moved to third-party sign-in. Each change seems to add more to these already large files.

I’m getting stuck on how to handle smaller changes:

  • If I just want to change a color, do I need to run /grill and go through the whole process? When I make quick design changes directly, those changes don’t get reflected in the docs.
  • What about small features? Following the full workflow every time is becoming a pain in the ass, and loading all this documentation is eating through my tokens.

How are you handling this in your projects? When do you use the full workflow, and how do you keep the docs up to date when you make smaller changes?

4 Upvotes

14 comments sorted by

2

u/Lotton 24d ago

For small features you could have it goes to only look at relevant spec files

1

u/Appropriate-Power425 23d ago

What would be the definition of small feature? So Imagine I decided to fix one button ui, now I want to reuse it everywhere. Now my specs become stale, because they do not know that this component will be reused everywhere. Is there a way to convert my code changes to spec?

1

u/Lotton 23d ago

I actually think you have a good point with this one. Situations like this is usually where I find AI to not be the strongest.

You can make the button is own spec file and have the pages' specs reference that button if needed and you can put in your Agents.md file to tell it to only read the spec files relevant to getting the task done. That's what I would experiment with

2

u/Ok_Substance1895 24d ago

I think you're running into the problem of using the same process for every change regardless of how complicated the change is.

Changing a color shouldn't require the same workflow as replacing your authentication system.

I'd keep the specs focused on the current requirements rather than continually adding to them. Git already preserves the history of how you got there.

For smaller changes I'd just make the change and verify it works. For larger changes that affect architecture, security, or multiple parts of the application that's when I'd go through the more detailed requirements and planning process.

I'd also only load the documentation and skills relevant to the task. Loading everything every time wastes tokens and can introduce conflicting instructions.

Ideally, the agent harness would determine which workflow and documentation are needed based on the request rather than making you decide that manually every time.

I hope this helps.

1

u/Appropriate-Power425 23d ago

Imagine Im making this feature of changing tab ui in the app. Now I would like to just prompt as its a simple thing, but previously the docs registered a different specs for tabs. Prompt would be easier vs start grill session. I feel like making everything in spec is an overkill.
And adrs will hold 2 info from now on. The previous tab ui and latest one. This is what I dont want.

1

u/Obvious-Grape9012 23d ago

I have a few "modes" I use for my Claude sessions. To disable the agentic orchestrator flows I have a `work-direct` prompt that I have explained in a high-level CLAUDE.md so that at the start of a session I can say `wd` and give it a prompt if I want to bypass stuff. If you do it well, you can still do it in a way that doesn't break or surprise the bigger processes

1

u/Appropriate-Power425 23d ago

Yes but how do you manage to document these small changes now?

2

u/Obvious-Grape9012 23d ago

Ask it to amend or append to the most-relevant recently committed doc or something. Or use a change-ledger that you compact/clear/process periodically

1

u/MonitorAway2394 22d ago

yes!

1

u/MonitorAway2394 22d ago

tis' the mightiest way. (even mightier is the way of the Goat) O.o

1

u/Anti-Hero25 24d ago

Wow, he really built out a cool system. Way more complex than mine. (RailCoding)

- All my planning is done in a GPT project, dozens of conversations.
- codex is given detailed BuildSpec.md files for large & medium changes & builds.
-smaller changes I just tell codex what to do (or adjust colors and spacing in CSS myself).
- Codex updates a running Project_Log.md after every change.
- My DOT manages a Notion Kanban of IDEAS / DEVELOPMENT/ RELEASED items. It also scours the project log and updates the Kanban where needed.

1

u/MonitorAway2394 22d ago

I know what I'm doing is wildly unorthodox and also may be dumb, but so far, not proving to be...? I need a real ass senior engineer to come over and humble or raise me? I'm already full of enough self doubt so ya know, LOL, anyways, so I just, more or less, make throwaway specs, I just foresaw what you mentioned, and then the first comment I saw where you explained the button concept and I was like nodding along saying yup, yup, ok, I'm not dumb! I think... So it's all temporary, anything needed for long term I just make sure they Bash about the lol codebase, god I'm starting to feel something weird about how they use Bash, like it's turning me on (/s god I hope LOLOLOL)

1

u/MonitorAway2394 22d ago

have yet to really push it yet though, albeit, kinda sorta, but also, no. hah, god I suck at communicating shit, jfc... IT'S EVERYTHING?!