@drafthq/draft 2.7.1 → 2.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  "name": "draft",
13
13
  "source": "./",
14
14
  "description": "Context-Driven Development: draft specs and plans before implementation. Structured workflows for features and fixes.",
15
- "version": "2.7.1",
15
+ "version": "2.8.3",
16
16
  "author": {
17
17
  "name": "mayurpise"
18
18
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "draft",
3
3
  "description": "Context-Driven Development: draft specs and plans before implementation. Structured workflows for features and fixes.",
4
- "version": "2.7.1",
4
+ "version": "2.8.3",
5
5
  "author": {
6
6
  "name": "mayurpise"
7
7
  },
package/README.md CHANGED
@@ -113,9 +113,9 @@ curl -o .gemini.md https://raw.githubusercontent.com/drafthq/draft/main/integrat
113
113
 
114
114
  ---
115
115
 
116
- ## Beyond `/draft:review` — 27 more commands
116
+ ## Beyond `/draft:review` — 33 more commands
117
117
 
118
- `/draft:review` is the wedge. Once Draft has indexed your repo, you also get spec-driven planning, TDD-enforced implementation, exhaustive bug hunting, deep architectural audits, and 23 more commands covering the full development lifecycle.
118
+ `/draft:review` is the wedge. Once Draft has indexed your repo, you also get spec-driven planning, TDD-enforced implementation, exhaustive bug hunting, deep architectural audits, and 29 more commands covering the full development lifecycle.
119
119
 
120
120
  ---
121
121
 
@@ -124,6 +124,10 @@ curl -o .gemini.md https://raw.githubusercontent.com/drafthq/draft/main/integrat
124
124
  | Command | What It Does |
125
125
  |---------|--------------|
126
126
  | **`/draft`** | Overview, intent mapping, and command reference |
127
+ | **`/draft:plan`** | Router for planning, architecture, and track management |
128
+ | **`/draft:ops`** | Router for operations, deployment, incident, and lifecycle |
129
+ | **`/draft:docs`** | Router for authoring and documentation workflows |
130
+ | **`/draft:discover`** | Router for discovery, debugging, investigation, and quality |
127
131
  | **`/draft:init`** | Analyze codebase, create context files + state tracking |
128
132
  | **`/draft:index`** | Aggregate monorepo service contexts |
129
133
  | **`/draft:new-track`** | Collaborative spec + plan with AI |
@@ -141,11 +145,13 @@ curl -o .gemini.md https://raw.githubusercontent.com/drafthq/draft/main/integrat
141
145
  | **`/draft:debug`** | Structured debugging: reproduce, isolate, diagnose, fix |
142
146
  | **`/draft:quick-review`** | Lightweight 4-dimension code review |
143
147
  | **`/draft:deploy-checklist`** | Pre-deployment verification with rollback triggers |
148
+ | **`/draft:upload`** | Pre-upload handoff gate (review, HLD, checklist, validators) |
144
149
  | **`/draft:testing-strategy`** | Test plan design with coverage targets |
145
150
  | **`/draft:tech-debt`** | Technical debt analysis across 6 dimensions |
146
151
  | **`/draft:standup`** | Git activity standup summary (read-only) |
147
152
  | **`/draft:incident-response`** | Incident lifecycle: triage, communicate, mitigate, postmortem |
148
153
  | **`/draft:documentation`** | Technical docs: readme, runbook, api, onboarding |
154
+ | **`/draft:integrations`** | External system exports and syncs (jira preview / create) |
149
155
  | **`/draft:jira`** | Unified Jira workflows (preview / create / review) |
150
156
  | **`/draft:tour`** | Interactive architecture mentorship and codebase walk-through |
151
157
  | **`/draft:impact`** | ROI analytics tracking friction and timeline metrics |
@@ -159,7 +165,7 @@ curl -o .gemini.md https://raw.githubusercontent.com/drafthq/draft/main/integrat
159
165
 
160
166
  ## Built-in Code Intelligence
161
167
 
162
- Draft is powered by a **local knowledge graph engine** ([codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp)) that gives every command precise structural context — module boundaries, call graphs, dependencies, hotspots. It's 100% local (no API key, no SaaS), installed on first use.
168
+ Draft is powered by a **local knowledge graph engine** ([codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp)) that gives every command precise structural context — module boundaries, call graphs, dependencies, hotspots. It's 100% local (no API key, no SaaS), fetched during `draft install` (best-effort; `--no-graph` to skip), with first-use fetch as a fallback.
163
169
 
164
170
  ```bash
165
171
  /draft:graph # build / refresh the snapshot
@@ -2,13 +2,20 @@
2
2
 
3
3
  // Claude Code loads plugins from its own registry (via a marketplace), NOT from
4
4
  // an arbitrary project directory — so copying files into the cwd never registers
5
- // the /draft:* commands. The correct install is the `claude plugin` CLI:
6
- // claude plugin marketplace add drafthq/draft
7
- // claude plugin install draft@draft-plugins --scope <user|project>
8
- // Default scope is `user` (global, available in every project). If the `claude`
9
- // CLI isn't on PATH, we print the equivalent in-session slash commands.
5
+ // the /draft:* commands. The correct install is the `claude plugin` CLI.
6
+ //
7
+ // We run four idempotent steps so a re-run UPGRADES an existing install rather
8
+ // than no-op'ing on "already installed":
9
+ // 1. marketplace add <repo> — register the marketplace (no-op if present)
10
+ // 2. marketplace update <name> — re-fetch manifest from GitHub (the upgrade key)
11
+ // 3. plugin install <ref> — install (no-op if already installed)
12
+ // 4. plugin update <ref> — bump an existing install to the new version
13
+ // Steps 2 and 4 exit 0 when there's nothing to do, so they're safe on a fresh
14
+ // install too. Default scope is `user` (global). If the `claude` CLI isn't on
15
+ // PATH, we print the equivalent in-session slash commands.
10
16
  const MARKETPLACE_REPO = 'drafthq/draft';
11
- const PLUGIN_REF = 'draft@draft-plugins'; // name@<marketplace name from marketplace.json>
17
+ const MARKETPLACE_NAME = 'draft-plugins'; // the `name` field in .claude-plugin/marketplace.json
18
+ const PLUGIN_REF = `draft@${MARKETPLACE_NAME}`; // name@<marketplace name>
12
19
 
13
20
  module.exports = {
14
21
  id: 'claude-code',
@@ -28,19 +35,33 @@ module.exports = {
28
35
  args: ['plugin', 'marketplace', 'add', MARKETPLACE_REPO],
29
36
  label: `claude plugin marketplace add ${MARKETPLACE_REPO}`,
30
37
  },
38
+ {
39
+ kind: 'exec',
40
+ cmd: 'claude',
41
+ args: ['plugin', 'marketplace', 'update', MARKETPLACE_NAME],
42
+ label: `claude plugin marketplace update ${MARKETPLACE_NAME}`,
43
+ },
31
44
  {
32
45
  kind: 'exec',
33
46
  cmd: 'claude',
34
47
  args: ['plugin', 'install', PLUGIN_REF, '--scope', scope],
35
48
  label: `claude plugin install ${PLUGIN_REF} --scope ${scope}`,
36
49
  },
50
+ {
51
+ kind: 'exec',
52
+ cmd: 'claude',
53
+ args: ['plugin', 'update', PLUGIN_REF, '--scope', scope],
54
+ label: `claude plugin update ${PLUGIN_REF} --scope ${scope}`,
55
+ },
37
56
  ],
38
- graph: false, // /draft:init fetches the graph engine on first use
39
- done: 'Installed draft. Restart Claude Code (or start a new session), then run /draft:init.',
57
+ graph: true, // fetch the graph engine at install time (/draft:init also fetches on first use as a fallback)
58
+ done: 'Installed/updated draft. Restart Claude Code (or start a new session), then run /draft:init.',
40
59
  fallbackTitle: 'Claude Code CLI not found. Run these in Claude Code instead:',
41
60
  fallback: [
42
61
  '/plugin marketplace add drafthq/draft',
62
+ '/plugin marketplace update draft-plugins',
43
63
  '/plugin install draft',
64
+ '/plugin update draft',
44
65
  ],
45
66
  };
46
67
  },
@@ -25,7 +25,7 @@ module.exports = {
25
25
  guard: true,
26
26
  },
27
27
  ],
28
- graph: false,
28
+ graph: true,
29
29
  done: 'Wrote AGENTS.md — Codex reads it automatically from the repo root.',
30
30
  notes: ['Commit AGENTS.md so your whole team shares the Draft methodology.'],
31
31
  };
@@ -32,7 +32,7 @@ module.exports = {
32
32
  label: '~/.agents/skills/draft/',
33
33
  },
34
34
  ],
35
- graph: false,
35
+ graph: true,
36
36
  done: 'opencode reads AGENTS.md from the repo root; Draft skills bundled under ~/.agents/skills/draft/.',
37
37
  };
38
38
  },
@@ -11,13 +11,22 @@ function hasBinary(name) {
11
11
  return !(r.error && r.error.code === 'ENOENT');
12
12
  }
13
13
 
14
+ // Per-step ceiling so a stalled network op (e.g. the `git clone` behind
15
+ // `claude plugin marketplace add`) fails loudly with the manual fallback
16
+ // instead of hanging the installer forever. Override with DRAFT_INSTALL_TIMEOUT_MS.
17
+ const STEP_TIMEOUT_MS = Number(process.env.DRAFT_INSTALL_TIMEOUT_MS) || 300000;
18
+
14
19
  function execAction(act, ctx) {
15
20
  const printable = `${act.cmd} ${act.args.join(' ')}`;
16
21
  log.plan(`${ctx.dryRun ? 'would run' : 'running'}: ${printable}`);
17
22
  if (ctx.dryRun) return 0;
18
- const r = spawnSync(act.cmd, act.args, { stdio: 'inherit' });
23
+ const r = spawnSync(act.cmd, act.args, { stdio: 'inherit', timeout: STEP_TIMEOUT_MS });
19
24
  if (r.error) {
20
- log.error(`failed to run ${act.cmd}: ${r.error.message}`);
25
+ if (r.error.code === 'ETIMEDOUT') {
26
+ log.error(`timed out after ${Math.round(STEP_TIMEOUT_MS / 1000)}s: ${printable}`);
27
+ } else {
28
+ log.error(`failed to run ${act.cmd}: ${r.error.message}`);
29
+ }
21
30
  return 1;
22
31
  }
23
32
  return r.status == null ? 1 : r.status;
@@ -0,0 +1,91 @@
1
+ # Draft - Context-Driven Development
2
+
3
+ You are operating with the Draft methodology for Context-Driven Development.
4
+
5
+ **Measure twice, code once.**
6
+
7
+ ## Core Workflow
8
+
9
+ **Context -> Spec & Plan -> Implement**
10
+
11
+ Every feature follows this lifecycle:
12
+ 1. **Setup** - Initialize project context (once per project)
13
+ 2. **New Track** - Create specification and plan
14
+ 3. **Implement** - Execute tasks with TDD workflow
15
+ 4. **Verify** - Confirm acceptance criteria met
16
+
17
+ ## Project Context Files
18
+
19
+ When `draft/` exists in the project, always consider:
20
+ - `draft/.ai-context.md` - Source of truth for AI agents (dense codebase understanding)
21
+ - `draft/architecture.md` - Human-readable engineering guide (derived from .ai-context.md)
22
+ - `draft/product.md` - Product vision and goals
23
+ - `draft/tech-stack.md` - Technical constraints
24
+ - `draft/workflow.md` - TDD and commit preferences
25
+ - `draft/tracks.md` - Active work items
26
+
27
+ ## Available Commands
28
+
29
+ | Command | Purpose |
30
+ |---------|---------|
31
+ | `draft` | Show overview and available commands |
32
+ | `draft init` | Initialize project (run once) |
33
+ | `draft index [--init-missing]` | Aggregate monorepo service contexts |
34
+ | `draft new-track <description>` | Create feature/bug track |
35
+ | `draft decompose` | Module decomposition with dependency mapping |
36
+ | `draft implement` | Execute tasks from plan |
37
+ | `draft coverage` | Code coverage report (target 95%+) |
38
+ | `draft bughunt [--track <id>]` | Systematic bug discovery |
39
+ | `draft review [--track <id>]` | Three-stage code review |
40
+ | `draft deep-review [module]` | Exhaustive production-grade module audit |
41
+ | `draft learn [promote\|migrate]` | Discover coding patterns, update guardrails |
42
+ | `draft adr [title]` | Architecture Decision Records |
43
+ | `draft status` | Show progress overview |
44
+ | `draft revert` | Git-aware rollback |
45
+ | `draft change <description>` | Handle mid-track requirement changes |
46
+ | `draft jira-preview [track-id]` | Generate jira-export.md for review |
47
+ | `draft jira-create [track-id]` | Create Jira issues from export via MCP |
48
+
49
+ ## Intent Mapping
50
+
51
+ Recognize these natural language patterns:
52
+
53
+ | User Says | Action |
54
+ |-----------|--------|
55
+ | "set up the project" | Run init |
56
+ | "index services", "aggregate context" | Run index |
57
+ | "new feature", "add X" | Create new track |
58
+ | "break into modules", "decompose" | Run decompose |
59
+ | "start implementing" | Execute implement |
60
+ | "check coverage", "test coverage" | Run coverage |
61
+ | "hunt bugs", "find bugs" | Run bug hunt |
62
+ | "review code", "review track", "check quality" | Run review |
63
+ | "deep review", "production audit", "module audit" | Run deep-review |
64
+ | "learn patterns", "update guardrails", "discover conventions" | Run learn |
65
+ | "what's the status" | Show status |
66
+ | "undo", "revert" | Run revert |
67
+ | "requirements changed", "scope changed", "update the spec" | Run change |
68
+ | "preview jira", "export to jira" | Run jira-preview |
69
+ | "create jira", "push to jira" | Run jira-create |
70
+ | "document decision", "create ADR" | Create architecture decision record |
71
+ | "help", "what commands" | Show draft overview |
72
+ | "the plan" | Read active track's plan.md |
73
+ | "the spec" | Read active track's spec.md |
74
+
75
+ ## Tracks
76
+
77
+ A **track** is a high-level unit of work (feature, bug fix, refactor). Each track contains:
78
+ - `spec.md` - Requirements and acceptance criteria
79
+ - `plan.md` - Phased task breakdown
80
+ - `metadata.json` - Status and timestamps
81
+
82
+ Located at: `draft/tracks/<track-id>/`
83
+
84
+ ## Status Markers
85
+
86
+ Recognize and use these throughout plan.md:
87
+ - `[ ]` - Pending
88
+ - `[~]` - In Progress
89
+ - `[x]` - Completed
90
+ - `[!]` - Blocked
91
+
@@ -0,0 +1,91 @@
1
+ # Draft - Context-Driven Development
2
+
3
+ You are operating with the Draft methodology for Context-Driven Development.
4
+
5
+ **Measure twice, code once.**
6
+
7
+ ## Core Workflow
8
+
9
+ **Context -> Spec & Plan -> Implement**
10
+
11
+ Every feature follows this lifecycle:
12
+ 1. **Setup** - Initialize project context (once per project)
13
+ 2. **New Track** - Create specification and plan
14
+ 3. **Implement** - Execute tasks with TDD workflow
15
+ 4. **Verify** - Confirm acceptance criteria met
16
+
17
+ ## Project Context Files
18
+
19
+ When `draft/` exists in the project, always consider:
20
+ - `draft/.ai-context.md` - Source of truth for AI agents (dense codebase understanding)
21
+ - `draft/architecture.md` - Human-readable engineering guide (derived from .ai-context.md)
22
+ - `draft/product.md` - Product vision and goals
23
+ - `draft/tech-stack.md` - Technical constraints
24
+ - `draft/workflow.md` - TDD and commit preferences
25
+ - `draft/tracks.md` - Active work items
26
+
27
+ ## Available Commands
28
+
29
+ | Command | Purpose |
30
+ |---------|---------|
31
+ | `draft` | Show overview and available commands |
32
+ | `draft init` | Initialize project (run once) |
33
+ | `draft index [--init-missing]` | Aggregate monorepo service contexts |
34
+ | `draft new-track <description>` | Create feature/bug track |
35
+ | `draft decompose` | Module decomposition with dependency mapping |
36
+ | `draft implement` | Execute tasks from plan |
37
+ | `draft coverage` | Code coverage report (target 95%+) |
38
+ | `draft bughunt [--track <id>]` | Systematic bug discovery |
39
+ | `draft review [--track <id>]` | Three-stage code review |
40
+ | `draft deep-review [module]` | Exhaustive production-grade module audit |
41
+ | `draft learn [promote\|migrate]` | Discover coding patterns, update guardrails |
42
+ | `draft adr [title]` | Architecture Decision Records |
43
+ | `draft status` | Show progress overview |
44
+ | `draft revert` | Git-aware rollback |
45
+ | `draft change <description>` | Handle mid-track requirement changes |
46
+ | `draft jira-preview [track-id]` | Generate jira-export.md for review |
47
+ | `draft jira-create [track-id]` | Create Jira issues from export via MCP |
48
+
49
+ ## Intent Mapping
50
+
51
+ Recognize these natural language patterns:
52
+
53
+ | User Says | Action |
54
+ |-----------|--------|
55
+ | "set up the project" | Run init |
56
+ | "index services", "aggregate context" | Run index |
57
+ | "new feature", "add X" | Create new track |
58
+ | "break into modules", "decompose" | Run decompose |
59
+ | "start implementing" | Execute implement |
60
+ | "check coverage", "test coverage" | Run coverage |
61
+ | "hunt bugs", "find bugs" | Run bug hunt |
62
+ | "review code", "review track", "check quality" | Run review |
63
+ | "deep review", "production audit", "module audit" | Run deep-review |
64
+ | "learn patterns", "update guardrails", "discover conventions" | Run learn |
65
+ | "what's the status" | Show status |
66
+ | "undo", "revert" | Run revert |
67
+ | "requirements changed", "scope changed", "update the spec" | Run change |
68
+ | "preview jira", "export to jira" | Run jira-preview |
69
+ | "create jira", "push to jira" | Run jira-create |
70
+ | "document decision", "create ADR" | Create architecture decision record |
71
+ | "help", "what commands" | Show draft overview |
72
+ | "the plan" | Read active track's plan.md |
73
+ | "the spec" | Read active track's spec.md |
74
+
75
+ ## Tracks
76
+
77
+ A **track** is a high-level unit of work (feature, bug fix, refactor). Each track contains:
78
+ - `spec.md` - Requirements and acceptance criteria
79
+ - `plan.md` - Phased task breakdown
80
+ - `metadata.json` - Status and timestamps
81
+
82
+ Located at: `draft/tracks/<track-id>/`
83
+
84
+ ## Status Markers
85
+
86
+ Recognize and use these throughout plan.md:
87
+ - `[ ]` - Pending
88
+ - `[~]` - In Progress
89
+ - `[x]` - Completed
90
+ - `[!]` - Blocked
91
+
@@ -0,0 +1,122 @@
1
+ # Draft - Context-Driven Development
2
+
3
+ You are operating with the Draft methodology for Context-Driven Development.
4
+
5
+ **Measure twice, code once.**
6
+
7
+ ## Core Workflow
8
+
9
+ **Context -> Spec & Plan -> Implement**
10
+
11
+ Every feature follows this lifecycle:
12
+ 1. **Setup** - Initialize project context (once per project)
13
+ 2. **New Track** - Create specification and plan
14
+ 3. **Implement** - Execute tasks with TDD workflow
15
+ 4. **Verify** - Confirm acceptance criteria met
16
+
17
+ ## Project Context Files
18
+
19
+ When `draft/` exists in the project, always consider:
20
+ - `draft/.ai-context.md` - Source of truth for AI agents (dense codebase understanding)
21
+ - `draft/.ai-profile.md` - Ultra-compact profile (always loaded, 20-50 lines)
22
+ - `draft/architecture.md` - Human-readable engineering guide (source of truth)
23
+ - `draft/product.md` - Product vision and goals
24
+ - `draft/tech-stack.md` - Technical constraints
25
+ - `draft/workflow.md` - TDD and commit preferences
26
+ - `draft/tracks.md` - Active work items
27
+ - `draft/guardrails.md` - Hard rules and learned patterns
28
+
29
+ ## Available Commands
30
+
31
+ | Command | Purpose |
32
+ |---------|---------|
33
+ | `draft` | Show overview and available commands |
34
+ | `draft init` | Initialize project (run once) |
35
+ | `draft index [--init-missing]` | Aggregate monorepo service contexts |
36
+ | `draft new-track <description>` | Create feature/bug track |
37
+ | `draft decompose` | Module decomposition with dependency mapping |
38
+ | `draft implement` | Execute tasks from plan |
39
+ | `draft coverage` | Code coverage report (target 95%+) |
40
+ | `draft deploy-checklist [track <id>]` | Pre-deployment verification checklist |
41
+ | `draft bughunt [--track <id>]` | Systematic bug discovery |
42
+ | `draft review [--track <id>]` | Three-stage code review |
43
+ | `draft quick-review [file|pr <number>]` | Lightweight 4-dimension review |
44
+ | `draft deep-review [module]` | Exhaustive production-grade module audit |
45
+ | `draft testing-strategy [track <id>|path]` | Design test strategy with coverage targets |
46
+ | `draft learn [promote\|migrate]` | Discover coding patterns, update guardrails |
47
+ | `draft adr [title]` | Architecture Decision Records |
48
+ | `draft debug [description|track <id>]` | Structured debugging session |
49
+ | `draft standup [date|week|save]` | Generate standup summary |
50
+ | `draft tech-debt [path|track <id>]` | Identify and prioritize tech debt |
51
+ | `draft incident-response [new|update|postmortem]` | Incident management lifecycle |
52
+ | `draft documentation [readme|runbook|api|onboarding]` | Technical documentation |
53
+ | `draft status` | Show progress overview |
54
+ | `draft revert` | Git-aware rollback |
55
+ | `draft change <description>` | Handle mid-track requirement changes |
56
+ | `draft jira-preview [track-id]` | Generate jira-export.md for review |
57
+ | `draft jira-create [track-id]` | Create Jira issues from export via MCP |
58
+ | `draft tour` | Interactive onboarding tour |
59
+ | `draft impact` | Telemetry and analytics insights |
60
+ | `draft assist-review` | Assist human reviewers with architectural risk audit |
61
+
62
+ ## Intent Mapping
63
+
64
+ Recognize these natural language patterns:
65
+
66
+ | User Says | Action |
67
+ |-----------|--------|
68
+ | "set up the project" | Run init |
69
+ | "index services", "aggregate context" | Run index |
70
+ | "new feature", "add X" | Create new track |
71
+ | "break into modules", "decompose" | Run decompose |
72
+ | "start implementing" | Execute implement |
73
+ | "check coverage", "test coverage" | Run coverage |
74
+ | "deploy checklist", "pre-deploy check" | Run deploy-checklist |
75
+ | "hunt bugs", "find bugs" | Run bughunt |
76
+ | "review code", "review track", "check quality" | Run review |
77
+ | "quick review", "lightweight review" | Run quick-review |
78
+ | "deep review", "production audit", "module audit" | Run deep-review |
79
+ | "test strategy", "plan tests" | Run testing-strategy |
80
+ | "learn patterns", "update guardrails", "discover conventions" | Run learn |
81
+ | "document decision", "create ADR" | Create architecture decision record |
82
+ | "debug bug", "investigate issue" | Run debug |
83
+ | "standup", "daily summary" | Run standup |
84
+ | "tech debt", "identify debt" | Run tech-debt |
85
+ | "incident", "outage", "postmortem" | Run incident-response |
86
+ | "write docs", "document" | Run documentation |
87
+ | "what's the status" | Show status |
88
+ | "undo", "revert" | Run revert |
89
+ | "requirements changed", "scope changed", "update the spec" | Run change |
90
+ | "preview jira", "export to jira" | Run jira-preview |
91
+ | "create jira", "push to jira" | Run jira-create |
92
+ | "tour", "onboard me" | Run tour |
93
+ | "impact", "analytics" | Run impact |
94
+ | "assist review", "help reviewer" | Run assist-review |
95
+ | "help", "what commands" | Show draft overview |
96
+ | "the plan" | Read active track's plan.md |
97
+ | "the spec" | Read active track's spec.md |
98
+
99
+ ## Tracks
100
+
101
+ A **track** is a high-level unit of work (feature, bug fix, refactor). Each track contains:
102
+ - `spec.md` - Requirements and acceptance criteria
103
+ - `plan.md` - Phased task breakdown
104
+ - `metadata.json` - Status and timestamps
105
+
106
+ Located at: `draft/tracks/<track-id>/`
107
+
108
+ ## Status Markers
109
+
110
+ Recognize and use these throughout plan.md:
111
+ - `[ ]` - Pending
112
+ - `[~]` - In Progress
113
+ - `[x]` - Completed
114
+ - `[!]` - Blocked
115
+
116
+
117
+ ---
118
+
119
+ ## Init Command
120
+
121
+ When user says "init draft" or "draft init [refresh]":
122
+
@@ -0,0 +1,91 @@
1
+ # Draft - Context-Driven Development
2
+
3
+ You are operating with the Draft methodology for Context-Driven Development.
4
+
5
+ **Measure twice, code once.**
6
+
7
+ ## Core Workflow
8
+
9
+ **Context -> Spec & Plan -> Implement**
10
+
11
+ Every feature follows this lifecycle:
12
+ 1. **Setup** - Initialize project context (once per project)
13
+ 2. **New Track** - Create specification and plan
14
+ 3. **Implement** - Execute tasks with TDD workflow
15
+ 4. **Verify** - Confirm acceptance criteria met
16
+
17
+ ## Project Context Files
18
+
19
+ When `draft/` exists in the project, always consider:
20
+ - `draft/.ai-context.md` - Source of truth for AI agents (dense codebase understanding)
21
+ - `draft/architecture.md` - Human-readable engineering guide (derived from .ai-context.md)
22
+ - `draft/product.md` - Product vision and goals
23
+ - `draft/tech-stack.md` - Technical constraints
24
+ - `draft/workflow.md` - TDD and commit preferences
25
+ - `draft/tracks.md` - Active work items
26
+
27
+ ## Available Commands
28
+
29
+ | Command | Purpose |
30
+ |---------|---------|
31
+ | `draft` | Show overview and available commands |
32
+ | `draft init` | Initialize project (run once) |
33
+ | `draft index [--init-missing]` | Aggregate monorepo service contexts |
34
+ | `draft new-track <description>` | Create feature/bug track |
35
+ | `draft decompose` | Module decomposition with dependency mapping |
36
+ | `draft implement` | Execute tasks from plan |
37
+ | `draft coverage` | Code coverage report (target 95%+) |
38
+ | `draft bughunt [--track <id>]` | Systematic bug discovery |
39
+ | `draft review [--track <id>]` | Three-stage code review |
40
+ | `draft deep-review [module]` | Exhaustive production-grade module audit |
41
+ | `draft learn [promote\|migrate]` | Discover coding patterns, update guardrails |
42
+ | `draft adr [title]` | Architecture Decision Records |
43
+ | `draft status` | Show progress overview |
44
+ | `draft revert` | Git-aware rollback |
45
+ | `draft change <description>` | Handle mid-track requirement changes |
46
+ | `draft jira-preview [track-id]` | Generate jira-export.md for review |
47
+ | `draft jira-create [track-id]` | Create Jira issues from export via MCP |
48
+
49
+ ## Intent Mapping
50
+
51
+ Recognize these natural language patterns:
52
+
53
+ | User Says | Action |
54
+ |-----------|--------|
55
+ | "set up the project" | Run init |
56
+ | "index services", "aggregate context" | Run index |
57
+ | "new feature", "add X" | Create new track |
58
+ | "break into modules", "decompose" | Run decompose |
59
+ | "start implementing" | Execute implement |
60
+ | "check coverage", "test coverage" | Run coverage |
61
+ | "hunt bugs", "find bugs" | Run bug hunt |
62
+ | "review code", "review track", "check quality" | Run review |
63
+ | "deep review", "production audit", "module audit" | Run deep-review |
64
+ | "learn patterns", "update guardrails", "discover conventions" | Run learn |
65
+ | "what's the status" | Show status |
66
+ | "undo", "revert" | Run revert |
67
+ | "requirements changed", "scope changed", "update the spec" | Run change |
68
+ | "preview jira", "export to jira" | Run jira-preview |
69
+ | "create jira", "push to jira" | Run jira-create |
70
+ | "document decision", "create ADR" | Create architecture decision record |
71
+ | "help", "what commands" | Show draft overview |
72
+ | "the plan" | Read active track's plan.md |
73
+ | "the spec" | Read active track's spec.md |
74
+
75
+ ## Tracks
76
+
77
+ A **track** is a high-level unit of work (feature, bug fix, refactor). Each track contains:
78
+ - `spec.md` - Requirements and acceptance criteria
79
+ - `plan.md` - Phased task breakdown
80
+ - `metadata.json` - Status and timestamps
81
+
82
+ Located at: `draft/tracks/<track-id>/`
83
+
84
+ ## Status Markers
85
+
86
+ Recognize and use these throughout plan.md:
87
+ - `[ ]` - Pending
88
+ - `[~]` - In Progress
89
+ - `[x]` - Completed
90
+ - `[!]` - Blocked
91
+
@@ -0,0 +1,91 @@
1
+ # Draft - Context-Driven Development
2
+
3
+ You are operating with the Draft methodology for Context-Driven Development.
4
+
5
+ **Measure twice, code once.**
6
+
7
+ ## Core Workflow
8
+
9
+ **Context -> Spec & Plan -> Implement**
10
+
11
+ Every feature follows this lifecycle:
12
+ 1. **Setup** - Initialize project context (once per project)
13
+ 2. **New Track** - Create specification and plan
14
+ 3. **Implement** - Execute tasks with TDD workflow
15
+ 4. **Verify** - Confirm acceptance criteria met
16
+
17
+ ## Project Context Files
18
+
19
+ When `draft/` exists in the project, always consider:
20
+ - `draft/.ai-context.md` - Source of truth for AI agents (dense codebase understanding)
21
+ - `draft/architecture.md` - Human-readable engineering guide (derived from .ai-context.md)
22
+ - `draft/product.md` - Product vision and goals
23
+ - `draft/tech-stack.md` - Technical constraints
24
+ - `draft/workflow.md` - TDD and commit preferences
25
+ - `draft/tracks.md` - Active work items
26
+
27
+ ## Available Commands
28
+
29
+ | Command | Purpose |
30
+ |---------|---------|
31
+ | `draft` | Show overview and available commands |
32
+ | `draft init` | Initialize project (run once) |
33
+ | `draft index [--init-missing]` | Aggregate monorepo service contexts |
34
+ | `draft new-track <description>` | Create feature/bug track |
35
+ | `draft decompose` | Module decomposition with dependency mapping |
36
+ | `draft implement` | Execute tasks from plan |
37
+ | `draft coverage` | Code coverage report (target 95%+) |
38
+ | `draft bughunt [--track <id>]` | Systematic bug discovery |
39
+ | `draft review [--track <id>]` | Three-stage code review |
40
+ | `draft deep-review [module]` | Exhaustive production-grade module audit |
41
+ | `draft learn [promote\|migrate]` | Discover coding patterns, update guardrails |
42
+ | `draft adr [title]` | Architecture Decision Records |
43
+ | `draft status` | Show progress overview |
44
+ | `draft revert` | Git-aware rollback |
45
+ | `draft change <description>` | Handle mid-track requirement changes |
46
+ | `draft jira-preview [track-id]` | Generate jira-export.md for review |
47
+ | `draft jira-create [track-id]` | Create Jira issues from export via MCP |
48
+
49
+ ## Intent Mapping
50
+
51
+ Recognize these natural language patterns:
52
+
53
+ | User Says | Action |
54
+ |-----------|--------|
55
+ | "set up the project" | Run init |
56
+ | "index services", "aggregate context" | Run index |
57
+ | "new feature", "add X" | Create new track |
58
+ | "break into modules", "decompose" | Run decompose |
59
+ | "start implementing" | Execute implement |
60
+ | "check coverage", "test coverage" | Run coverage |
61
+ | "hunt bugs", "find bugs" | Run bug hunt |
62
+ | "review code", "review track", "check quality" | Run review |
63
+ | "deep review", "production audit", "module audit" | Run deep-review |
64
+ | "learn patterns", "update guardrails", "discover conventions" | Run learn |
65
+ | "what's the status" | Show status |
66
+ | "undo", "revert" | Run revert |
67
+ | "requirements changed", "scope changed", "update the spec" | Run change |
68
+ | "preview jira", "export to jira" | Run jira-preview |
69
+ | "create jira", "push to jira" | Run jira-create |
70
+ | "document decision", "create ADR" | Create architecture decision record |
71
+ | "help", "what commands" | Show draft overview |
72
+ | "the plan" | Read active track's plan.md |
73
+ | "the spec" | Read active track's spec.md |
74
+
75
+ ## Tracks
76
+
77
+ A **track** is a high-level unit of work (feature, bug fix, refactor). Each track contains:
78
+ - `spec.md` - Requirements and acceptance criteria
79
+ - `plan.md` - Phased task breakdown
80
+ - `metadata.json` - Status and timestamps
81
+
82
+ Located at: `draft/tracks/<track-id>/`
83
+
84
+ ## Status Markers
85
+
86
+ Recognize and use these throughout plan.md:
87
+ - `[ ]` - Pending
88
+ - `[~]` - In Progress
89
+ - `[x]` - Completed
90
+ - `[!]` - Blocked
91
+
@@ -0,0 +1,91 @@
1
+ # Draft - Context-Driven Development
2
+
3
+ You are operating with the Draft methodology for Context-Driven Development.
4
+
5
+ **Measure twice, code once.**
6
+
7
+ ## Core Workflow
8
+
9
+ **Context -> Spec & Plan -> Implement**
10
+
11
+ Every feature follows this lifecycle:
12
+ 1. **Setup** - Initialize project context (once per project)
13
+ 2. **New Track** - Create specification and plan
14
+ 3. **Implement** - Execute tasks with TDD workflow
15
+ 4. **Verify** - Confirm acceptance criteria met
16
+
17
+ ## Project Context Files
18
+
19
+ When `draft/` exists in the project, always consider:
20
+ - `draft/.ai-context.md` - Source of truth for AI agents (dense codebase understanding)
21
+ - `draft/architecture.md` - Human-readable engineering guide (derived from .ai-context.md)
22
+ - `draft/product.md` - Product vision and goals
23
+ - `draft/tech-stack.md` - Technical constraints
24
+ - `draft/workflow.md` - TDD and commit preferences
25
+ - `draft/tracks.md` - Active work items
26
+
27
+ ## Available Commands
28
+
29
+ | Command | Purpose |
30
+ |---------|---------|
31
+ | `draft` | Show overview and available commands |
32
+ | `draft init` | Initialize project (run once) |
33
+ | `draft index [--init-missing]` | Aggregate monorepo service contexts |
34
+ | `draft new-track <description>` | Create feature/bug track |
35
+ | `draft decompose` | Module decomposition with dependency mapping |
36
+ | `draft implement` | Execute tasks from plan |
37
+ | `draft coverage` | Code coverage report (target 95%+) |
38
+ | `draft bughunt [--track <id>]` | Systematic bug discovery |
39
+ | `draft review [--track <id>]` | Three-stage code review |
40
+ | `draft deep-review [module]` | Exhaustive production-grade module audit |
41
+ | `draft learn [promote\|migrate]` | Discover coding patterns, update guardrails |
42
+ | `draft adr [title]` | Architecture Decision Records |
43
+ | `draft status` | Show progress overview |
44
+ | `draft revert` | Git-aware rollback |
45
+ | `draft change <description>` | Handle mid-track requirement changes |
46
+ | `draft jira-preview [track-id]` | Generate jira-export.md for review |
47
+ | `draft jira-create [track-id]` | Create Jira issues from export via MCP |
48
+
49
+ ## Intent Mapping
50
+
51
+ Recognize these natural language patterns:
52
+
53
+ | User Says | Action |
54
+ |-----------|--------|
55
+ | "set up the project" | Run init |
56
+ | "index services", "aggregate context" | Run index |
57
+ | "new feature", "add X" | Create new track |
58
+ | "break into modules", "decompose" | Run decompose |
59
+ | "start implementing" | Execute implement |
60
+ | "check coverage", "test coverage" | Run coverage |
61
+ | "hunt bugs", "find bugs" | Run bug hunt |
62
+ | "review code", "review track", "check quality" | Run review |
63
+ | "deep review", "production audit", "module audit" | Run deep-review |
64
+ | "learn patterns", "update guardrails", "discover conventions" | Run learn |
65
+ | "what's the status" | Show status |
66
+ | "undo", "revert" | Run revert |
67
+ | "requirements changed", "scope changed", "update the spec" | Run change |
68
+ | "preview jira", "export to jira" | Run jira-preview |
69
+ | "create jira", "push to jira" | Run jira-create |
70
+ | "document decision", "create ADR" | Create architecture decision record |
71
+ | "help", "what commands" | Show draft overview |
72
+ | "the plan" | Read active track's plan.md |
73
+ | "the spec" | Read active track's spec.md |
74
+
75
+ ## Tracks
76
+
77
+ A **track** is a high-level unit of work (feature, bug fix, refactor). Each track contains:
78
+ - `spec.md` - Requirements and acceptance criteria
79
+ - `plan.md` - Phased task breakdown
80
+ - `metadata.json` - Status and timestamps
81
+
82
+ Located at: `draft/tracks/<track-id>/`
83
+
84
+ ## Status Markers
85
+
86
+ Recognize and use these throughout plan.md:
87
+ - `[ ]` - Pending
88
+ - `[~]` - In Progress
89
+ - `[x]` - Completed
90
+ - `[!]` - Blocked
91
+
@@ -0,0 +1,91 @@
1
+ # Draft - Context-Driven Development
2
+
3
+ You are operating with the Draft methodology for Context-Driven Development.
4
+
5
+ **Measure twice, code once.**
6
+
7
+ ## Core Workflow
8
+
9
+ **Context -> Spec & Plan -> Implement**
10
+
11
+ Every feature follows this lifecycle:
12
+ 1. **Setup** - Initialize project context (once per project)
13
+ 2. **New Track** - Create specification and plan
14
+ 3. **Implement** - Execute tasks with TDD workflow
15
+ 4. **Verify** - Confirm acceptance criteria met
16
+
17
+ ## Project Context Files
18
+
19
+ When `draft/` exists in the project, always consider:
20
+ - `draft/.ai-context.md` - Source of truth for AI agents (dense codebase understanding)
21
+ - `draft/architecture.md` - Human-readable engineering guide (derived from .ai-context.md)
22
+ - `draft/product.md` - Product vision and goals
23
+ - `draft/tech-stack.md` - Technical constraints
24
+ - `draft/workflow.md` - TDD and commit preferences
25
+ - `draft/tracks.md` - Active work items
26
+
27
+ ## Available Commands
28
+
29
+ | Command | Purpose |
30
+ |---------|---------|
31
+ | `draft` | Show overview and available commands |
32
+ | `draft init` | Initialize project (run once) |
33
+ | `draft index [--init-missing]` | Aggregate monorepo service contexts |
34
+ | `draft new-track <description>` | Create feature/bug track |
35
+ | `draft decompose` | Module decomposition with dependency mapping |
36
+ | `draft implement` | Execute tasks from plan |
37
+ | `draft coverage` | Code coverage report (target 95%+) |
38
+ | `draft bughunt [--track <id>]` | Systematic bug discovery |
39
+ | `draft review [--track <id>]` | Three-stage code review |
40
+ | `draft deep-review [module]` | Exhaustive production-grade module audit |
41
+ | `draft learn [promote\|migrate]` | Discover coding patterns, update guardrails |
42
+ | `draft adr [title]` | Architecture Decision Records |
43
+ | `draft status` | Show progress overview |
44
+ | `draft revert` | Git-aware rollback |
45
+ | `draft change <description>` | Handle mid-track requirement changes |
46
+ | `draft jira-preview [track-id]` | Generate jira-export.md for review |
47
+ | `draft jira-create [track-id]` | Create Jira issues from export via MCP |
48
+
49
+ ## Intent Mapping
50
+
51
+ Recognize these natural language patterns:
52
+
53
+ | User Says | Action |
54
+ |-----------|--------|
55
+ | "set up the project" | Run init |
56
+ | "index services", "aggregate context" | Run index |
57
+ | "new feature", "add X" | Create new track |
58
+ | "break into modules", "decompose" | Run decompose |
59
+ | "start implementing" | Execute implement |
60
+ | "check coverage", "test coverage" | Run coverage |
61
+ | "hunt bugs", "find bugs" | Run bug hunt |
62
+ | "review code", "review track", "check quality" | Run review |
63
+ | "deep review", "production audit", "module audit" | Run deep-review |
64
+ | "learn patterns", "update guardrails", "discover conventions" | Run learn |
65
+ | "what's the status" | Show status |
66
+ | "undo", "revert" | Run revert |
67
+ | "requirements changed", "scope changed", "update the spec" | Run change |
68
+ | "preview jira", "export to jira" | Run jira-preview |
69
+ | "create jira", "push to jira" | Run jira-create |
70
+ | "document decision", "create ADR" | Create architecture decision record |
71
+ | "help", "what commands" | Show draft overview |
72
+ | "the plan" | Read active track's plan.md |
73
+ | "the spec" | Read active track's spec.md |
74
+
75
+ ## Tracks
76
+
77
+ A **track** is a high-level unit of work (feature, bug fix, refactor). Each track contains:
78
+ - `spec.md` - Requirements and acceptance criteria
79
+ - `plan.md` - Phased task breakdown
80
+ - `metadata.json` - Status and timestamps
81
+
82
+ Located at: `draft/tracks/<track-id>/`
83
+
84
+ ## Status Markers
85
+
86
+ Recognize and use these throughout plan.md:
87
+ - `[ ]` - Pending
88
+ - `[~]` - In Progress
89
+ - `[x]` - Completed
90
+ - `[!]` - Blocked
91
+
@@ -0,0 +1,91 @@
1
+ # Draft - Context-Driven Development
2
+
3
+ You are operating with the Draft methodology for Context-Driven Development.
4
+
5
+ **Measure twice, code once.**
6
+
7
+ ## Core Workflow
8
+
9
+ **Context -> Spec & Plan -> Implement**
10
+
11
+ Every feature follows this lifecycle:
12
+ 1. **Setup** - Initialize project context (once per project)
13
+ 2. **New Track** - Create specification and plan
14
+ 3. **Implement** - Execute tasks with TDD workflow
15
+ 4. **Verify** - Confirm acceptance criteria met
16
+
17
+ ## Project Context Files
18
+
19
+ When `draft/` exists in the project, always consider:
20
+ - `draft/.ai-context.md` - Source of truth for AI agents (dense codebase understanding)
21
+ - `draft/architecture.md` - Human-readable engineering guide (derived from .ai-context.md)
22
+ - `draft/product.md` - Product vision and goals
23
+ - `draft/tech-stack.md` - Technical constraints
24
+ - `draft/workflow.md` - TDD and commit preferences
25
+ - `draft/tracks.md` - Active work items
26
+
27
+ ## Available Commands
28
+
29
+ | Command | Purpose |
30
+ |---------|---------|
31
+ | `draft` | Show overview and available commands |
32
+ | `draft init` | Initialize project (run once) |
33
+ | `draft index [--init-missing]` | Aggregate monorepo service contexts |
34
+ | `draft new-track <description>` | Create feature/bug track |
35
+ | `draft decompose` | Module decomposition with dependency mapping |
36
+ | `draft implement` | Execute tasks from plan |
37
+ | `draft coverage` | Code coverage report (target 95%+) |
38
+ | `draft bughunt [--track <id>]` | Systematic bug discovery |
39
+ | `draft review [--track <id>]` | Three-stage code review |
40
+ | `draft deep-review [module]` | Exhaustive production-grade module audit |
41
+ | `draft learn [promote\|migrate]` | Discover coding patterns, update guardrails |
42
+ | `draft adr [title]` | Architecture Decision Records |
43
+ | `draft status` | Show progress overview |
44
+ | `draft revert` | Git-aware rollback |
45
+ | `draft change <description>` | Handle mid-track requirement changes |
46
+ | `draft jira-preview [track-id]` | Generate jira-export.md for review |
47
+ | `draft jira-create [track-id]` | Create Jira issues from export via MCP |
48
+
49
+ ## Intent Mapping
50
+
51
+ Recognize these natural language patterns:
52
+
53
+ | User Says | Action |
54
+ |-----------|--------|
55
+ | "set up the project" | Run init |
56
+ | "index services", "aggregate context" | Run index |
57
+ | "new feature", "add X" | Create new track |
58
+ | "break into modules", "decompose" | Run decompose |
59
+ | "start implementing" | Execute implement |
60
+ | "check coverage", "test coverage" | Run coverage |
61
+ | "hunt bugs", "find bugs" | Run bug hunt |
62
+ | "review code", "review track", "check quality" | Run review |
63
+ | "deep review", "production audit", "module audit" | Run deep-review |
64
+ | "learn patterns", "update guardrails", "discover conventions" | Run learn |
65
+ | "what's the status" | Show status |
66
+ | "undo", "revert" | Run revert |
67
+ | "requirements changed", "scope changed", "update the spec" | Run change |
68
+ | "preview jira", "export to jira" | Run jira-preview |
69
+ | "create jira", "push to jira" | Run jira-create |
70
+ | "document decision", "create ADR" | Create architecture decision record |
71
+ | "help", "what commands" | Show draft overview |
72
+ | "the plan" | Read active track's plan.md |
73
+ | "the spec" | Read active track's spec.md |
74
+
75
+ ## Tracks
76
+
77
+ A **track** is a high-level unit of work (feature, bug fix, refactor). Each track contains:
78
+ - `spec.md` - Requirements and acceptance criteria
79
+ - `plan.md` - Phased task breakdown
80
+ - `metadata.json` - Status and timestamps
81
+
82
+ Located at: `draft/tracks/<track-id>/`
83
+
84
+ ## Status Markers
85
+
86
+ Recognize and use these throughout plan.md:
87
+ - `[ ]` - Pending
88
+ - `[~]` - In Progress
89
+ - `[x]` - Completed
90
+ - `[!]` - Blocked
91
+
@@ -0,0 +1,91 @@
1
+ # Draft - Context-Driven Development
2
+
3
+ You are operating with the Draft methodology for Context-Driven Development.
4
+
5
+ **Measure twice, code once.**
6
+
7
+ ## Core Workflow
8
+
9
+ **Context -> Spec & Plan -> Implement**
10
+
11
+ Every feature follows this lifecycle:
12
+ 1. **Setup** - Initialize project context (once per project)
13
+ 2. **New Track** - Create specification and plan
14
+ 3. **Implement** - Execute tasks with TDD workflow
15
+ 4. **Verify** - Confirm acceptance criteria met
16
+
17
+ ## Project Context Files
18
+
19
+ When `draft/` exists in the project, always consider:
20
+ - `draft/.ai-context.md` - Source of truth for AI agents (dense codebase understanding)
21
+ - `draft/architecture.md` - Human-readable engineering guide (derived from .ai-context.md)
22
+ - `draft/product.md` - Product vision and goals
23
+ - `draft/tech-stack.md` - Technical constraints
24
+ - `draft/workflow.md` - TDD and commit preferences
25
+ - `draft/tracks.md` - Active work items
26
+
27
+ ## Available Commands
28
+
29
+ | Command | Purpose |
30
+ |---------|---------|
31
+ | `draft` | Show overview and available commands |
32
+ | `draft init` | Initialize project (run once) |
33
+ | `draft index [--init-missing]` | Aggregate monorepo service contexts |
34
+ | `draft new-track <description>` | Create feature/bug track |
35
+ | `draft decompose` | Module decomposition with dependency mapping |
36
+ | `draft implement` | Execute tasks from plan |
37
+ | `draft coverage` | Code coverage report (target 95%+) |
38
+ | `draft bughunt [--track <id>]` | Systematic bug discovery |
39
+ | `draft review [--track <id>]` | Three-stage code review |
40
+ | `draft deep-review [module]` | Exhaustive production-grade module audit |
41
+ | `draft learn [promote\|migrate]` | Discover coding patterns, update guardrails |
42
+ | `draft adr [title]` | Architecture Decision Records |
43
+ | `draft status` | Show progress overview |
44
+ | `draft revert` | Git-aware rollback |
45
+ | `draft change <description>` | Handle mid-track requirement changes |
46
+ | `draft jira-preview [track-id]` | Generate jira-export.md for review |
47
+ | `draft jira-create [track-id]` | Create Jira issues from export via MCP |
48
+
49
+ ## Intent Mapping
50
+
51
+ Recognize these natural language patterns:
52
+
53
+ | User Says | Action |
54
+ |-----------|--------|
55
+ | "set up the project" | Run init |
56
+ | "index services", "aggregate context" | Run index |
57
+ | "new feature", "add X" | Create new track |
58
+ | "break into modules", "decompose" | Run decompose |
59
+ | "start implementing" | Execute implement |
60
+ | "check coverage", "test coverage" | Run coverage |
61
+ | "hunt bugs", "find bugs" | Run bug hunt |
62
+ | "review code", "review track", "check quality" | Run review |
63
+ | "deep review", "production audit", "module audit" | Run deep-review |
64
+ | "learn patterns", "update guardrails", "discover conventions" | Run learn |
65
+ | "what's the status" | Show status |
66
+ | "undo", "revert" | Run revert |
67
+ | "requirements changed", "scope changed", "update the spec" | Run change |
68
+ | "preview jira", "export to jira" | Run jira-preview |
69
+ | "create jira", "push to jira" | Run jira-create |
70
+ | "document decision", "create ADR" | Create architecture decision record |
71
+ | "help", "what commands" | Show draft overview |
72
+ | "the plan" | Read active track's plan.md |
73
+ | "the spec" | Read active track's spec.md |
74
+
75
+ ## Tracks
76
+
77
+ A **track** is a high-level unit of work (feature, bug fix, refactor). Each track contains:
78
+ - `spec.md` - Requirements and acceptance criteria
79
+ - `plan.md` - Phased task breakdown
80
+ - `metadata.json` - Status and timestamps
81
+
82
+ Located at: `draft/tracks/<track-id>/`
83
+
84
+ ## Status Markers
85
+
86
+ Recognize and use these throughout plan.md:
87
+ - `[ ]` - Pending
88
+ - `[~]` - In Progress
89
+ - `[x]` - Completed
90
+ - `[!]` - Blocked
91
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drafthq/draft",
3
- "version": "2.7.1",
3
+ "version": "2.8.3",
4
4
  "description": "Context-Driven Development for AI coding agents — install Draft into Claude Code, Cursor, Codex, or opencode.",
5
5
  "bin": {
6
6
  "draft": "cli/bin/draft.js"
@@ -8,7 +8,7 @@
8
8
  # which scripts/tools/_lib.sh:find_memory_bin resolves.
9
9
  #
10
10
  # Pinned by default for reproducibility; override with CMM_VERSION (a tag, e.g.
11
- # "v0.7.0", or "latest").
11
+ # "v0.8.1", or "latest").
12
12
  #
13
13
  # Usage:
14
14
  # scripts/fetch-memory-engine.sh [--dest DIR] [--force]
@@ -21,7 +21,7 @@
21
21
  set -euo pipefail
22
22
 
23
23
  REPO="DeusData/codebase-memory-mcp"
24
- DEFAULT_VERSION="v0.7.0" # pinned; bump deliberately
24
+ DEFAULT_VERSION="v0.8.1" # pinned; bump deliberately. NOTE: tag must carry the leading "v" AND have published assets (0.7.0 had none → 404).
25
25
  VERSION="${CMM_VERSION:-$DEFAULT_VERSION}"
26
26
  DEST="$HOME/.cache/draft/bin"
27
27
  FORCE=0