ddd-guide

Document-Driven Development workflow for existing codebases. Provides systematic planning, documentation-first design, and implementation verification.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ddd-guide" with this command: npx skills add drillan/amplifier-skills-plugin/drillan-amplifier-skills-plugin-ddd-guide

Document-Driven Development (DDD) Guide

Core Principle

Documentation IS the specification. Code implements what documentation describes.

DDD inverts traditional development: update documentation first, then implement code to match.

Why DDD?

  • Catches design flaws early - Before expensive code changes
  • Prevents documentation drift - Docs and code stay synchronized
  • Enables human review - Humans approve specs, not code
  • AI-friendly - Clear specifications reduce hallucination

Six-Phase Workflow

PhaseNameCommandDeliverable
0-1Planning/ddd 1-planplan.md
2Documentation/ddd 2-docsUpdated docs
3Code Planning/ddd 3-code-plancode_plan.md
4Implementation/ddd 4-codeWorking code
5-6Finalization/ddd 5-finishTested, committed

Core Techniques

Retcon Writing

Document features as if they already exist. No future tense.

  • Bad: "This feature will add..."
  • Good: "This feature provides..."

File Crawling

Process files one at a time to avoid context overflow:

  1. Generate index with [ ] checkboxes
  2. Process one file per iteration
  3. Mark [x] when complete

Context Poisoning Prevention

Eliminate contradictions:

  • One authoritative location per concept
  • Delete duplicates, don't update
  • Resolve conflicts before proceeding

When to Use DDD

Use DDD for:

  • Multi-file changes
  • New features in existing codebases
  • Complex integrations

Skip DDD for:

  • Typo fixes
  • Single-file changes
  • Emergency hotfixes

References

See @skills/ddd-guide/references/ for detailed documentation:

  • core-concepts/ - Techniques and methodologies
  • phases/ - Step-by-step phase guides
  • philosophy/ - Underlying principles

Remember

Documentation first. If it's not documented, it doesn't exist.

Retcon, don't predict. Write as if the feature already exists.

One source of truth. Delete duplicates, don't update them.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

amplifier-philosophy

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

module-development

No summary provided by upstream source.

Repository SourceNeeds Review
General

progress-report

No summary provided by upstream source.

Repository SourceNeeds Review