specweave 1.0.212 → 1.0.213

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/CLAUDE.md CHANGED
@@ -1,4 +1,4 @@
1
- <!-- SW:META template="claude" version="1.0.211" sections="header,start,autodetect,metarule,rules,workflow,reflect,context,structure,taskformat,secrets,syncing,testing,tdd,api,limits,troubleshooting,lazyloading,principles,linking,mcp,auto,docs" -->
1
+ <!-- SW:META template="claude" version="1.0.212" sections="header,start,autodetect,metarule,rules,workflow,reflect,context,structure,taskformat,secrets,syncing,testing,tdd,api,limits,troubleshooting,lazyloading,principles,linking,mcp,auto,docs" -->
2
2
 
3
3
  <!-- SW:SECTION:hook-priority version="1.0.171" -->
4
4
  ## ⛔ Hook Instructions Override Everything
@@ -13,7 +13,7 @@
13
13
  **SKILL FIRST ≠ only one skill.** Chain: hook skill → `sw-frontend:*` / `sw-backend:*` / etc → implement.
14
14
  <!-- SW:END:hook-priority -->
15
15
 
16
- <!-- SW:SECTION:header version="1.0.211" -->
16
+ <!-- SW:SECTION:header version="1.0.212" -->
17
17
  **Framework**: SpecWeave | **Truth**: `spec.md` + `tasks.md`
18
18
  <!-- SW:END:header -->
19
19
 
@@ -123,7 +123,7 @@ claude plugin install sw@specweave --scope project # Team-shared
123
123
 
124
124
  SpecWeave auto-installs: LSP → project scope, sw-* → user scope.
125
125
 
126
- <!-- SW:SECTION:start version="1.0.211" -->
126
+ <!-- SW:SECTION:start version="1.0.212" -->
127
127
  ## Getting Started
128
128
 
129
129
  **Initial increment**: `0001-project-setup` (auto-created by `specweave init`)
@@ -133,7 +133,7 @@ SpecWeave auto-installs: LSP → project scope, sw-* → user scope.
133
133
  2. **Customize**: Edit spec.md and use for setup tasks
134
134
  <!-- SW:END:start -->
135
135
 
136
- <!-- SW:SECTION:autodetect version="1.0.211" -->
136
+ <!-- SW:SECTION:autodetect version="1.0.212" -->
137
137
  ## Auto-Detection
138
138
 
139
139
  SpecWeave auto-detects product descriptions and routes to `/sw:increment`:
@@ -143,7 +143,7 @@ SpecWeave auto-detects product descriptions and routes to `/sw:increment`:
143
143
  **Opt-out phrases**: "Just brainstorm first" | "Don't plan yet" | "Quick discussion" | "Let's explore ideas"
144
144
  <!-- SW:END:autodetect -->
145
145
 
146
- <!-- SW:SECTION:metarule version="1.0.211" -->
146
+ <!-- SW:SECTION:metarule version="1.0.212" -->
147
147
  ## Workflow Orchestration
148
148
 
149
149
  ### 1. Plan Mode Default
@@ -170,7 +170,7 @@ SpecWeave auto-detects product descriptions and routes to `/sw:increment`:
170
170
  ```
171
171
  <!-- SW:END:metarule -->
172
172
 
173
- <!-- SW:SECTION:rules version="1.0.211" -->
173
+ <!-- SW:SECTION:rules version="1.0.212" -->
174
174
  ## Rules
175
175
 
176
176
  1. **Files** → `.specweave/increments/####-name/` (see Structure section for details)
@@ -189,7 +189,7 @@ SpecWeave auto-detects product descriptions and routes to `/sw:increment`:
189
189
  Use next available number. **NEVER create duplicate prefixes.**
190
190
  <!-- SW:END:rules -->
191
191
 
192
- <!-- SW:SECTION:workflow version="1.0.211" -->
192
+ <!-- SW:SECTION:workflow version="1.0.212" -->
193
193
  ## Workflow
194
194
 
195
195
  `/sw:increment "X"` → `/sw:do` → `/sw:progress` → `/sw:done 0001`
@@ -235,7 +235,7 @@ project/
235
235
  **NEVER assume single-repo mode without scanning first!**
236
236
  <!-- SW:END:save-nested-repos -->
237
237
 
238
- <!-- SW:SECTION:reflect version="1.0.211" -->
238
+ <!-- SW:SECTION:reflect version="1.0.212" -->
239
239
  ## Skill Memories
240
240
 
241
241
  SpecWeave learns from corrections. Learnings saved here automatically. Edit or delete as needed.
@@ -254,7 +254,7 @@ SpecWeave learns from corrections. Learnings saved here automatically. Edit or d
254
254
  - **2026-02-02**: Use subagents liberally for codebase analysis - up to 10+ concurrent for large-scale exploration
