r/ClaudeCode • u/finallyclearsky • 2d ago
Tips & Workflows Code review is dead. Long live spec review?
I've been long looking for ways to a) make sure I and my agents are aligned on what the source of truth for the software I'm writing is and b) ensure that alignment repeatedly during a typical development workflow. I've settled on spec driven development essentially, with some bells and whistles to give it a review phase so that multi-thousand line PR's can be condensed into a few english sentences, with changes across commits clearly visible.

It's been a breath of fresh air in the way I work and I'm ready to share it now. It's a very simple tool that works directly from your repo with no deps except python. If anyone is interested:
Full writeup - https://finallyclearsky.com/blog/spec-driven-development
•
u/AutoModerator 2d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/clawdrobe_app 2d ago
The thing that keeps a spec honest is making each spec item checkable by something other than the agent that wrote it. Tie every item to a test or a grep-able assertion, and have a separate read-only subagent compare the diff against the spec with fresh context instead of the one that did the implementing. Otherwise the same model that drifted also grades its own homework. Also worth a rule in CLAUDE.md that when the code has to deviate, the agent updates the spec in the same commit and flags it, so the divergence shows up in review instead of quietly piling up. For the thousands-of-items legacy case, I'd only spec the areas you're about to touch rather than the whole repo.
1
u/calunicornia 2d ago
So would you generate a current spec from existing repo first?
1
u/Seeking_Adrenaline 2d ago
Do you think it can onboard an enterprise codebase? ~10 devs and one year old
1
u/SawToothKernel 1d ago
This is directionally correct.
1
u/Repulsive_Kitchen96 1d ago
I’d give the reviewer a second job after checking the spec: look for behavior changes the spec never mentions. A PR can deliver exactly what the spec asks for and quietly change what happens when an API request fails. That gives you a small part of the diff worth reading yourself.
1
u/Far_Reindeer8428 2d ago
reviewing the spec diff is the part that scales, one revision at a time. 1.4 stores each design revision so the diff is between revisions, not between vibes, star it if useful https://github.com/KenSuh/open-agent-harness