Draft - Context-Driven Development
Draft is a methodology for structured software development: Context → Spec & Plan → Implement
Red Flags - STOP if you're:
- Jumping straight to implementation without reading existing Draft context
- Suggesting
/draft:implement before a track has an approved spec and plan
- Not checking
draft/tracks.md for existing active tracks before creating new ones
- Skipping the recommended command and going freeform
- Ignoring existing .ai-context.md, product.md, tech-stack.md, or workflow.md context
Read context first. Follow the workflow.
Two-Tier Command Architecture
Primary Workflow (4 commands)
init → new-track → implement → review
↑ |
└───────────┘ (auto-invoked at phase boundaries)
| Command |
Purpose |
Auto-Invokes |
/draft:init |
Initialize project context |
-- |
/draft:new-track |
Create feature/bug track with spec and plan |
debug (bug tracks), tech-debt (refactor tracks) |
/draft:implement |
Execute tasks from plan with TDD |
review (phase boundaries), testing-strategy (TDD context) |
/draft:review |
Three-stage code review |
coverage (if TDD enabled), bughunt (with --full) |
Specialist Commands (21 commands)
Setup & Navigation:
/draft |
This overview |
/draft:index |
Monorepo service aggregation |
Planning & Architecture:
| Command |
Purpose |
/draft:decompose |
Module decomposition with dependency mapping |
/draft:adr |
Architecture Decision Records (record, evaluate, design) |
/draft:tech-debt |
Technical debt analysis across 6 dimensions |
/draft:change |
Handle mid-track requirement changes |
Code Quality:
| Command |
Purpose |
/draft:quick-review |
Lightweight 4-dimension code review (~2 min) |
/draft:bughunt |
Exhaustive 14-dimension bug hunt |
/draft:deep-review |
Module lifecycle audit (ACID compliance) |
/draft:coverage |
Code coverage report (target 95%+) |
/draft:testing-strategy |
Test plan design with coverage targets |
/draft:learn |
Discover coding patterns and update guardrails |
Debugging:
| Command |
Purpose |
/draft:debug |
Structured debugging (reproduce → isolate → diagnose → fix) |
Operations:
| Command |
Purpose |
/draft:deploy-checklist |
Pre-deployment verification with rollback triggers |
/draft:incident-response |
Incident lifecycle (triage → communicate → mitigate → postmortem) |
/draft:standup |
Git activity standup summary (read-only) |
/draft:status |
Show progress overview |
/draft:revert |
Git-aware rollback |
Authoring:
| Command |
Purpose |
/draft:documentation |
Technical docs (readme, runbook, api, onboarding) |
Integration:
| Command |
Purpose |
/draft:jira-preview |
Generate Jira export for review |
/draft:jira-create |
Push issues to Jira via MCP |
Quick Start
- First time? Run
/draft:init to initialize your project
- Starting a feature? Run
/draft:new-track "your feature description"
- Ready to code? Run
/draft:implement to execute tasks
- Check progress? Run
/draft:status
Core Workflow
Every feature follows this lifecycle:
- Setup - Initialize project context (once per project)
- New Track - Create specification and plan
- Implement - Execute tasks with TDD workflow
- Verify - Confirm acceptance criteria met
- Quality - Run quality commands (see guide below)
Auto-invocations: The primary workflow has built-in quality gates — /draft:implement auto-invokes /draft:review at phase boundaries, and /draft:review auto-invokes /draft:coverage when TDD is enabled.
Quality Commands — When to Use Which
Four commands form an audit spectrum from quick to narrow to broad to deep:
| Command |
Scope |
Time |
Question It Answers |
Output |
/draft:quick-review |
File/PR/diff |
~2 min |
"Any obvious issues in this change?" |
4-dimension findings with severity |
/draft:review |
Change-scoped (track, diff, commits) |
~10 min |
"Does this change meet spec and quality gates?" |
Three-stage review report with verdict |
/draft:bughunt |
Codebase-scoped (repo, paths, track) |
~20 min |
"What bugs exist in this code?" |
Severity-ranked bug report + regression tests |
/draft:deep-review |
Module-scoped (single service/component) |
~30 min |
"Is this module production-ready?" |
ACID compliance audit + implementation spec |
Decision Guide
- Quick sanity check? →
/draft:quick-review — fast 4-dimension review, no track context needed
- Just finished a track? →
/draft:review — validates against spec, checks quality gates
- Suspicious of bugs across the codebase? →
/draft:bughunt — 14-dimension sweep with verification protocol
- Shipping a module to production? →
/draft:deep-review — ACID compliance, resilience, observability audit
- Want everything? →
/draft:review full (includes bughunt), then /draft:deep-review for critical modules
Relationship to Built-in Bug Hunt Agents
Some AI tools provide built-in bug hunt agents (e.g., Claude Code's bughunt agent). These are complementary to /draft:bughunt — the built-in agents offer fast parallel sweeps with auto-fix, while Draft's bughunt adds context-aware analysis using your architecture, tech-stack, and product context for better false-positive elimination. For maximum coverage, run both.
Context Files
When draft/ exists, these files guide development:
draft/architecture.md - Source of truth: comprehensive human-readable engineering reference
draft/.ai-context.md - Derived from architecture.md: token-optimized AI context (200-400 lines)
draft/product.md - Product vision and goals
draft/tech-stack.md - Technical constraints
draft/workflow.md - TDD and commit preferences
draft/guardrails.md - Hard guardrails, learned conventions, learned anti-patterns
draft/tracks.md - Active work items
Status Markers
Used throughout plan.md files:
| Marker |
Meaning |
[ ] |
Pending |
[~] |
In Progress |
[x] |
Completed |
[!] |
Blocked |
Intent Mapping
You can also use natural language:
| Say this... |
Runs this |
| "set up the project" |
/draft:init |
| "index services", "aggregate context" |
/draft:index |
| "new feature", "add X" |
/draft:new-track |
| "start implementing" |
/draft:implement |
| "what's the status" |
/draft:status |
| "undo", "revert" |
/draft:revert |
| "break into modules" |
/draft:decompose |
| "check coverage" |
/draft:coverage |
| "deep review", "module audit", "production audit" |
/draft:deep-review |
| "hunt bugs", "find bugs" |
/draft:bughunt |
| "review code", "review track", "check quality" |
/draft:review |
| "document decision", "create ADR" |
/draft:adr |
| "requirements changed", "scope changed", "update the spec" |
/draft:change |
| "learn patterns", "update guardrails", "discover conventions" |
/draft:learn |
| "preview jira", "export to jira" |
/draft:jira-preview |
| "create jira", "push to jira" |
/draft:jira-create |
| "quick review", "fast review" |
/draft:quick-review |
| "debug this", "investigate bug" |
/draft:debug |
| "deploy checklist", "pre-deploy" |
/draft:deploy-checklist |
| "test strategy", "testing plan" |
/draft:testing-strategy |
| "tech debt", "catalog debt" |
/draft:tech-debt |
| "standup", "what did I do" |
/draft:standup |
| "incident", "outage", "post-mortem" |
/draft:incident-response |
| "write docs", "documentation", "runbook" |
/draft:documentation |
Need Help?
- Run
/draft (this command) for overview
- Run
/draft:status to see current state
- Check
draft/tracks/<track_id>/spec.md for requirements
- Check
draft/tracks/<track_id>/plan.md for task details
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: draft3description: Context-Driven Development methodology overview. Shows available Draft commands and guides you to the right workflow. Use when this capability is needed.4---56# Draft - Context-Driven Development78Draft is a methodology for structured software development: **Context → Spec & Plan → Implement**910## Red Flags - STOP if you're:1112- Jumping straight to implementation without reading existing Draft context13- Suggesting `/draft:implement` before a track has an approved spec and plan14- Not checking `draft/tracks.md` for existing active tracks before creating new ones15- Skipping the recommended command and going freeform16- Ignoring existing .ai-context.md, product.md, tech-stack.md, or workflow.md context1718**Read context first. Follow the workflow.**1920---2122## Two-Tier Command Architecture2324### Primary Workflow (4 commands)25```26init → new-track → implement → review27 ↑ |28 └───────────┘ (auto-invoked at phase boundaries)29```3031| Command | Purpose | Auto-Invokes |32|---------|---------|-------------|33| `/draft:init` | Initialize project context | -- |34| `/draft:new-track` | Create feature/bug track with spec and plan | debug (bug tracks), tech-debt (refactor tracks) |35| `/draft:implement` | Execute tasks from plan with TDD | review (phase boundaries), testing-strategy (TDD context) |36| `/draft:review` | Three-stage code review | coverage (if TDD enabled), bughunt (with --full) |3738### Specialist Commands (21 commands)3940**Setup & Navigation:**41| `/draft` | This overview | `/draft:index` | Monorepo service aggregation |42|---------|---------|---------|---------|4344**Planning & Architecture:**45| Command | Purpose |46|---------|---------|47| `/draft:decompose` | Module decomposition with dependency mapping |48| `/draft:adr` | Architecture Decision Records (record, evaluate, design) |49| `/draft:tech-debt` | Technical debt analysis across 6 dimensions |50| `/draft:change` | Handle mid-track requirement changes |5152**Code Quality:**53| Command | Purpose |54|---------|---------|55| `/draft:quick-review` | Lightweight 4-dimension code review (~2 min) |56| `/draft:bughunt` | Exhaustive 14-dimension bug hunt |57| `/draft:deep-review` | Module lifecycle audit (ACID compliance) |58| `/draft:coverage` | Code coverage report (target 95%+) |59| `/draft:testing-strategy` | Test plan design with coverage targets |60| `/draft:learn` | Discover coding patterns and update guardrails |6162**Debugging:**63| Command | Purpose |64|---------|---------|65| `/draft:debug` | Structured debugging (reproduce → isolate → diagnose → fix) |6667**Operations:**68| Command | Purpose |69|---------|---------|70| `/draft:deploy-checklist` | Pre-deployment verification with rollback triggers |71| `/draft:incident-response` | Incident lifecycle (triage → communicate → mitigate → postmortem) |72| `/draft:standup` | Git activity standup summary (read-only) |73| `/draft:status` | Show progress overview |74| `/draft:revert` | Git-aware rollback |7576**Authoring:**77| Command | Purpose |78|---------|---------|79| `/draft:documentation` | Technical docs (readme, runbook, api, onboarding) |8081**Integration:**82| Command | Purpose |83|---------|---------|84| `/draft:jira-preview` | Generate Jira export for review |85| `/draft:jira-create` | Push issues to Jira via MCP |868788## Quick Start89901. **First time?** Run `/draft:init` to initialize your project912. **Starting a feature?** Run `/draft:new-track "your feature description"`923. **Ready to code?** Run `/draft:implement` to execute tasks934. **Check progress?** Run `/draft:status`9495## Core Workflow9697Every feature follows this lifecycle:981. **Setup** - Initialize project context (once per project)992. **New Track** - Create specification and plan1003. **Implement** - Execute tasks with TDD workflow1014. **Verify** - Confirm acceptance criteria met1025. **Quality** - Run quality commands (see guide below)103104**Auto-invocations:** The primary workflow has built-in quality gates — `/draft:implement` auto-invokes `/draft:review` at phase boundaries, and `/draft:review` auto-invokes `/draft:coverage` when TDD is enabled.105106## Quality Commands — When to Use Which107108Four commands form an **audit spectrum** from quick to narrow to broad to deep:109110| Command | Scope | Time | Question It Answers | Output |111|---------|-------|------|-------------------|--------|112| `/draft:quick-review` | File/PR/diff | ~2 min | "Any obvious issues in this change?" | 4-dimension findings with severity |113| `/draft:review` | Change-scoped (track, diff, commits) | ~10 min | "Does this change meet spec and quality gates?" | Three-stage review report with verdict |114| `/draft:bughunt` | Codebase-scoped (repo, paths, track) | ~20 min | "What bugs exist in this code?" | Severity-ranked bug report + regression tests |115| `/draft:deep-review` | Module-scoped (single service/component) | ~30 min | "Is this module production-ready?" | ACID compliance audit + implementation spec |116117### Decision Guide118119- **Quick sanity check?** → `/draft:quick-review` — fast 4-dimension review, no track context needed120- **Just finished a track?** → `/draft:review` — validates against spec, checks quality gates121- **Suspicious of bugs across the codebase?** → `/draft:bughunt` — 14-dimension sweep with verification protocol122- **Shipping a module to production?** → `/draft:deep-review` — ACID compliance, resilience, observability audit123- **Want everything?** → `/draft:review full` (includes bughunt), then `/draft:deep-review` for critical modules124125### Relationship to Built-in Bug Hunt Agents126127Some AI tools provide built-in bug hunt agents (e.g., Claude Code's `bughunt` agent). These are **complementary** to `/draft:bughunt` — the built-in agents offer fast parallel sweeps with auto-fix, while Draft's bughunt adds context-aware analysis using your architecture, tech-stack, and product context for better false-positive elimination. For maximum coverage, run both.128129## Context Files130131When `draft/` exists, these files guide development:132- `draft/architecture.md` - Source of truth: comprehensive human-readable engineering reference133- `draft/.ai-context.md` - Derived from architecture.md: token-optimized AI context (200-400 lines)134- `draft/product.md` - Product vision and goals135- `draft/tech-stack.md` - Technical constraints136- `draft/workflow.md` - TDD and commit preferences137- `draft/guardrails.md` - Hard guardrails, learned conventions, learned anti-patterns138- `draft/tracks.md` - Active work items139140## Status Markers141142Used throughout plan.md files:143144| Marker | Meaning |145|--------|---------|146| `[ ]` | Pending |147| `[~]` | In Progress |148| `[x]` | Completed |149| `[!]` | Blocked |150151## Intent Mapping152153You can also use natural language:154155| Say this... | Runs this |156|-------------|-----------|157| "set up the project" | `/draft:init` |158| "index services", "aggregate context" | `/draft:index` |159| "new feature", "add X" | `/draft:new-track` |160| "start implementing" | `/draft:implement` |161| "what's the status" | `/draft:status` |162| "undo", "revert" | `/draft:revert` |163| "break into modules" | `/draft:decompose` |164| "check coverage" | `/draft:coverage` |165| "deep review", "module audit", "production audit" | `/draft:deep-review` |166| "hunt bugs", "find bugs" | `/draft:bughunt` |167| "review code", "review track", "check quality" | `/draft:review` |168| "document decision", "create ADR" | `/draft:adr` |169| "requirements changed", "scope changed", "update the spec" | `/draft:change` |170| "learn patterns", "update guardrails", "discover conventions" | `/draft:learn` |171| "preview jira", "export to jira" | `/draft:jira-preview` |172| "create jira", "push to jira" | `/draft:jira-create` |173| "quick review", "fast review" | `/draft:quick-review` |174| "debug this", "investigate bug" | `/draft:debug` |175| "deploy checklist", "pre-deploy" | `/draft:deploy-checklist` |176| "test strategy", "testing plan" | `/draft:testing-strategy` |177| "tech debt", "catalog debt" | `/draft:tech-debt` |178| "standup", "what did I do" | `/draft:standup` |179| "incident", "outage", "post-mortem" | `/draft:incident-response` |180| "write docs", "documentation", "runbook" | `/draft:documentation` |181182183## Need Help?184185- Run `/draft` (this command) for overview186- Run `/draft:status` to see current state187- Check `draft/tracks/<track_id>/spec.md` for requirements188- Check `draft/tracks/<track_id>/plan.md` for task details189190---191> Converted and distributed by [TomeVault](https://tomevault.io/claim/mayurpise) — claim your Tome and manage your conversions.192<!-- tomevault:4.0:skill_md:2026-04-11 -->