agent-method 1.5.3 → 1.5.6
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.
- package/README.md +197 -57
- package/bin/wwa.js +35 -9
- package/docs/internal/doc-tokens.yaml +452 -0
- package/docs/internal/feature-registry.yaml +13 -1
- package/lib/cli/casestudy.js +691 -0
- package/lib/cli/check.js +71 -71
- package/lib/cli/close.js +446 -0
- package/lib/cli/completion.js +639 -0
- package/lib/cli/digest.js +66 -0
- package/lib/cli/docs.js +207 -0
- package/lib/cli/helpers.js +49 -2
- package/lib/cli/implement.js +159 -0
- package/lib/cli/init.js +25 -6
- package/lib/cli/plan.js +128 -0
- package/lib/cli/refine.js +202 -202
- package/lib/cli/review.js +68 -0
- package/lib/cli/scan.js +28 -28
- package/lib/cli/status.js +61 -61
- package/lib/cli/upgrade.js +150 -147
- package/lib/init.js +478 -296
- package/package.json +12 -4
- package/templates/README.md +73 -25
- package/templates/entry-points/.cursorrules +143 -14
- package/templates/entry-points/AGENT.md +143 -14
- package/templates/entry-points/CLAUDE.md +143 -14
- package/templates/extensions/analytical-system.md +1 -1
- package/templates/extensions/code-project.md +1 -1
- package/templates/extensions/data-exploration.md +1 -1
- package/templates/full/.context/BASE.md +33 -0
- package/templates/full/.context/METHODOLOGY.md +62 -5
- package/templates/full/.cursorrules +128 -18
- package/templates/full/AGENT.md +128 -18
- package/templates/full/CLAUDE.md +128 -18
- package/templates/full/Management/DIGEST.md +23 -0
- package/templates/full/Management/STATUS.md +46 -0
- package/templates/full/PROJECT.md +34 -0
- package/templates/full/Reviews/INDEX.md +41 -0
- package/templates/full/Reviews/backlog.md +52 -0
- package/templates/full/Reviews/plan.md +43 -0
- package/templates/full/Reviews/project.md +41 -0
- package/templates/full/Reviews/requirements.md +42 -0
- package/templates/full/Reviews/roadmap.md +41 -0
- package/templates/full/Reviews/state.md +56 -0
- package/templates/full/SESSION-LOG.md +29 -0
- package/templates/full/SUMMARY.md +7 -4
- package/templates/full/agentWorkflows/INDEX.md +42 -0
- package/templates/full/agentWorkflows/observations.md +65 -0
- package/templates/full/agentWorkflows/patterns.md +68 -0
- package/templates/full/agentWorkflows/sessions.md +92 -0
- package/templates/full/intro/README.md +39 -0
- package/templates/starter/.context/BASE.md +35 -0
- package/templates/starter/.context/METHODOLOGY.md +59 -5
- package/templates/starter/.cursorrules +135 -13
- package/templates/starter/AGENT.md +135 -13
- package/templates/starter/CLAUDE.md +135 -13
- package/templates/starter/Management/DIGEST.md +23 -0
- package/templates/starter/Management/STATUS.md +46 -0
- package/templates/starter/PROJECT.md +34 -0
- package/templates/starter/Reviews/INDEX.md +75 -0
- package/templates/starter/SESSION-LOG.md +29 -0
- package/templates/starter/SUMMARY.md +27 -0
- package/templates/starter/agentWorkflows/INDEX.md +61 -0
- package/templates/starter/intro/README.md +37 -0
- package/templates/full/docs/index.md +0 -46
package/README.md
CHANGED
|
@@ -1,87 +1,112 @@
|
|
|
1
1
|
# wwa
|
|
2
2
|
|
|
3
|
-
A file-structure-first methodology for AI-agent-assisted development. Files are the interface — no proprietary tools, no vendor lock-in. Works with Claude Code, Cursor, or any agent that reads markdown.
|
|
3
|
+
A file-structure-first methodology for AI-agent-assisted development. Files are the interface — no proprietary tools, no vendor lock-in. Works with Claude Code, Cursor, Gemini, Codex, or any agent that reads markdown.
|
|
4
4
|
|
|
5
5
|
`ai-agents` `prompt-engineering` `developer-tools` `context-engineering` `agent-framework` `mcp` `model-context-protocol` `cursor` `claude-code`
|
|
6
6
|
|
|
7
|
+
---
|
|
8
|
+
|
|
7
9
|
## Who This Is For
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
There is real stigma around AI-assisted development, and it's warranted. Most "vibe coding" produces work that no one fully understands — not the developer, not the agent, and certainly not the next person who reads the code.
|
|
12
|
+
|
|
13
|
+
This spec-drive development project takes a different position. Three active case studies are being run to examine how development agents reason, where they lose context, and what structures keep their output connected to human-readable, auditable decisions. The methodology tracks agent behavior session over session — what worked, what was revised, what the human had to correct — and feeds that data back into improving future collaboration.
|
|
14
|
+
|
|
15
|
+
If you want to build with an agent but also want full visibility into the work being done, the decisions being made, and a path to measurably improving your agent's effectiveness over time.
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
---
|
|
12
18
|
|
|
13
19
|
## Requirements
|
|
14
20
|
|
|
15
|
-
- **Node.js >= 18**
|
|
16
|
-
- **A supported AI runtime** — [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Cursor](https://cursor.sh), or any agent that reads markdown
|
|
21
|
+
- **Node.js >= 18** — [download](https://nodejs.org/)
|
|
22
|
+
- **A supported AI runtime** — [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Cursor](https://cursor.sh) / Composer, [Gemini](https://gemini.google.com), [Codex](https://openai.com/index/codex/), or any agent that reads markdown
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
17
27
|
|
|
18
|
-
|
|
28
|
+
### Quick start (recommended)
|
|
29
|
+
|
|
30
|
+
Install once, use everywhere:
|
|
19
31
|
|
|
20
32
|
```bash
|
|
21
|
-
|
|
33
|
+
npm install -g agent-method
|
|
34
|
+
wwa init
|
|
22
35
|
```
|
|
23
36
|
|
|
24
|
-
The installer
|
|
37
|
+
The installer walks you through everything:
|
|
25
38
|
|
|
26
39
|
1. **Project type** — Code, Data, Analytical, Mixed, or General
|
|
27
40
|
2. **Directory** — where to set up (default: current directory)
|
|
28
|
-
3. **Runtime** — Claude Code, Cursor, or
|
|
29
|
-
4. **Template tier** — Starter (
|
|
41
|
+
3. **Runtime** — Claude Code, Cursor, or Other/All (Gemini, Codex, Composer, etc.)
|
|
42
|
+
4. **Template tier** — Starter (17 files, most projects) or Full (30 files, complex projects)
|
|
30
43
|
5. **Integration profile** — Standard (Sonnet, recommended), Lite (Haiku), or Full (Opus)
|
|
31
44
|
|
|
32
45
|
Done. Open `PROJECT.md` and start working with your AI agent.
|
|
33
46
|
|
|
34
|
-
|
|
47
|
+
To update an existing project later:
|
|
35
48
|
|
|
36
49
|
```bash
|
|
37
|
-
|
|
50
|
+
wwa upgrade # adds new methodology sections, never overwrites
|
|
51
|
+
wwa status # check your current version
|
|
38
52
|
```
|
|
39
53
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
## Staying Updated
|
|
54
|
+
<details>
|
|
55
|
+
<summary><strong>Zero-install</strong> — no global install needed</summary>
|
|
43
56
|
|
|
44
57
|
```bash
|
|
45
|
-
npx
|
|
58
|
+
npx agent-method init
|
|
46
59
|
```
|
|
47
60
|
|
|
48
|
-
|
|
61
|
+
Runs directly via npx without installing anything. Useful for one-time setup or CI.
|
|
49
62
|
|
|
50
|
-
|
|
63
|
+
</details>
|
|
64
|
+
|
|
65
|
+
<details>
|
|
66
|
+
<summary><strong>Non-interactive install</strong> — CI, scripts, Docker</summary>
|
|
67
|
+
|
|
68
|
+
Specify everything on the command line (no prompts):
|
|
51
69
|
|
|
52
70
|
```bash
|
|
53
|
-
#
|
|
54
|
-
|
|
71
|
+
# Full options
|
|
72
|
+
wwa init code ~/my-project --runtime claude --tier starter --profile standard
|
|
55
73
|
|
|
56
|
-
# Just
|
|
57
|
-
|
|
74
|
+
# Just type and directory (defaults for the rest)
|
|
75
|
+
wwa init code ~/my-project
|
|
58
76
|
|
|
59
77
|
# Data project for Cursor
|
|
60
|
-
|
|
78
|
+
wwa init data ~/my-data --runtime cursor
|
|
61
79
|
|
|
62
80
|
# Analytical project with full methodology
|
|
63
|
-
|
|
81
|
+
wwa init context ~/my-analysis --tier full --profile full
|
|
64
82
|
```
|
|
65
83
|
|
|
66
|
-
|
|
84
|
+
**Options:**
|
|
67
85
|
|
|
68
|
-
|
|
86
|
+
| Flag | Values | Default |
|
|
87
|
+
|------|--------|---------|
|
|
88
|
+
| `--runtime` | `claude`, `cursor`, `all` | `all` |
|
|
89
|
+
| `--tier` | `starter`, `full` | `starter` |
|
|
90
|
+
| `--profile` | `lite`, `standard`, `full` | `standard` |
|
|
91
|
+
| `--onboarding` | `greenfield`, `brownfield`, `auto` | `auto` |
|
|
69
92
|
|
|
70
|
-
|
|
71
|
-
npm install -g wwa
|
|
72
|
-
```
|
|
93
|
+
</details>
|
|
73
94
|
|
|
74
|
-
|
|
95
|
+
<details>
|
|
96
|
+
<summary><strong>Python alternative</strong> — same commands, same templates</summary>
|
|
75
97
|
|
|
76
|
-
|
|
98
|
+
Requires Python >= 3.9:
|
|
77
99
|
|
|
78
100
|
```bash
|
|
79
|
-
pip install wwa-tools
|
|
101
|
+
pip install wwa-tools
|
|
80
102
|
```
|
|
81
103
|
|
|
82
|
-
|
|
104
|
+
The Python CLI is an independent implementation sharing the same registry and templates. It is **not** required for the Node.js CLI — pick whichever fits your environment.
|
|
105
|
+
|
|
106
|
+
</details>
|
|
83
107
|
|
|
84
|
-
|
|
108
|
+
<details>
|
|
109
|
+
<summary><strong>Development install</strong> — contributing or testing locally</summary>
|
|
85
110
|
|
|
86
111
|
```bash
|
|
87
112
|
git clone https://github.com/anthropics/wwa.git
|
|
@@ -98,42 +123,93 @@ bash setup.sh ~/my-project
|
|
|
98
123
|
|
|
99
124
|
Interactive — asks project name, type, runtime, tier, lifecycle, and profile.
|
|
100
125
|
|
|
126
|
+
</details>
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Verify
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
wwa check
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Validates your entry point, auto-detects project type, and reports any issues.
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## Staying Updated
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
wwa upgrade
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Brownfield-safe — appends new methodology sections without overwriting your customizations.
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
wwa status # check your current version
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
101
154
|
## Commands
|
|
102
155
|
|
|
103
156
|
| Command | What it does |
|
|
104
157
|
|---------|-------------|
|
|
105
|
-
| `wwa init` | Set up a new project (interactive) |
|
|
158
|
+
| `wwa init` | Set up a new project (interactive — copies templates, feature registry, creates doc-tokens) |
|
|
106
159
|
| `wwa check` | Validate your entry point |
|
|
107
160
|
| `wwa scan` | Detect project type from directory contents |
|
|
108
161
|
| `wwa route "<query>"` | Show how a query routes through the pipeline |
|
|
162
|
+
| `wwa plan` | Display current plan status from PLAN.md |
|
|
163
|
+
| `wwa implement` | Show implementation guidance for current step |
|
|
164
|
+
| `wwa review` | Display project review dashboard |
|
|
165
|
+
| `wwa digest` | Show management digest |
|
|
166
|
+
| `wwa close` | Session close checklist, project snapshot, updates .context/doc-tokens.yaml |
|
|
109
167
|
| `wwa refine` | Extract refinement report from SESSION-LOG.md |
|
|
168
|
+
| `wwa casestudy` | Extract case study with project tokens + methodology reference data |
|
|
169
|
+
| `wwa docs` | Show docs coverage report from .context/DOCS-MAP.md |
|
|
110
170
|
| `wwa status` | Check if your methodology version is current |
|
|
111
171
|
| `wwa upgrade` | Brownfield-safe methodology update |
|
|
172
|
+
| `wwa completion` | Generate shell tab-completion (bash/zsh/fish/PowerShell) |
|
|
112
173
|
| `wwa serve` | Start MCP server for IDE integration |
|
|
113
174
|
| `wwa watch` | Watch files, validate on save |
|
|
114
175
|
|
|
115
176
|
All commands support `--json` for machine-readable output.
|
|
116
177
|
|
|
117
|
-
|
|
178
|
+
<details>
|
|
179
|
+
<summary><strong>MCP Server</strong> — expose tools directly to your AI agent</summary>
|
|
118
180
|
|
|
119
|
-
|
|
181
|
+
Add to your IDE's MCP config (VS Code, Cursor, Claude Code, Cline):
|
|
120
182
|
|
|
121
183
|
```json
|
|
122
184
|
{
|
|
123
185
|
"mcpServers": {
|
|
124
186
|
"wwa": {
|
|
125
|
-
"command": "
|
|
126
|
-
"args": ["
|
|
187
|
+
"command": "wwa",
|
|
188
|
+
"args": ["serve"]
|
|
127
189
|
}
|
|
128
190
|
}
|
|
129
191
|
}
|
|
130
192
|
```
|
|
131
193
|
|
|
132
|
-
8 tools available
|
|
194
|
+
**8 tools available:**
|
|
195
|
+
|
|
196
|
+
| Tool | What it does |
|
|
197
|
+
|------|-------------|
|
|
198
|
+
| `route_query` | Classify a query and return read/write sets |
|
|
199
|
+
| `validate_entry_point` | Check entry point for issues |
|
|
200
|
+
| `detect_project` | Auto-detect project type from files |
|
|
201
|
+
| `resolve_cascade` | Show what files to update after a change |
|
|
202
|
+
| `check_capability` | Verify model meets task requirements |
|
|
203
|
+
| `lookup_feature` | Look up a methodology feature by ID |
|
|
204
|
+
| `list_workflows` | List available guided workflows |
|
|
205
|
+
| `refactor_markdown` | Analyze files over 300 lines, suggest splits |
|
|
206
|
+
|
|
207
|
+
See [MCP Integration Guide](docs/guides/mcp-integration.md) for full setup.
|
|
133
208
|
|
|
134
|
-
|
|
209
|
+
</details>
|
|
135
210
|
|
|
136
|
-
|
|
211
|
+
<details>
|
|
212
|
+
<summary><strong>Pipeline commands</strong> — debug individual pipeline stages</summary>
|
|
137
213
|
|
|
138
214
|
```bash
|
|
139
215
|
wwa pipeline classify "<query>" --project-type code
|
|
@@ -143,6 +219,12 @@ wwa pipeline cascade --trigger phase_completion
|
|
|
143
219
|
wwa pipeline test fixtures/
|
|
144
220
|
```
|
|
145
221
|
|
|
222
|
+
These are primarily for debugging and development. Most users won't need them.
|
|
223
|
+
|
|
224
|
+
</details>
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
146
228
|
## What You Get
|
|
147
229
|
|
|
148
230
|
```
|
|
@@ -153,20 +235,57 @@ your-project/
|
|
|
153
235
|
STATE.md # Decisions, blockers, current position
|
|
154
236
|
ROADMAP.md # Phase breakdown with gate criteria
|
|
155
237
|
PLAN.md # Current task with verification criteria
|
|
238
|
+
SUMMARY.md # Session audit trail
|
|
239
|
+
SESSION-LOG.md # Session metrics for case study data
|
|
156
240
|
.context/
|
|
157
241
|
BASE.md # Core context — always loaded with entry point
|
|
158
242
|
METHODOLOGY.md # Workflows, conventions overflow
|
|
243
|
+
feature-registry.yaml # Feature registry (populated from package)
|
|
244
|
+
doc-tokens.yaml # Project metrics (updated by wwa close)
|
|
245
|
+
Management/
|
|
246
|
+
DIGEST.md # High-effort task digest for managers
|
|
247
|
+
STATUS.md # Project health snapshot
|
|
248
|
+
Reviews/
|
|
249
|
+
INDEX.md # Project intelligence dashboard
|
|
250
|
+
agentWorkflows/
|
|
251
|
+
INDEX.md # Agent workflow performance overview
|
|
252
|
+
intro/
|
|
253
|
+
README.md # Methodology overview + link to full docs
|
|
159
254
|
```
|
|
160
255
|
|
|
161
|
-
|
|
256
|
+
<details>
|
|
257
|
+
<summary><strong>Full tier</strong> — adds these files for complex projects</summary>
|
|
162
258
|
|
|
163
|
-
|
|
259
|
+
```
|
|
260
|
+
REQUIREMENTS.md # Formal requirements with traceability
|
|
261
|
+
.context/
|
|
262
|
+
REGISTRY.md # Navigation registry for large projects
|
|
263
|
+
COMPOSITION.md # Specialist template for analytical projects
|
|
264
|
+
Reviews/
|
|
265
|
+
roadmap.md # Phase progress synthesis
|
|
266
|
+
plan.md # Plan execution history
|
|
267
|
+
project.md # Project scope evolution
|
|
268
|
+
requirements.md # Requirements traceability matrix
|
|
269
|
+
state.md # Decision trends and blocker analysis
|
|
270
|
+
backlog.md # Backlog health and aging
|
|
271
|
+
agentWorkflows/
|
|
272
|
+
sessions.md # Session analysis from SESSION-LOG.md
|
|
273
|
+
patterns.md # Extracted behavioral patterns
|
|
274
|
+
observations.md # Case study observations
|
|
275
|
+
todos/
|
|
276
|
+
backlog.md # Ideas and future work
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
</details>
|
|
280
|
+
|
|
281
|
+
Every file ships with **inline instructions** — the agent reads them and helps you populate each section. The agent also creates `.context/DOCS-MAP.md` during your first session to map project components to documentation files.
|
|
164
282
|
|
|
165
283
|
---
|
|
166
284
|
|
|
167
285
|
## About
|
|
168
286
|
|
|
169
|
-
|
|
287
|
+
<details>
|
|
288
|
+
<summary><strong>The problem</strong></summary>
|
|
170
289
|
|
|
171
290
|
AI-agent-assisted development breaks down in three ways:
|
|
172
291
|
|
|
@@ -176,7 +295,10 @@ AI-agent-assisted development breaks down in three ways:
|
|
|
176
295
|
|
|
177
296
|
Existing solutions tie you to specific agent runtimes through CLI tools and slash commands. wwa solves this with **files as the interface** — readable, portable, agent-agnostic.
|
|
178
297
|
|
|
179
|
-
|
|
298
|
+
</details>
|
|
299
|
+
|
|
300
|
+
<details>
|
|
301
|
+
<summary><strong>How it works</strong></summary>
|
|
180
302
|
|
|
181
303
|
**Scoping rules** — The entry point contains a table mapping query types to file sets. The agent loads only the relevant files and constrains its writes. Context windows stay small, responses stay focused.
|
|
182
304
|
|
|
@@ -186,17 +308,23 @@ Existing solutions tie you to specific agent runtimes through CLI tools and slas
|
|
|
186
308
|
|
|
187
309
|
**Cross-session memory** — `STATE.md` persists decisions, blockers, and current position across sessions. No re-explaining what happened yesterday.
|
|
188
310
|
|
|
189
|
-
|
|
311
|
+
</details>
|
|
312
|
+
|
|
313
|
+
<details>
|
|
314
|
+
<summary><strong>Integration profiles</strong></summary>
|
|
190
315
|
|
|
191
316
|
| Profile | Best for | What's included |
|
|
192
317
|
|---------|----------|-----------------|
|
|
193
|
-
| **Lite** | Haiku,
|
|
194
|
-
| **Standard** | Sonnet (recommended) | + PLAN.md, context pairing, 6 cascade rules |
|
|
195
|
-
| **Full** | Opus,
|
|
318
|
+
| **Lite** | Haiku, GPT-3.5, Gemini Flash | STATE.md, minimal rules, 2 cascade rules |
|
|
319
|
+
| **Standard** | Sonnet, GPT-4, Gemini Pro, Codex (recommended) | + PLAN.md, context pairing, 6 cascade rules |
|
|
320
|
+
| **Full** | Opus, o1, Gemini Ultra | All rules inline, all intelligence layer files |
|
|
196
321
|
|
|
197
322
|
Three rules followed consistently beat ten rules followed inconsistently.
|
|
198
323
|
|
|
199
|
-
|
|
324
|
+
</details>
|
|
325
|
+
|
|
326
|
+
<details>
|
|
327
|
+
<summary><strong>Project types</strong></summary>
|
|
200
328
|
|
|
201
329
|
| Type | CLI name | What's added |
|
|
202
330
|
|------|----------|-------------|
|
|
@@ -206,22 +334,32 @@ Three rules followed consistently beat ten rules followed inconsistently.
|
|
|
206
334
|
| **Mixed** | `mix` | Multiple extensions combined |
|
|
207
335
|
| **General** | `general` | Universal scoping and cascade rules only |
|
|
208
336
|
|
|
209
|
-
|
|
337
|
+
</details>
|
|
210
338
|
|
|
211
|
-
|
|
339
|
+
<details>
|
|
340
|
+
<summary><strong>Brownfield projects</strong> — works with existing codebases</summary>
|
|
212
341
|
|
|
213
342
|
- **Never overwrites** existing files
|
|
214
343
|
- **Appends** methodology sections to your existing entry point
|
|
215
344
|
- **Preserves** all your existing conventions and rules
|
|
216
345
|
- **Suggests** the Discovery workflow for systematic codebase understanding
|
|
217
346
|
|
|
218
|
-
|
|
347
|
+
</details>
|
|
348
|
+
|
|
349
|
+
<details>
|
|
350
|
+
<summary><strong>Supported runtimes</strong></summary>
|
|
219
351
|
|
|
220
352
|
| File | Runtime | Auto-loaded? |
|
|
221
353
|
|------|---------|:------------:|
|
|
222
354
|
| `CLAUDE.md` | Claude Code | Yes |
|
|
223
|
-
| `.cursorrules` | Cursor | Yes |
|
|
224
|
-
| `AGENT.md` |
|
|
355
|
+
| `.cursorrules` | Cursor / Cursor Composer | Yes |
|
|
356
|
+
| `AGENT.md` | Gemini, Codex, Cline, Aider, or any agent that reads markdown | No (paste or reference manually) |
|
|
357
|
+
|
|
358
|
+
The methodology is **agent-agnostic**. `AGENT.md` works with any AI assistant — copy its contents into your tool's system prompt or context window. The file format is standard markdown; no runtime-specific features are required.
|
|
359
|
+
|
|
360
|
+
</details>
|
|
361
|
+
|
|
362
|
+
---
|
|
225
363
|
|
|
226
364
|
## Documentation
|
|
227
365
|
|
|
@@ -229,12 +367,14 @@ Works with existing codebases:
|
|
|
229
367
|
|----------|----------|
|
|
230
368
|
| [Quick start guide](docs/guides/quick-start.md) | Setup and first session |
|
|
231
369
|
| [For developers](docs/guides/for-developers.md) | Workflows, context, troubleshooting |
|
|
370
|
+
| [CLI tools reference](docs/guides/for-developers/cli-tools.md) | All 22 commands with examples |
|
|
371
|
+
| [Command reference](docs/guides/for-developers/command-reference.md) | Tabular quick-lookup by project type |
|
|
232
372
|
| [MCP Integration](docs/guides/mcp-integration.md) | IDE integration (VS Code, Cursor, Claude Code, Cline) |
|
|
233
373
|
| [For managers](docs/guides/for-managers.md) | Reading project status from methodology files |
|
|
234
374
|
| [Template kit](templates/README.md) | Template tiers, extensions, bootstrapping |
|
|
235
375
|
| [Docs hub](docs/index.md) | Full architecture, workflow, and methodology docs |
|
|
236
376
|
|
|
237
|
-
## Prior
|
|
377
|
+
## Prior Art
|
|
238
378
|
|
|
239
379
|
| System | Relationship |
|
|
240
380
|
|--------|-------------|
|
package/bin/wwa.js
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Thin entry point: each command is registered from lib/cli/*.js modules.
|
|
7
7
|
*
|
|
8
8
|
* Three-tier command structure:
|
|
9
|
-
* Tier 1 (developer): check, scan, route, refine, status, upgrade, init
|
|
9
|
+
* Tier 1 (developer): check, scan, route, refine, status, upgrade, init,
|
|
10
|
+
* plan, implement, review, digest, close
|
|
10
11
|
* Tier 2 (pipeline): wwa pipeline classify/select/resolve/cascade/test
|
|
11
12
|
* Tier 3 (server): serve (MCP server), watch (file watcher)
|
|
12
13
|
*/
|
|
@@ -21,9 +22,17 @@ import { register as refine } from "../lib/cli/refine.js";
|
|
|
21
22
|
import { register as status } from "../lib/cli/status.js";
|
|
22
23
|
import { register as upgrade } from "../lib/cli/upgrade.js";
|
|
23
24
|
import { register as init } from "../lib/cli/init.js";
|
|
25
|
+
import { register as planCmd } from "../lib/cli/plan.js";
|
|
26
|
+
import { register as implementCmd } from "../lib/cli/implement.js";
|
|
27
|
+
import { register as reviewCmd } from "../lib/cli/review.js";
|
|
28
|
+
import { register as digestCmd } from "../lib/cli/digest.js";
|
|
29
|
+
import { register as closeCmd } from "../lib/cli/close.js";
|
|
24
30
|
import { register as pipeline } from "../lib/cli/pipeline.js";
|
|
25
31
|
import { register as serve } from "../lib/cli/serve.js";
|
|
26
32
|
import { register as watchCmd } from "../lib/cli/watch.js";
|
|
33
|
+
import { register as completionCmd } from "../lib/cli/completion.js";
|
|
34
|
+
import { register as casestudyCmd } from "../lib/cli/casestudy.js";
|
|
35
|
+
import { register as docsCmd } from "../lib/cli/docs.js";
|
|
27
36
|
|
|
28
37
|
const program = new Command();
|
|
29
38
|
|
|
@@ -32,13 +41,20 @@ program
|
|
|
32
41
|
.description(
|
|
33
42
|
"Methodology tools for AI-agent-assisted development.\n\n" +
|
|
34
43
|
"Developer commands:\n" +
|
|
35
|
-
" check
|
|
36
|
-
" scan
|
|
37
|
-
" route
|
|
38
|
-
" refine
|
|
39
|
-
" status
|
|
40
|
-
" upgrade
|
|
41
|
-
" init
|
|
44
|
+
" check Validate your entry point and project setup\n" +
|
|
45
|
+
" scan Detect project type from directory contents\n" +
|
|
46
|
+
" route Show how a query routes through the pipeline\n" +
|
|
47
|
+
" refine Extract a refinement report from session history\n" +
|
|
48
|
+
" status Check if your methodology version is current\n" +
|
|
49
|
+
" upgrade Update your project to the latest methodology\n" +
|
|
50
|
+
" init Set up a new project with methodology templates\n" +
|
|
51
|
+
" plan Display current plan status from PLAN.md\n" +
|
|
52
|
+
" implement Show implementation guidance for current step\n" +
|
|
53
|
+
" review Display project review dashboard\n" +
|
|
54
|
+
" digest Show management digest\n" +
|
|
55
|
+
" close Session close checklist and cascade reminders\n" +
|
|
56
|
+
" casestudy Extract structured case study from project files\n" +
|
|
57
|
+
" docs Show docs coverage report from DOCS-MAP.md\n\n" +
|
|
42
58
|
"Pipeline commands (advanced):\n" +
|
|
43
59
|
" pipeline classify Classify a query against registry patterns\n" +
|
|
44
60
|
" pipeline select Select workflow for a query type\n" +
|
|
@@ -47,7 +63,9 @@ program
|
|
|
47
63
|
" pipeline test Run YAML test fixtures\n\n" +
|
|
48
64
|
"Server commands:\n" +
|
|
49
65
|
" serve Start MCP server on stdio transport\n" +
|
|
50
|
-
" watch Watch files and validate on change"
|
|
66
|
+
" watch Watch files and validate on change\n\n" +
|
|
67
|
+
"Shell completion:\n" +
|
|
68
|
+
" completion Generate tab-completion for bash/zsh/fish/powershell"
|
|
51
69
|
)
|
|
52
70
|
.version(pkg.version, "-V, --version");
|
|
53
71
|
|
|
@@ -59,8 +77,16 @@ refine(program);
|
|
|
59
77
|
status(program);
|
|
60
78
|
upgrade(program);
|
|
61
79
|
init(program);
|
|
80
|
+
planCmd(program);
|
|
81
|
+
implementCmd(program);
|
|
82
|
+
reviewCmd(program);
|
|
83
|
+
digestCmd(program);
|
|
84
|
+
closeCmd(program);
|
|
62
85
|
pipeline(program);
|
|
63
86
|
serve(program);
|
|
64
87
|
watchCmd(program);
|
|
88
|
+
completionCmd(program);
|
|
89
|
+
casestudyCmd(program);
|
|
90
|
+
docsCmd(program);
|
|
65
91
|
|
|
66
92
|
program.parse();
|