255
255
  - **2026-02-02**: Prefer leaderboard-style reporting when analyzing usage patterns or identifying deletion candidates
256
256
 
257
- <!-- SW:SECTION:context version="1.0.211" -->
257
+ <!-- SW:SECTION:context version="1.0.212" -->
258
258
  ## Context
259
259
 
260
260
  **Before implementing**: Check ADRs at `.specweave/docs/internal/architecture/adr/`
@@ -262,7 +262,7 @@ SpecWeave learns from corrections. Learnings saved here automatically. Edit or d
262
262
  **Load context**: `/sw:context <topic>` loads relevant living docs into conversation
263
263
  <!-- SW:END:context -->
264
264
 
265
- <!-- SW:SECTION:structure version="1.0.211" -->
265
+ <!-- SW:SECTION:structure version="1.0.212" -->
266
266
  ## Structure
267
267
 
268
268
  ```
@@ -277,7 +277,7 @@ SpecWeave learns from corrections. Learnings saved here automatically. Edit or d
277
277
  **Everything else → subfolders**: `reports/` | `logs/` | `scripts/` | `backups/`
278
278
  <!-- SW:END:structure -->
279
279
 
280
- <!-- SW:SECTION:taskformat version="1.0.211" -->
280
+ <!-- SW:SECTION:taskformat version="1.0.212" -->
281
281
  ## Task Format
282
282
 
283
283
  ```markdown
@@ -287,7 +287,7 @@ SpecWeave learns from corrections. Learnings saved here automatically. Edit or d
287
287
  ```
288
288
  <!-- SW:END:taskformat -->
289
289
 
290
- <!-- SW:SECTION:secrets version="1.0.211" -->
290
+ <!-- SW:SECTION:secrets version="1.0.212" -->
291
291
  ## Secrets Check
292
292
 
293
293
  **BEFORE CLI tools**: Check existing config first!
@@ -301,7 +301,7 @@ gh auth status
301
301
  **SECURITY**: NEVER use `grep TOKEN .env` without `-q` flag - it exposes credentials in terminal!
302
302
  <!-- SW:END:secrets -->
303
303
 
304
- <!-- SW:SECTION:syncing version="1.0.211" -->
304
+ <!-- SW:SECTION:syncing version="1.0.212" -->
305
305
  ## External Sync (GitHub/JIRA/ADO)
306
306
 
307
307
  **Commands**: `/sw-github:sync {id}` (issues) | `/sw:sync-specs` (living docs only)
@@ -311,7 +311,7 @@ gh auth status
311
311
  **Config**: Set `sync.github.enabled: true` + `canUpdateExternalItems: true` in config.json
312
312
  <!-- SW:END:syncing -->
313
313
 
314
- <!-- SW:SECTION:testing version="1.0.211" -->
314
+ <!-- SW:SECTION:testing version="1.0.212" -->
315
315
  ## Testing
316
316
 
317
317
  BDD in tasks.md | Unit >80% | `.test.ts` (Vitest)
@@ -323,7 +323,7 @@ vi.mock('./module', () => ({ func: mockFn }));
323
323
  ```
324
324
  <!-- SW:END:testing -->
325
325
 
326
- <!-- SW:SECTION:tdd version="1.0.211" -->
326
+ <!-- SW:SECTION:tdd version="1.0.212" -->
327
327
  ## TDD Mode (Test-Driven Development)
328
328
 
329
329
  **When `testing.defaultTestMode: "TDD"` is configured**, follow RED-GREEN-REFACTOR discipline:
@@ -384,7 +384,7 @@ When TDD is enabled, tasks include phase markers:
384
384
  **Rule**: Complete dependencies BEFORE dependent tasks (RED before GREEN).
385
385
  <!-- SW:END:tdd -->
386
386
 
387
- <!-- SW:SECTION:api version="1.0.211" -->
387
+ <!-- SW:SECTION:api version="1.0.212" -->
388
388
  ## API Development (OpenAPI-First)
389
389
 
390
390
  **For API projects only.** Commands: `/sw:api-docs --all` | `--openapi` | `--postman` | `--validate`
@@ -392,13 +392,13 @@ When TDD is enabled, tasks include phase markers:
392
392
  Enable in config: `{"apiDocs":{"enabled":true,"openApiPath":"openapi.yaml"}}`
393
393
  <!-- SW:END:api -->
394
394
 
395
- <!-- SW:SECTION:limits version="1.0.211" -->
395
+ <!-- SW:SECTION:limits version="1.0.212" -->
396
396
  ## Limits
397
397
 
398
398
  **Max 1500 lines/file** — extract before adding
399
399
  <!-- SW:END:limits -->
400
400
 
