agent-method 1.5.12
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 +343 -0
- package/bin/wwa.js +115 -0
- package/docs/internal/cli-commands.yaml +259 -0
- package/docs/internal/doc-tokens.yaml +1103 -0
- package/docs/internal/feature-registry.yaml +1643 -0
- package/lib/boundaries.js +247 -0
- package/lib/cli/add.js +170 -0
- package/lib/cli/casestudy.js +1000 -0
- package/lib/cli/check.js +323 -0
- package/lib/cli/close.js +838 -0
- package/lib/cli/completion.js +735 -0
- package/lib/cli/deps.js +234 -0
- package/lib/cli/digest.js +73 -0
- package/lib/cli/doc-review.js +486 -0
- package/lib/cli/docs.js +315 -0
- package/lib/cli/helpers.js +198 -0
- package/lib/cli/implement.js +169 -0
- package/lib/cli/init.js +280 -0
- package/lib/cli/pipeline.js +206 -0
- package/lib/cli/plan.js +140 -0
- package/lib/cli/record.js +98 -0
- package/lib/cli/refine.js +202 -0
- package/lib/cli/report-helpers.js +113 -0
- package/lib/cli/review.js +76 -0
- package/lib/cli/routable.js +109 -0
- package/lib/cli/route.js +101 -0
- package/lib/cli/scan.js +133 -0
- package/lib/cli/serve.js +23 -0
- package/lib/cli/status.js +65 -0
- package/lib/cli/update-docs.js +574 -0
- package/lib/cli/upgrade.js +222 -0
- package/lib/cli/watch.js +32 -0
- package/lib/dependencies.js +196 -0
- package/lib/init.js +692 -0
- package/lib/mcp-server.js +612 -0
- package/lib/pipeline.js +907 -0
- package/lib/registry.js +132 -0
- package/lib/watcher.js +165 -0
- package/package.json +54 -0
- package/templates/README.md +363 -0
- package/templates/entry-points/.cursorrules +90 -0
- package/templates/entry-points/AGENT.md +90 -0
- package/templates/entry-points/CLAUDE.md +88 -0
- package/templates/extensions/MANIFEST.md +110 -0
- package/templates/extensions/analytical-system.md +96 -0
- package/templates/extensions/code-project.md +77 -0
- package/templates/extensions/data-exploration.md +117 -0
- package/templates/full/.context/BASE.md +101 -0
- package/templates/full/.context/COMPOSITION.md +47 -0
- package/templates/full/.context/INDEX.yaml +56 -0
- package/templates/full/.context/METHODOLOGY.md +246 -0
- package/templates/full/.context/PROTOCOL.yaml +169 -0
- package/templates/full/.context/REGISTRY.md +75 -0
- package/templates/full/.cursorrules +90 -0
- package/templates/full/AGENT.md +90 -0
- package/templates/full/CLAUDE.md +90 -0
- package/templates/full/Management/DIGEST.md +23 -0
- package/templates/full/Management/STATUS.md +46 -0
- package/templates/full/PLAN.md +67 -0
- package/templates/full/PROJECT-PROFILE.md +61 -0
- package/templates/full/PROJECT.md +80 -0
- package/templates/full/REQUIREMENTS.md +30 -0
- package/templates/full/ROADMAP.md +39 -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 +102 -0
- package/templates/full/STATE.md +42 -0
- package/templates/full/SUMMARY.md +27 -0
- 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/full/registry/feature-registry.yaml +25 -0
- package/templates/full/registry/features/catalog.yaml +743 -0
- package/templates/full/registry/features/protocol.yaml +121 -0
- package/templates/full/registry/features/routing.yaml +358 -0
- package/templates/full/registry/features/workflows.yaml +404 -0
- package/templates/full/todos/backlog.md +19 -0
- package/templates/starter/.context/BASE.md +66 -0
- package/templates/starter/.context/INDEX.yaml +51 -0
- package/templates/starter/.context/METHODOLOGY.md +228 -0
- package/templates/starter/.context/PROTOCOL.yaml +165 -0
- package/templates/starter/.cursorrules +90 -0
- package/templates/starter/AGENT.md +90 -0
- package/templates/starter/CLAUDE.md +90 -0
- package/templates/starter/Management/DIGEST.md +23 -0
- package/templates/starter/Management/STATUS.md +46 -0
- package/templates/starter/PLAN.md +67 -0
- package/templates/starter/PROJECT-PROFILE.md +44 -0
- package/templates/starter/PROJECT.md +80 -0
- package/templates/starter/ROADMAP.md +39 -0
- package/templates/starter/Reviews/INDEX.md +75 -0
- package/templates/starter/SESSION-LOG.md +102 -0
- package/templates/starter/STATE.md +42 -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/starter/registry/feature-registry.yaml +25 -0
- package/templates/starter/registry/features/catalog.yaml +743 -0
- package/templates/starter/registry/features/protocol.yaml +121 -0
- package/templates/starter/registry/features/routing.yaml +358 -0
- package/templates/starter/registry/features/workflows.yaml +404 -0
package/README.md
ADDED
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
# wwa
|
|
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, Gemini, Codex, or any agent that reads markdown.
|
|
4
|
+
|
|
5
|
+
`ai-agents` `prompt-engineering` `developer-tools` `context-engineering` `agent-framework` `mcp` `model-context-protocol` `cursor` `claude-code`
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Who This Is For
|
|
10
|
+
|
|
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 project takes a different position: it treats files and documentation as the primary interface between you and your agent, so work stays understandable, auditable, and easy to review.
|
|
14
|
+
|
|
15
|
+
If you want to build with an agent but also want clear visibility into the work being done and the decisions being made, this methodology is designed for you.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Requirements
|
|
20
|
+
|
|
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
|
|
27
|
+
|
|
28
|
+
### Quick start (recommended)
|
|
29
|
+
|
|
30
|
+
Install once, use everywhere:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm install -g agent-method
|
|
34
|
+
wwa init
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The installer walks you through everything:
|
|
38
|
+
|
|
39
|
+
1. **Project type** — Code, Data, Analytical, Mixed, or General
|
|
40
|
+
2. **Directory** — where to set up (default: current directory)
|
|
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)
|
|
43
|
+
5. **Integration profile** — Standard (Sonnet, recommended), Lite (Haiku), or Full (Opus)
|
|
44
|
+
|
|
45
|
+
Done. Open `PROJECT.md` and start working with your AI agent.
|
|
46
|
+
|
|
47
|
+
To update an existing project later:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
wwa upgrade # adds new methodology sections, never overwrites
|
|
51
|
+
wwa status # check your current version
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
<details>
|
|
55
|
+
<summary><strong>Zero-install</strong> — no global install needed</summary>
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npx agent-method init
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Runs directly via npx without installing anything. Useful for one-time setup or CI.
|
|
62
|
+
|
|
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):
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# Full options
|
|
72
|
+
wwa init code ~/my-project --runtime claude --tier starter --profile standard
|
|
73
|
+
|
|
74
|
+
# Just type and directory (defaults for the rest)
|
|
75
|
+
wwa init code ~/my-project
|
|
76
|
+
|
|
77
|
+
# Data project for Cursor
|
|
78
|
+
wwa init data ~/my-data --runtime cursor
|
|
79
|
+
|
|
80
|
+
# Analytical project with full methodology
|
|
81
|
+
wwa init context ~/my-analysis --tier full --profile full
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**Options:**
|
|
85
|
+
|
|
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` — when set to `brownfield`, `wwa init` always runs the brownfield onboarding questionnaire (even if other flags are provided) unless `--auto-configure` is also set |
|
|
92
|
+
|
|
93
|
+
</details>
|
|
94
|
+
|
|
95
|
+
<details>
|
|
96
|
+
<summary><strong>Python alternative</strong> — same commands, same templates</summary>
|
|
97
|
+
|
|
98
|
+
Requires Python >= 3.9:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
pip install wwa-tools
|
|
102
|
+
```
|
|
103
|
+
|
|
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>
|
|
107
|
+
|
|
108
|
+
<details>
|
|
109
|
+
<summary><strong>Development install</strong> — contributing or testing locally</summary>
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
git clone https://github.com/anthropics/wwa.git
|
|
113
|
+
cd wwa
|
|
114
|
+
npm link
|
|
115
|
+
wwa init code ./test-project --runtime claude
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Or use the bash setup script directly:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
bash setup.sh ~/my-project
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Interactive — asks project name, type, runtime, tier, lifecycle, and profile.
|
|
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
|
+
|
|
154
|
+
## Commands
|
|
155
|
+
|
|
156
|
+
| Command | What it does |
|
|
157
|
+
|---------|-------------|
|
|
158
|
+
| `wwa init` | Set up a new project (interactive — copies templates, feature registry, creates doc-tokens) |
|
|
159
|
+
| `wwa check` | Validate your entry point |
|
|
160
|
+
| `wwa scan` | Detect project type from directory contents and show a high-level methodology overview (doc structure, key files, dependency summary) |
|
|
161
|
+
| `wwa project-discovery` / `wwa context-refresh` / `wwa plan-create` | Show how common workflows route 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 registry/doc-tokens.yaml |
|
|
167
|
+
| `wwa refine` | Extract refinement report from SESSION-LOG.md |
|
|
168
|
+
| `wwa casestudy` | Extract case study with project tokens + methodology reference data (aligned with SESSION-LOG fields) |
|
|
169
|
+
| `wwa record` | Append the last CLI run’s human-readable summary to SESSION-LOG.md |
|
|
170
|
+
| `wwa docs` | Show docs coverage report from .context/DOCS-MAP.md |
|
|
171
|
+
| `wwa status` | Check if your methodology version is current |
|
|
172
|
+
| `wwa upgrade` | Brownfield-safe methodology update |
|
|
173
|
+
| `wwa completion` | Generate shell tab-completion (bash/zsh/fish/PowerShell) |
|
|
174
|
+
| `wwa serve` | Start MCP server for IDE integration |
|
|
175
|
+
| `wwa watch` | Watch files, validate on save |
|
|
176
|
+
|
|
177
|
+
All commands support `--json` for machine-readable output. When you run read-only developer commands without `--json` (for example `wwa scan`, `wwa plan`), the CLI prints a short **Input** block (command + main argument) and a concise **Summary** before the detailed sections so chat/terminal output is easier to read. You can then use `wwa record` to capture the latest run’s summary in `SESSION-LOG.md`.
|
|
178
|
+
|
|
179
|
+
<details>
|
|
180
|
+
<summary><strong>MCP Server</strong> — expose tools directly to your AI agent</summary>
|
|
181
|
+
|
|
182
|
+
The `wwa serve` command runs an MCP server that IDEs and agents can call to get routing and docs advice without touching your files directly. For full setup instructions and a complete list of tools, see the [MCP Integration Guide](docs/public/guides/mcp-integration.md).
|
|
183
|
+
|
|
184
|
+
</details>
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## What You Get
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
your-project/
|
|
192
|
+
CLAUDE.md / .cursorrules / AGENT.md # Agent entry point (pick one)
|
|
193
|
+
PROJECT.md # Project vision — fill this in first
|
|
194
|
+
PROJECT-PROFILE.md # Project type, lifecycle stage, extensions
|
|
195
|
+
STATE.md # Decisions, blockers, current position
|
|
196
|
+
ROADMAP.md # Phase breakdown with gate criteria
|
|
197
|
+
PLAN.md # Current task with verification criteria
|
|
198
|
+
SUMMARY.md # Session audit trail
|
|
199
|
+
SESSION-LOG.md # Session metrics for case study data
|
|
200
|
+
.context/
|
|
201
|
+
BASE.md # Core context — always loaded with entry point
|
|
202
|
+
METHODOLOGY.md # Workflows, conventions overflow
|
|
203
|
+
feature-registry.yaml # Feature registry (populated from package)
|
|
204
|
+
doc-tokens.yaml # Project metrics (updated by wwa close)
|
|
205
|
+
Management/
|
|
206
|
+
DIGEST.md # High-effort task digest for managers
|
|
207
|
+
STATUS.md # Project health snapshot
|
|
208
|
+
Reviews/
|
|
209
|
+
INDEX.md # Project intelligence dashboard
|
|
210
|
+
agentWorkflows/
|
|
211
|
+
INDEX.md # Agent workflow performance overview
|
|
212
|
+
intro/
|
|
213
|
+
README.md # Methodology overview + link to full docs
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
<details>
|
|
217
|
+
<summary><strong>Full tier</strong> — adds these files for complex projects</summary>
|
|
218
|
+
|
|
219
|
+
```
|
|
220
|
+
REQUIREMENTS.md # Formal requirements with traceability
|
|
221
|
+
.context/
|
|
222
|
+
REGISTRY.md # Navigation registry for large projects
|
|
223
|
+
COMPOSITION.md # Specialist template for analytical projects
|
|
224
|
+
Reviews/
|
|
225
|
+
roadmap.md # Phase progress synthesis
|
|
226
|
+
plan.md # Plan execution history
|
|
227
|
+
project.md # Project scope evolution
|
|
228
|
+
requirements.md # Requirements traceability matrix
|
|
229
|
+
state.md # Decision trends and blocker analysis
|
|
230
|
+
backlog.md # Backlog health and aging
|
|
231
|
+
agentWorkflows/
|
|
232
|
+
sessions.md # Session analysis from SESSION-LOG.md
|
|
233
|
+
patterns.md # Extracted behavioral patterns
|
|
234
|
+
observations.md # Case study observations
|
|
235
|
+
todos/
|
|
236
|
+
backlog.md # Ideas and future work
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
</details>
|
|
240
|
+
|
|
241
|
+
Every file ships with **inline instructions** — the agent reads them and helps you populate each section.
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## About
|
|
246
|
+
|
|
247
|
+
<details>
|
|
248
|
+
<summary><strong>The problem</strong></summary>
|
|
249
|
+
|
|
250
|
+
AI-agent-assisted development breaks down in three ways:
|
|
251
|
+
|
|
252
|
+
- **Context rot** — agent quality degrades as context windows fill with irrelevant conversation
|
|
253
|
+
- **Amnesia** — decisions from session N are lost by session N+1
|
|
254
|
+
- **Scope drift** — without structured gates, work sprawls and progress becomes invisible
|
|
255
|
+
|
|
256
|
+
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.
|
|
257
|
+
|
|
258
|
+
</details>
|
|
259
|
+
|
|
260
|
+
<details>
|
|
261
|
+
<summary><strong>How it works</strong></summary>
|
|
262
|
+
|
|
263
|
+
**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.
|
|
264
|
+
|
|
265
|
+
**Dependency cascade** — "When X changes, also update Y." The agent checks this table after every file change, preventing files from drifting out of sync.
|
|
266
|
+
|
|
267
|
+
**Context pairing** — Instead of loading all context at once, the agent pairs `.context/BASE.md` with one specialist file per query type. Token usage stays low, relevance stays high.
|
|
268
|
+
|
|
269
|
+
**Cross-session memory** — `STATE.md` persists decisions, blockers, and current position across sessions. No re-explaining what happened yesterday.
|
|
270
|
+
|
|
271
|
+
</details>
|
|
272
|
+
|
|
273
|
+
<details>
|
|
274
|
+
<summary><strong>Integration profiles</strong></summary>
|
|
275
|
+
|
|
276
|
+
| Profile | Best for | What's included |
|
|
277
|
+
|---------|----------|-----------------|
|
|
278
|
+
| **Lite** | Haiku, GPT-3.5, Gemini Flash | STATE.md, minimal rules, 2 cascade rules |
|
|
279
|
+
| **Standard** | Sonnet, GPT-4, Gemini Pro, Codex (recommended) | + PLAN.md, context pairing, 6 cascade rules |
|
|
280
|
+
| **Full** | Opus, o1, Gemini Ultra | All rules inline, all intelligence layer files |
|
|
281
|
+
|
|
282
|
+
Three rules followed consistently beat ten rules followed inconsistently.
|
|
283
|
+
|
|
284
|
+
</details>
|
|
285
|
+
|
|
286
|
+
<details>
|
|
287
|
+
<summary><strong>Project types</strong></summary>
|
|
288
|
+
|
|
289
|
+
| Type | CLI name | What's added |
|
|
290
|
+
|------|----------|-------------|
|
|
291
|
+
| **Code** | `code` | Code change, bug fix, dependency, database, API, deployment |
|
|
292
|
+
| **Data** | `data` | Data ingest, schema, document, entity, relationship, analytics |
|
|
293
|
+
| **Analytical** | `context` | Chain work, evaluation, composition, domain research |
|
|
294
|
+
| **Mixed** | `mix` | Multiple extensions combined |
|
|
295
|
+
| **General** | `general` | Universal scoping and cascade rules only |
|
|
296
|
+
|
|
297
|
+
</details>
|
|
298
|
+
|
|
299
|
+
<details>
|
|
300
|
+
<summary><strong>Brownfield projects</strong> — works with existing codebases</summary>
|
|
301
|
+
|
|
302
|
+
- **Never overwrites** existing files
|
|
303
|
+
- **Appends** methodology sections to your existing entry point
|
|
304
|
+
- **Preserves** all your existing conventions and rules
|
|
305
|
+
- **Suggests** the Discovery workflow for systematic codebase understanding
|
|
306
|
+
|
|
307
|
+
</details>
|
|
308
|
+
|
|
309
|
+
<details>
|
|
310
|
+
<summary><strong>Supported runtimes</strong></summary>
|
|
311
|
+
|
|
312
|
+
| File | Runtime | Auto-loaded? |
|
|
313
|
+
|------|---------|:------------:|
|
|
314
|
+
| `CLAUDE.md` | Claude Code | Yes |
|
|
315
|
+
| `.cursorrules` | Cursor / Cursor Composer | Yes |
|
|
316
|
+
| `AGENT.md` | Gemini, Codex, Cline, Aider, or any agent that reads markdown | No (paste or reference manually) |
|
|
317
|
+
|
|
318
|
+
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.
|
|
319
|
+
|
|
320
|
+
</details>
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## Documentation
|
|
325
|
+
|
|
326
|
+
| Document | Audience |
|
|
327
|
+
|----------|----------|
|
|
328
|
+
| [Quick start guide](docs/public/guides/quick-start.md) | Setup and first session |
|
|
329
|
+
| [For developers](docs/public/guides/for-developers.md) | Workflows, context, troubleshooting |
|
|
330
|
+
| [CLI tools reference](docs/public/guides/for-developers/cli-tools.md) | All 22 commands with examples |
|
|
331
|
+
| [Command reference](docs/public/guides/for-developers/command-reference.md) | Tabular quick-lookup by project type |
|
|
332
|
+
| [MCP Integration](docs/public/guides/mcp-integration.md) | IDE integration (VS Code, Cursor, Claude Code, Cline) |
|
|
333
|
+
| [For managers](docs/public/guides/for-managers.md) | Reading project status from methodology files |
|
|
334
|
+
| [Template kit](templates/README.md) | Template tiers, extensions, bootstrapping |
|
|
335
|
+
| [Docs hub](docs/public/index.md) | Full public documentation hub (guides and pointers into internal specs) |
|
|
336
|
+
|
|
337
|
+
## Prior Art
|
|
338
|
+
|
|
339
|
+
| System | Relationship |
|
|
340
|
+
|--------|-------------|
|
|
341
|
+
| [GSD](https://github.com/gsd-build/get-shit-done) | Inspired the structured agent workflow. wwa adds scoping rules, context pairing, and file-structure-first approach |
|
|
342
|
+
| PromptStudy | Reference implementation. Patterns extracted from real agent-human collaboration |
|
|
343
|
+
|
package/bin/wwa.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* wwa CLI — methodology tools for AI-agent-assisted development.
|
|
5
|
+
*
|
|
6
|
+
* Thin entry point: each command is registered from lib/cli/*.js modules.
|
|
7
|
+
*
|
|
8
|
+
* Three-tier command structure:
|
|
9
|
+
* Tier 1 (developer): check, scan, refine, status, upgrade, init,
|
|
10
|
+
* plan, implement, review, digest, close
|
|
11
|
+
* Tier 2 (pipeline): wwa pipeline classify/select/resolve/cascade/test
|
|
12
|
+
* Tier 3 (server): serve (MCP server), watch (file watcher)
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { Command } from "commander";
|
|
16
|
+
import { pkg } from "../lib/cli/helpers.js";
|
|
17
|
+
|
|
18
|
+
import { register as check } from "../lib/cli/check.js";
|
|
19
|
+
import { register as scan } from "../lib/cli/scan.js";
|
|
20
|
+
import { register as refine } from "../lib/cli/refine.js";
|
|
21
|
+
import { register as status } from "../lib/cli/status.js";
|
|
22
|
+
import { register as upgrade } from "../lib/cli/upgrade.js";
|
|
23
|
+
import { register as init } from "../lib/cli/init.js";
|
|
24
|
+
import { register as planCmd } from "../lib/cli/plan.js";
|
|
25
|
+
import { register as implementCmd } from "../lib/cli/implement.js";
|
|
26
|
+
import { register as reviewCmd } from "../lib/cli/review.js";
|
|
27
|
+
import { register as digestCmd } from "../lib/cli/digest.js";
|
|
28
|
+
import { register as closeCmd } from "../lib/cli/close.js";
|
|
29
|
+
import { register as pipeline } from "../lib/cli/pipeline.js";
|
|
30
|
+
import { register as serve } from "../lib/cli/serve.js";
|
|
31
|
+
import { register as watchCmd } from "../lib/cli/watch.js";
|
|
32
|
+
import { register as completionCmd } from "../lib/cli/completion.js";
|
|
33
|
+
import { register as casestudyCmd } from "../lib/cli/casestudy.js";
|
|
34
|
+
import { register as docsCmd } from "../lib/cli/docs.js";
|
|
35
|
+
import { register as docReviewCmd } from "../lib/cli/doc-review.js";
|
|
36
|
+
import { register as depsCmd } from "../lib/cli/deps.js";
|
|
37
|
+
import { register as updateDocsCmd } from "../lib/cli/update-docs.js";
|
|
38
|
+
import { register as routable } from "../lib/cli/routable.js";
|
|
39
|
+
import { register as addCmd } from "../lib/cli/add.js";
|
|
40
|
+
import { register as recordCmd } from "../lib/cli/record.js";
|
|
41
|
+
|
|
42
|
+
const program = new Command();
|
|
43
|
+
|
|
44
|
+
program
|
|
45
|
+
.name("wwa")
|
|
46
|
+
.description(
|
|
47
|
+
"Methodology tools for AI-agent-assisted development.\n\n" +
|
|
48
|
+
"Developer commands:\n" +
|
|
49
|
+
" check Validate your entry point and project setup\n" +
|
|
50
|
+
" scan Detect project type from directory contents\n" +
|
|
51
|
+
" refine Extract a refinement report from session history\n" +
|
|
52
|
+
" status Check if your methodology version is current\n" +
|
|
53
|
+
" upgrade Update your project to the latest methodology\n" +
|
|
54
|
+
" init Set up a new project with methodology templates\n" +
|
|
55
|
+
" plan Display current plan status from PLAN.md\n" +
|
|
56
|
+
" implement Show implementation guidance for current step\n" +
|
|
57
|
+
" review Display project review dashboard\n" +
|
|
58
|
+
" digest Show management digest\n" +
|
|
59
|
+
" close Session close checklist and cascade reminders\n" +
|
|
60
|
+
" casestudy Extract structured case study from project files\n" +
|
|
61
|
+
" docs Show docs coverage report from DOCS-MAP.md\n" +
|
|
62
|
+
" doc-review Generate docs/internal/ document registry\n" +
|
|
63
|
+
" deps Show document dependency graph\n" +
|
|
64
|
+
" update-docs Build/query term-to-file index for docs updates\n" +
|
|
65
|
+
" project-discovery Run project discovery workflow (routable)\n" +
|
|
66
|
+
" context-refresh Run context refresh workflow (routable)\n" +
|
|
67
|
+
" phase-complete Run phase completion workflow (routable)\n" +
|
|
68
|
+
" backlog Show routing for backlog (routable)\n" +
|
|
69
|
+
" plan-create Run planning workflow (routable)\n" +
|
|
70
|
+
" dependency-analysis Run dependency analysis workflow (routable)\n" +
|
|
71
|
+
" debt-assessment Run debt assessment workflow (routable)\n" +
|
|
72
|
+
" docs-update Run docs update workflow (routable)\n" +
|
|
73
|
+
" cross-reference Run cross-reference workflow (routable)\n" +
|
|
74
|
+
" add Append to backlog, decision, finding, session, summary\n" +
|
|
75
|
+
" record Record last CLI run summary to SESSION-LOG.md\n\n" +
|
|
76
|
+
"Pipeline commands (advanced):\n" +
|
|
77
|
+
" pipeline classify Classify a query against registry patterns\n" +
|
|
78
|
+
" pipeline select Select workflow for a query type\n" +
|
|
79
|
+
" pipeline resolve Resolve features for a workflow stage\n" +
|
|
80
|
+
" pipeline cascade Compute cascade chain from a trigger\n" +
|
|
81
|
+
" pipeline test Run YAML test fixtures\n\n" +
|
|
82
|
+
"Server commands:\n" +
|
|
83
|
+
" serve Start MCP server on stdio transport\n" +
|
|
84
|
+
" watch Watch files and validate on change\n\n" +
|
|
85
|
+
"Shell completion:\n" +
|
|
86
|
+
" completion Generate tab-completion for bash/zsh/fish/powershell"
|
|
87
|
+
)
|
|
88
|
+
.version(pkg.version, "-V, --version");
|
|
89
|
+
|
|
90
|
+
// Register all commands
|
|
91
|
+
check(program);
|
|
92
|
+
scan(program);
|
|
93
|
+
refine(program);
|
|
94
|
+
status(program);
|
|
95
|
+
upgrade(program);
|
|
96
|
+
init(program);
|
|
97
|
+
planCmd(program);
|
|
98
|
+
implementCmd(program);
|
|
99
|
+
reviewCmd(program);
|
|
100
|
+
digestCmd(program);
|
|
101
|
+
closeCmd(program);
|
|
102
|
+
pipeline(program);
|
|
103
|
+
serve(program);
|
|
104
|
+
watchCmd(program);
|
|
105
|
+
completionCmd(program);
|
|
106
|
+
casestudyCmd(program);
|
|
107
|
+
docsCmd(program);
|
|
108
|
+
docReviewCmd(program);
|
|
109
|
+
depsCmd(program);
|
|
110
|
+
updateDocsCmd(program);
|
|
111
|
+
routable(program);
|
|
112
|
+
addCmd(program);
|
|
113
|
+
recordCmd(program);
|
|
114
|
+
|
|
115
|
+
program.parse();
|