How I Built a Documentation-Driven Development Workflow with Claude Code

Published: (December 25, 2025 at 02:41 AM EST)
2 min read
Source: Dev.to

Source: Dev.to

Cover image for How I Built a Documentation-Driven Development Workflow with Claude Code

GitHub:
Docs:

The Problem

In most teams:

  • PM writes requirements somewhere (Notion, Jira, Google Docs)
  • Developer reads it, makes assumptions, builds something
  • QA tests against… what exactly?
  • Bugs get filed, fingers get pointed

The documentation drifts from reality. Nobody knows what’s correct anymore.

The Solution: Docs as Code

What if the spec file is the source of truth, and AI reads it directly?

PM/BA: /write-spec user-export     → creates docs/user-export/spec.md
Dev:   /develop-feature user-export → Claude reads spec, builds feature

That’s it. No telephone game. Claude reads the same spec the PM wrote.

Diagram of the workflow

How It Works

  • PM runs /write-spec – Claude asks questions, generates a structured spec.
  • Dev runs /develop-feature – Claude reads the spec and builds the feature with full context.
  • GitHub Actions notify – The team stays in sync when specs change.

No back‑and‑forth. No “what did you mean by X?”

Get Started in 30 Seconds

npx create-ai-team

This scaffolds:

  • .claude/commands/ – The workflow commands
  • docs/example-feature/spec.md – A template to follow
  • .github/workflows/ – Optional automation

The Commands

CommandWhoWhat
/write-specPM/BACreate spec via guided conversation
/develop-featureDevBuild feature from spec
/fix-issueDevFix bugs with doc context
/trace-flowDevUnderstand code flow

Command overview

Why This Works

  • Single source of truth – The spec file is canonical.
  • AI reads context – No copy‑pasting requirements into prompts.
  • Structured format – Mermaid diagrams, error codes, test cases.
  • Version controlled – Specs live in Git, changes are tracked.

Open Source

The whole thing is open source:

  • Repo:
  • Docs:
  • NPM: npx create-ai-team

Try It

If you’re tired of requirements getting lost in translation, give it a shot:

npx create-ai-team

Then run /write-spec my-feature and see how it feels to have AI understand your full context.

Demo screenshot

What’s your current workflow for keeping specs and code in sync? I’d love to hear how other teams handle this.

Back to Blog

Related posts

Read more »