401
- <!-- SW:SECTION:troubleshooting version="1.0.211" -->
401
+ <!-- SW:SECTION:troubleshooting version="1.0.212" -->
402
402
  ## Troubleshooting
403
403
 
404
404
  | Issue | Fix |
@@ -411,7 +411,7 @@ Enable in config: `{"apiDocs":{"enabled":true,"openApiPath":"openapi.yaml"}}`
411
411
  | Session stuck | Kill + `rm -f .specweave/state/*.lock` + restart |
412
412
  <!-- SW:END:troubleshooting -->
413
413
 
414
- <!-- SW:SECTION:lazyloading version="1.0.211" -->
414
+ <!-- SW:SECTION:lazyloading version="1.0.212" -->
415
415
  ## Plugin Auto-Loading
416
416
 
417
417
  Plugins load automatically based on project type and keywords. Manual install if needed:
@@ -425,7 +425,7 @@ export SPECWEAVE_DISABLE_AUTO_LOAD=1 # Disable auto-load
425
425
  **Token savings**: Core ~3-5K tokens vs all plugins ~60K+
426
426
  <!-- SW:END:lazyloading -->
427
427
 
428
- <!-- SW:SECTION:principles version="1.0.211" -->
428
+ <!-- SW:SECTION:principles version="1.0.212" -->
429
429
  ## Principles
430
430
 
431
431
  ### SpecWeave Principles
@@ -441,7 +441,7 @@ export SPECWEAVE_DISABLE_AUTO_LOAD=1 # Disable auto-load
441
441
  - **Demand Elegance**: For non-trivial changes, pause and ask "is there a more elegant way?" - but skip this for simple, obvious fixes (don't over-engineer).
442
442
  <!-- SW:END:principles -->
443
443
 
444
- <!-- SW:SECTION:linking version="1.0.211" -->
444
+ <!-- SW:SECTION:linking version="1.0.212" -->
445
445
  ## Bidirectional Linking
446
446
 
447
447
  Tasks ↔ User Stories auto-linked via AC-IDs: `AC-US1-01` → `US-001`
@@ -449,7 +449,7 @@ Tasks ↔ User Stories auto-linked via AC-IDs: `AC-US1-01` → `US-001`
449
449
  Task format: `**AC**: AC-US1-01, AC-US1-02` (CRITICAL for linking)
450
450
  <!-- SW:END:linking -->
451
451
 
452
- <!-- SW:SECTION:mcp version="1.0.211" -->
452
+ <!-- SW:SECTION:mcp version="1.0.212" -->
453
453
  ## External Services
454
454
 
455
455
  **Priority**: CLI tools first (simpler) → MCP for complex integrations
@@ -471,7 +471,7 @@ claude mcp add --transport stdio postgres -- npx -y @modelcontextprotocol/server
471
471
  MCP supports lazy-loading (auto mode) - tools load on-demand when >10% context.
472
472
  <!-- SW:END:mcp -->
473
473
 
474
- <!-- SW:SECTION:auto version="1.0.211" -->
474
+ <!-- SW:SECTION:auto version="1.0.212" -->
475
475
  ## Auto Mode
476
476
 
477
477
  **Commands**: `/sw:auto` (start) | `/sw:auto-status` (check) | `/sw:cancel-auto` (emergency only)
@@ -488,7 +488,7 @@ MCP supports lazy-loading (auto mode) - tools load on-demand when >10% context.
488
488
  **STOP & ASK** if: Spec conflicts | Task unnecessary | Requirement ambiguous
489
489
  <!-- SW:END:auto -->
490
490
 
491
- <!-- SW:SECTION:docs version="1.0.211" -->
491
+ <!-- SW:SECTION:docs version="1.0.212" -->
492
492
  ## Docs
493
493
 
494
494
  [spec-weave.com](https://spec-weave.com)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specweave",
3
- "version": "1.0.212",
3
+ "version": "1.0.213",
4
4
  "description": "Spec-driven development framework for Claude Code. AI-native workflow with living documentation, intelligent agents, and multilingual support (9 languages). Enterprise-grade traceability with permanent specs and temporary increments.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -18,5 +18,7 @@
18
18
  "pm",
19
19
  "architect",
20
20
  "living-docs"
21
- ]
21
+ ],
22
+ "commands": "./commands/",
23
+ "skills": "./skills/"
22
24
  }
@@ -0,0 +1,12 @@
1
+ {"timestamp":"2026-02-03T05:48:20Z","hook":"stop-auto","decision":"approve","reason":"No increments directory","reasonCode":"no_increments_dir","durationMs":0,"context":{}}
2
+ {"timestamp":"2026-02-03T05:48:20Z","hook":"stop-reflect","decision":"approve","reason":"specweave CLI not found","reasonCode":"error","durationMs":0,"context":{"transcriptLines":28,"reflectionEnabled":true,"learningsExtracted":0,"learningCategories":[],"exitReason":"error","triggerReason":"session_end"}}
3
+ {"timestamp":"2026-02-03T05:49:50Z","hook":"stop-auto","decision":"approve","reason":"No increments directory","reasonCode":"no_increments_dir","durationMs":0,"context":{}}
4
+ {"timestamp":"2026-02-03T05:49:50Z","hook":"stop-reflect","decision":"approve","reason":"Transcript too short (5 lines)","reasonCode":"transcript_too_short","durationMs":0,"context":{"transcriptLines":5,"reflectionEnabled":true,"learningsExtracted":0,"learningCategories":[],"exitReason":"transcript_too_short","triggerReason":"session_end"}}
5
+ {"timestamp":"2026-02-03T05:50:08Z","hook":"stop-auto","decision":"approve","reason":"No increments directory","reasonCode":"no_increments_dir","durationMs":0,"context":{}}
6
+ {"timestamp":"2026-02-03T05:50:08Z","hook":"stop-reflect","decision":"approve","reason":"Transcript too short (8 lines)","reasonCode":"transcript_too_short","durationMs":0,"context":{"transcriptLines":8,"reflectionEnabled":true,"learningsExtracted":0,"learningCategories":[],"exitReason":"transcript_too_short","triggerReason":"session_end"}}
7
+ {"timestamp":"2026-02-03T05:50:24Z","hook":"stop-auto","decision":"approve","reason":"No increments directory","reasonCode":"no_increments_dir","durationMs":0,"context":{}}
8
+ {"timestamp":"2026-02-03T05:50:24Z","hook":"stop-reflect","decision":"approve","reason":"specweave CLI not found","reasonCode":"error","durationMs":0,"context":{"transcriptLines":13,"reflectionEnabled":true,"learningsExtracted":0,"learningCategories":[],"exitReason":"error","triggerReason":"session_end"}}
9
+ {"timestamp":"2026-02-03T05:50:46Z","hook":"stop-auto","decision":"approve","reason":"No increments directory","reasonCode":"no_increments_dir","durationMs":0,"context":{}}
10
+ {"timestamp":"2026-02-03T05:50:46Z","hook":"stop-reflect","decision":"approve","reason":"specweave CLI not found","reasonCode":"error","durationMs":0,"context":{"transcriptLines":17,"reflectionEnabled":true,"learningsExtracted":0,"learningCategories":[],"exitReason":"error","triggerReason":"session_end"}}
11
+ {"timestamp":"2026-02-03T05:52:57Z","hook":"stop-auto","decision":"approve","reason":"No increments directory","reasonCode":"no_increments_dir","durationMs":0,"context":{}}
12
+ {"timestamp":"2026-02-03T05:52:57Z","hook":"stop-reflect","decision":"approve","reason":"specweave CLI not found","reasonCode":"error","durationMs":0,"context":{"transcriptLines":399,"reflectionEnabled":true,"learningsExtracted":0,"learningCategories":[],"exitReason":"error","triggerReason":"session_end"}}
@@ -0,0 +1,8 @@
1
+ [2026-02-03T05:48:20Z] [info] Starting reflection (28 lines)
2
+ [2026-02-03T05:48:20Z] [warn] specweave CLI not found
3
+ [2026-02-03T05:50:24Z] [info] Starting reflection (13 lines)
4
+ [2026-02-03T05:50:24Z] [warn] specweave CLI not found
5
+ [2026-02-03T05:50:46Z] [info] Starting reflection (17 lines)
6
+ [2026-02-03T05:50:46Z] [warn] specweave CLI not found
7
+ [2026-02-03T05:52:57Z] [info] Starting reflection (399 lines)
8
+ [2026-02-03T05:52:57Z] [warn] specweave CLI not found
@@ -0,0 +1,6 @@
1
+ [2026-02-03T05:48:20Z] APPROVE: No increments directory
2
+ [2026-02-03T05:49:50Z] APPROVE: No increments directory
3
+ [2026-02-03T05:50:08Z] APPROVE: No increments directory
4
+ [2026-02-03T05:50:24Z] APPROVE: No increments directory
5
+ [2026-02-03T05:50:46Z] APPROVE: No increments directory
6
+ [2026-02-03T05:52:57Z] APPROVE: No increments directory
@@ -0,0 +1,10 @@
1
+ [2026-02-03T05:49:50Z] Stop-sync started
2
+ [2026-02-03T05:49:50Z] No pending events to sync
3
+ [2026-02-03T05:50:08Z] Stop-sync started
4
+ [2026-02-03T05:50:08Z] No pending events to sync
5
+ [2026-02-03T05:50:24Z] Stop-sync started
6
+ [2026-02-03T05:50:24Z] No pending events to sync
7
+ [2026-02-03T05:50:46Z] Stop-sync started
8
+ [2026-02-03T05:50:46Z] No pending events to sync
9
+ [2026-02-03T05:52:57Z] Stop-sync started
10
+ [2026-02-03T05:52:57Z] No pending events to sync
@@ -0,0 +1,43 @@
1
+ {
2
+ "version": 1,
3
+ "updatedAt": "2026-02-03T05:49:24Z",
4
+ "increments": {},
5
+ "summary": {
6
+ "total": 0,
7
+ "active": 0,
8
+ "paused": 0,
9
+ "backlog": 0,
10
+ "planning": 0,
11
+ "ready_for_review": 0,
12
+ "completed": 0,
13
+ "abandoned": 0,
14
+ "archived": 0,
15
+ "byType": {
16
+ "feature": 0,
17
+ "hotfix": 0,
18
+ "bug": 0,
19
+ "refactor": 0,
20
+ "experiment": 0,
21
+ "change-request": 0
22
+ },
23
+ "byPriority": {
24
+ "P0": 0,
25
+ "P1": 0,
26
+ "P2": 0,
27
+ "P3": 0
28
+ }
29
+ },
30
+ "jobs": {
31
+ "running": [],
32
+ "paused": [],
33
+ "failed": [],
34
+ "completedCount": 0
35
+ },
36
+ "costs": {
37
+ "totalTokens": 0,
38
+ "totalCost": 0,
39
+ "totalSavings": 0,
40
+ "byIncrement": {}
41
+ },
42
+ "mtimes": {}
43
+ }
@@ -1,194 +0,0 @@
1
- # SpecWeave Commands
2
-
3
- All SpecWeave commands are namespaced for brownfield safety and follow a consistent naming pattern.
4
-
5
- ## ⚠️ CRITICAL: No Shortcuts Allowed
6
-
7
- **IMPORTANT**: SpecWeave commands MUST be invoked with the `/sw:*` namespace prefix.
8
-
9
- **Why?** Shortcuts like `/inc`, `/do`, `/pause`, `/resume` conflict with Claude Code's native commands and break functionality.
10
-
11
- **Always use**: `/sw:increment`, `/sw:do`, `/sw:resume`, etc.
12
-
13
- ## Command Naming Convention
14
-
15
- **All command files**: `{command-name}.md`
16
- **YAML name field**: `{command-name}`
17
- **Invocation**: `/sw:{command-name}` (namespace prefix required)
18
-
19
- ### Example:
20
- - **File**: `increment.md`
21
- - **YAML**:
22
- ```yaml
23
- ---
24
- name: increment
25
- description: Plan new Product Increment
26
- ---
27
- ```
28
- - **Usage**: `/sw:increment` (ONLY form, no shortcuts)
29
-
30
- ## All Available Commands (55 total)
31
-
32
- ### Core Lifecycle (9 commands)
33
- 1. `increment.md` - Plan new Product Increment → `/sw:increment`
34
- 2. `plan.md` - Generate plan.md and tasks.md using Architect Agent → `/sw:plan`
35
- 3. `do.md` - Execute increment tasks → `/sw:do`
36
- 4. `done.md` - Close increment with PM validation → `/sw:done`
37
- 5. `next.md` - Smart workflow transition (auto-close + suggest next) → `/sw:next`
38
- 6. `progress.md` - Show increment progress → `/sw:progress`
39
- 7. `validate.md` - Validate increment quality → `/sw:validate`
40
- 8. `workflow.md` - Smart workflow navigator → `/sw:workflow`
41
- 9. `context.md` - Load living docs context for LLM → `/sw:context`
42
-
43
- ### Status & Reporting (5 commands)
44
- 10. `status.md` - Show all increments overview → `/sw:status`
45
- 11. `update-scope.md` - Update living completion report → `/sw:update-scope`
46
- 12. `qa.md` - Quality assessment with risk scoring → `/sw:qa`
47
- 13. `judge-llm.md` - Ultrathink LLM-as-Judge validation → `/sw:judge-llm`
48
- 14. `jobs.md` - Show background jobs and increment status → `/sw:jobs`
49
-
50
- ### State Management (5 commands)
51
- 15. `pause.md` - Pause active increment → `/sw:pause`
52
- 16. `resume.md` - Resume paused/backlog increment → `/sw:resume`
53
- 17. `abandon.md` - Abandon incomplete increment → `/sw:abandon`
54
- 18. `backlog.md` - Move increment to backlog → `/sw:backlog`
55
- 19. `reopen.md` - Reopen completed increment → `/sw:reopen`
56
-
57
- ### Testing & Quality (3 commands)
58
- 20. `check-tests.md` - Validate test coverage → `/sw:check-tests`
59
- 21. `sync-tasks.md` - Sync tasks with external tools → `/sw:sync-tasks`
60
- 22. `check-hooks.md` - Health check for hooks → `/sw:check-hooks`
61
-
62
- ### TDD Workflow (4 commands)
63
- 23. `tdd-red.md` - Write failing tests (TDD red phase) → `/sw:tdd-red`
64
- 24. `tdd-green.md` - Make tests pass (TDD green phase) → `/sw:tdd-green`
65
- 25. `tdd-refactor.md` - Refactor with test safety net → `/sw:tdd-refactor`
66
- 26. `tdd-cycle.md` - Full TDD red-green-refactor cycle → `/sw:tdd-cycle`
67
-
68
- ### Archiving & Cleanup (6 commands)
69
- 27. `archive.md` - Archive completed increments → `/sw:archive`
70
- 28. `restore.md` - Restore archived increments → `/sw:restore`
71
- 29. `archive-features.md` - Archive features/epics → `/sw:archive-features`
72
- 30. `restore-feature.md` - Restore features/epics → `/sw:restore-feature`
73
- 31. `fix-duplicates.md` - Resolve duplicate increments → `/sw:fix-duplicates`
74
- 32. `revert-wip-limit.md` - Revert WIP limit after adjustment → `/sw:revert-wip-limit`
75
-
76
- ### Sync & Monitoring (10 commands)
77
- 33. `sync-docs.md` - Strategic documentation sync → `/sw:sync-docs`
78
- 34. `sync-specs.md` - Sync specs to living docs → `/sw:sync-specs`
79
- 35. `sync-progress.md` - Full progress sync to external tools → `/sw:sync-progress`
80
- 36. `sync-acs.md` - Sync AC checkbox status → `/sw:sync-acs`
81
- 37. `sync-status.md` - Fix metadata/spec status desyncs → `/sw:sync-status`
82
- 38. `sync-monitor.md` - Sync orchestration dashboard → `/sw:sync-monitor`
83
- 39. `sync-logs.md` - Query sync audit logs → `/sw:sync-logs`
84
- 40. `sync-diagnostics.md` - Sync circuit breaker diagnostics → `/sw:sync-diagnostics`
85
- 41. `update-status.md` - Force-update status line cache → `/sw:update-status`
86
- 42. `notifications.md` - View sync notifications → `/sw:notifications`
87
-
88
- ### Brownfield & Documentation (7 commands)
89
- 43. `discrepancies.md` - View code-to-spec discrepancies → `/sw:discrepancies`
90
- 44. `discrepancy-to-increment.md` - Convert discrepancy to increment → `/sw:discrepancy-to-increment`
91
- 45. `import-docs.md` - Import brownfield documentation → `/sw:import-docs`
92
- 46. `import-external.md` - Import external work items → `/sw:import-external`
93
- 47. `living-docs.md` - Launch Living Docs Builder → `/sw:living-docs`
94
- 48. `organize-docs.md` - Smart documentation organization → `/sw:organize-docs`
95
- 49. `validate-features.md` - Validate feature folder consistency → `/sw:validate-features`
96
-
97
- ### External Tools (2 commands)
98
- 50. `external.md` - View external items dashboard → `/sw:external`
99
- 51. `embed-acs.md` - Embed ACs from living docs into spec.md → `/sw:embed-acs`
100
-
101
- ### Utilities (4 commands)
102
- 52. `translate.md` - Batch translation → `/sw:translate`
103
- 53. `save.md` - Smart git save across repos → `/sw:save`
104
- 54. `migrate-config.md` - Migrate config format → `/sw:migrate-config`
105
- 55. `sw.md` - Master command reference → `/sw:sw`
106
-
107
- **Total**: 55 commands in the core SpecWeave plugin
108
-
109
- ## Command Categories
110
-
111
- **By Frequency of Use**:
112
- - **ESSENTIAL**: increment, do, done, next, progress, validate, sync-docs, save, context
113
- - **IMPORTANT**: status, qa, check-tests, update-scope, workflow, sync-specs
114
- - **STATE MANAGEMENT**: pause, resume, abandon, backlog, reopen
115
- - **ARCHIVING**: archive, restore, archive-features, restore-feature, fix-duplicates
116
- - **SYNC & MONITORING**: sync-monitor, sync-logs, sync-progress, sync-acs, sync-status, notifications
117
- - **BROWNFIELD**: discrepancies, discrepancy-to-increment, import-docs, import-external, living-docs
118
- - **TDD**: tdd-red, tdd-green, tdd-refactor, tdd-cycle
119
- - **ADVANCED**: judge-llm, check-hooks, embed-acs, validate-features, organize-docs
120
-
121
- ## Plugin Commands
122
-
123
- SpecWeave plugins provide additional namespaced commands:
124
-
125
- | Plugin | Prefix | Commands |
126
- |--------|--------|----------|
127
- | **GitHub** | `/sw-github:*` | sync, create, push, pull, close, status, reconcile, clone |
128
- | **JIRA** | `/sw-jira:*` | sync, create, push, pull, close, status, reconcile |
129
- | **Azure DevOps** | `/sw-ado:*` | sync, create, push, pull, close, status, reconcile |
130
- | **Release** | `/sw-release:*` | init, align, rc, platform, npm |
131
- | **Docs** | `/sw-docs:*` | init, generate, build, view, validate, organize |
132
- | **Frontend** | `/sw-frontend:*` | component-generate, design-system-init, frontend-scaffold |
133
- | **Backend** | `/sw-backend:*` | api-scaffold, crud-generate, migration-generate |
134
- | **Kubernetes** | `/sw-k8s:*` | cluster-setup, deployment-generate, helm-scaffold |
135
- | **Testing** | `/sw-testing:*` | e2e-setup, test-coverage, test-generate, test-init |
136
- | **Infrastructure** | `/sw-infra:*` | monitor-setup, slo-implement |
137
- | **Kafka** | `/sw-kafka:*` | deploy, dev-env, monitor-setup, mcp-configure |
138
- | **Mobile** | `/sw-mobile:*` | app-scaffold, build-config, screen-generate |
139
- | **ML** | `/sw-ml:*` | deploy, evaluate, explain, pipeline |
140
- | **Payments** | `/sw-payments:*` | subscription-manage, webhook-setup |
141
- | **Diagrams** | `/sw-diagrams:*` | diagrams-generate |
142
-
143
- ## Removed/Deprecated Commands
144
-
145
- **Duplicates removed**:
146
- - ❌ `inc.md` → Use `/sw:increment`
147
-
148
- **Deprecated commands**:
149
- - ❌ `validate-coverage.md` → Use `/sw:check-tests`
150
- - ❌ `specweave-validate-coverage.md` → Use `/sw:check-tests`
151
- - ❌ `list-increments.md` → Use `/sw:status`
152
-
153
- **Removed**:
154
- - ❌ `costs.md` - Cost tracking infrastructure not wired up
155
-
156
- ## Brownfield Safety
157
-
158
- All commands are namespaced to prevent collisions with existing project commands:
159
- - ✅ **Namespace form**: `/sw:increment` (ONLY way, always safe)
160
- - ❌ **No shortcuts**: Do NOT use `/inc`, `/do`, `/pause`, `/resume` etc.
161
-
162
- ## Quick Reference
163
-
164
- ```bash
165
- # Core workflow
166
- /sw:increment "feature" # Plan new increment
167
- /sw:do # Execute tasks
168
- /sw:progress # Check status
169
- /sw:qa 0007 # Quality check
170
- /sw:done 0007 # Close increment
171
- /sw:save # Commit & push changes
172
-
173
- # Sync to external tools
174
- /sw-github:sync 0007 # Sync to GitHub
175
- /sw-jira:sync 0007 # Sync to JIRA
176
- /sw-ado:sync 0007 # Sync to Azure DevOps
177
-
178
- # State management
179
- /sw:pause 0007 # Pause increment
180
- /sw:resume 0007 # Resume increment
181
- /sw:backlog 0007 # Move to backlog
182
- /sw:abandon 0007 # Abandon increment
183
-
184
- # Documentation
185
- /sw:sync-docs update # Sync to living docs
186
- /sw:living-docs # Launch docs builder
187
- /sw:import-docs # Import brownfield docs
188
- ```
189
-
190
- ## See Also
191
-
192
- - **User Documentation**: https://spec-weave.com/docs/commands
193
- - **CLAUDE.md**: Project contributor guide with complete command reference
194
- - **Plugin Marketplace**: `.claude-plugin/marketplace.json`
@@ -1,127 +0,0 @@
1
- ---
2
- name: sw
3
- description: SpecWeave command reference and help. Shows available commands. DO NOT use routing syntax like '/specweave do' - always use full namespaced commands like '/sw:do' instead.
4
- ---
5
-
6
- # SpecWeave Command Reference
7
-
8
- **⚠️ IMPORTANT: This is a REFERENCE ONLY, not a router!**
9
-
10
- **DO NOT use**: `/specweave do`, `/specweave inc`, etc.
11
- **ALWAYS use**: `/sw:do`, `/sw:increment`, etc.
12
-
13
- Claude Code does not support command routing. Each command must be invoked directly by its full namespaced name.
14
-
15
- **Namespace Protection**: All SpecWeave commands are prefixed with `specweave:` to avoid collisions with existing project commands.
16
-
17
- ---
18
-
19
- ## Available Commands
20
-
21
- **All commands use the `specweave:` prefix** (note the colon!)
22
-
23
- ### Increment Lifecycle
24
-
25
- | Command | Description | Example |
26
- |---------|-------------|---------|
27
- | `/sw:increment` | Create new increment (PM-led) | `/sw:increment "User auth"` |
28
- | `/sw:do` | Execute tasks (auto-resumes) | `/sw:do` or `/sw:do 0031` |
29
- | `/sw:next` | Smart transition (close + suggest) | `/sw:next` |
30
- | `/sw:done` | Manual closure with PM validation | `/sw:done 0031` |
31
- | `/sw:progress` | Check status and next action | `/sw:progress` |
32
- | `/sw:validate` | Validate increment quality | `/sw:validate 0031` |
33
-
34
- ### Documentation & Sync
35
-
36
- | Command | Description | Example |
37
- |---------|-------------|---------|
38
- | `/sw:sync-docs` | Sync living docs | `/sw:sync-docs update` |
39
- | `/sw:sync-tasks` | Sync tasks with status | `/sw:sync-tasks` |
40
-
41
- ### GitHub Plugin
42
-
43
- | Command | Description | Example |
44
- |---------|-------------|---------|
45
- | `/sw-github:create-issue` | Create GitHub issue | `/sw-github:create-issue 0031` |
46
- | `/sw-github:sync` | Two-way sync | `/sw-github:sync 0031` |
47
- | `/sw-github:sync-tasks` | Sync tasks as sub-issues | `/sw-github:sync-tasks 0031` |
48
- | `/sw-github:close-issue` | Close GitHub issue | `/sw-github:close-issue 0031` |
49
- | `/sw-github:status` | Show sync status | `/sw-github:status` |
50
-
51
- ---
52
-
53
- ## ⚠️ NO ROUTING SUPPORT
54
-
55
- **Claude Code does not implement command routing!**
56
-
57
- This file is a **reference guide only**. You cannot do:
58
- - ❌ `/specweave do` (doesn't work, no routing!)
59
- - ❌ `/specweave inc "feature"` (doesn't work!)
60
- - ❌ `/specweave next` (doesn't work!)
61
-
62
- **Instead, always use full namespaced commands:**
63
- - ✅ `/sw:do`
64
- - ✅ `/sw:increment "feature"`
65
- - ✅ `/sw:next`
66
-
67
- **Why This Matters:**
68
- Calling both `/specweave` and `/sw:do` causes **duplicate invocations**! Always use the namespaced version with the colon.
69
-
70
- ---
71
-
72
- ## Usage Examples
73
-
74
- ### ✅ CORRECT Usage
75
-
76
- ```bash
77
- # Create increment
78
- /sw:increment "User authentication"
79
-
80
- # Execute tasks
81
- /sw:do
82
-
83
- # Check progress
84
- /sw:progress
85
-
86
- # Complete increment
87
- /sw:done 0031
88
- ```
89
-
90
- ### ❌ INCORRECT Usage (Causes Duplicates!)
91
-
92
- ```bash
93
- # DO NOT use routing syntax:
94
- /specweave do # ❌ Won't work, no routing!
95
- /specweave inc "feat" # ❌ Won't work!
96
- /specweave next # ❌ Won't work!
97
-
98
- # ALWAYS use namespaced commands:
99
- /sw:do # ✅ Correct!
100
- /sw:increment "feat" # ✅ Correct!
101
- /sw:next # ✅ Correct!
102
- ```
103
-
104
- ---
105
-
106
- ## Why Namespacing?
107
-
108
- **Namespace Protection**: All SpecWeave commands use `specweave:` prefix to avoid collisions with existing project commands in brownfield setups.
109
-
110
- **Benefits:**
111
- 1. **No collisions** - SpecWeave commands never overwrite user commands
112
- 2. **Clear ownership** - `specweave:` prefix shows it's a framework command
113
- 3. **Easy identification** - Clear indication of SpecWeave actions
114
- 4. **Brownfield safe** - Can install in any existing project
115
- 5. **Uninstall clean** - Remove `specweave:*` commands, user's commands intact
116
-
117
- ---
118
-
119
- ## Related Documentation
120
-
121
- - [Getting Started](https://spec-weave.com/docs/getting-started)
122
- - [Command Reference](https://spec-weave.com/docs/commands)
123
- - [Workflow Guide](https://spec-weave.com/docs/workflow)
124
-
125
- ---
126
-
127
- **⚠️ Remember**: Always use `/sw:` with a colon, never `/specweave ` with a space!