specweave 1.0.253 → 1.0.255

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.
Files changed (138) hide show
  1. package/CLAUDE.md +24 -24
  2. package/README.md +163 -1
  3. package/dist/src/adapters/agents-md-generator.d.ts.map +1 -1
  4. package/dist/src/adapters/agents-md-generator.js +0 -1
  5. package/dist/src/adapters/agents-md-generator.js.map +1 -1
  6. package/dist/src/adapters/claude/README.md +0 -1
  7. package/dist/src/adapters/claude-md-generator.d.ts.map +1 -1
  8. package/dist/src/adapters/claude-md-generator.js +0 -1
  9. package/dist/src/adapters/claude-md-generator.js.map +1 -1
  10. package/dist/src/cli/commands/docs.d.ts.map +1 -1
  11. package/dist/src/cli/commands/docs.js +59 -55
  12. package/dist/src/cli/commands/docs.js.map +1 -1
  13. package/dist/src/cli/helpers/init/smart-defaults.d.ts.map +1 -1
  14. package/dist/src/cli/helpers/init/smart-defaults.js +7 -1
  15. package/dist/src/cli/helpers/init/smart-defaults.js.map +1 -1
  16. package/dist/src/core/config/types.d.ts +2 -0
  17. package/dist/src/core/config/types.d.ts.map +1 -1
  18. package/dist/src/core/config/types.js.map +1 -1
  19. package/dist/src/core/discrepancy/analyzers/api-route-analyzer.d.ts.map +1 -1
  20. package/dist/src/core/discrepancy/analyzers/api-route-analyzer.js +5 -0
  21. package/dist/src/core/discrepancy/analyzers/api-route-analyzer.js.map +1 -1
  22. package/dist/src/core/lazy-loading/llm-plugin-detector.d.ts +21 -0
  23. package/dist/src/core/lazy-loading/llm-plugin-detector.d.ts.map +1 -1
  24. package/dist/src/core/lazy-loading/llm-plugin-detector.js +61 -107
  25. package/dist/src/core/lazy-loading/llm-plugin-detector.js.map +1 -1
  26. package/dist/src/core/living-docs/enterprise/history-analyzer.d.ts.map +1 -1
  27. package/dist/src/core/living-docs/enterprise/history-analyzer.js +1 -3
  28. package/dist/src/core/living-docs/enterprise/history-analyzer.js.map +1 -1
  29. package/dist/src/core/living-docs/governance/java-standards-parser.d.ts.map +1 -1
  30. package/dist/src/core/living-docs/governance/java-standards-parser.js +37 -18
  31. package/dist/src/core/living-docs/governance/java-standards-parser.js.map +1 -1
  32. package/dist/src/core/living-docs/operations/ops-generator.js +2 -2
  33. package/dist/src/core/living-docs/operations/ops-generator.js.map +1 -1
  34. package/dist/src/core/reflection/index.d.ts +1 -1
  35. package/dist/src/core/reflection/index.d.ts.map +1 -1
  36. package/dist/src/core/reflection/index.js +1 -1
  37. package/dist/src/core/reflection/index.js.map +1 -1
  38. package/dist/src/core/reflection/reflect-handler.d.ts.map +1 -1
  39. package/dist/src/core/reflection/reflect-handler.js +1 -2
  40. package/dist/src/core/reflection/reflect-handler.js.map +1 -1
  41. package/dist/src/core/reflection/skill-memories.d.ts +13 -1
  42. package/dist/src/core/reflection/skill-memories.d.ts.map +1 -1
  43. package/dist/src/core/reflection/skill-memories.js +55 -10
  44. package/dist/src/core/reflection/skill-memories.js.map +1 -1
  45. package/dist/src/core/repo-structure/prefix-validator.d.ts +25 -0
  46. package/dist/src/core/repo-structure/prefix-validator.d.ts.map +1 -0
  47. package/dist/src/core/repo-structure/prefix-validator.js +47 -0
  48. package/dist/src/core/repo-structure/prefix-validator.js.map +1 -0
  49. package/dist/src/core/repo-structure/repo-structure-manager.d.ts +4 -0
  50. package/dist/src/core/repo-structure/repo-structure-manager.d.ts.map +1 -1
  51. package/dist/src/core/repo-structure/repo-structure-manager.js.map +1 -1
  52. package/dist/src/core/repo-structure/role-prefix-collector.d.ts +45 -0
  53. package/dist/src/core/repo-structure/role-prefix-collector.d.ts.map +1 -0
  54. package/dist/src/core/repo-structure/role-prefix-collector.js +106 -0
  55. package/dist/src/core/repo-structure/role-prefix-collector.js.map +1 -0
  56. package/dist/src/hooks/session-start.js +7 -0
  57. package/dist/src/hooks/session-start.js.map +1 -1
  58. package/dist/src/sync/story-router.d.ts +36 -0
  59. package/dist/src/sync/story-router.d.ts.map +1 -0
  60. package/dist/src/sync/story-router.js +56 -0
  61. package/dist/src/sync/story-router.js.map +1 -0
  62. package/dist/src/utils/agents-md-compiler.d.ts.map +1 -1
  63. package/dist/src/utils/agents-md-compiler.js +0 -1
  64. package/dist/src/utils/agents-md-compiler.js.map +1 -1
  65. package/dist/src/utils/state-cleanup.d.ts +19 -0
  66. package/dist/src/utils/state-cleanup.d.ts.map +1 -0
  67. package/dist/src/utils/state-cleanup.js +61 -0
  68. package/dist/src/utils/state-cleanup.js.map +1 -0
  69. package/package.json +1 -1
  70. package/plugins/specweave/PLUGIN.md +0 -1
  71. package/plugins/specweave/commands/brownfield-analyzer.md +0 -10
  72. package/plugins/specweave/commands/brownfield-onboarder.md +0 -10
  73. package/plugins/specweave/commands/export-skills.md +0 -10
  74. package/plugins/specweave/commands/plugin-validator.md +0 -10
  75. package/plugins/specweave/hooks/stop-reflect.sh +4 -2
  76. package/plugins/specweave/hooks/user-prompt-submit.sh +29 -68
  77. package/plugins/specweave/hooks/v2/dispatchers/session-start.sh +0 -3
  78. package/plugins/specweave/skills/architect/SKILL.md +2 -6
  79. package/plugins/specweave/skills/archive-increments/SKILL.md +0 -10
  80. package/plugins/specweave/skills/auto/SKILL.md +4 -0
  81. package/plugins/specweave/skills/cancel-auto/SKILL.md +5 -1
  82. package/plugins/specweave/skills/code-review/SKILL.md +1 -11
  83. package/plugins/specweave/skills/code-simplifier/SKILL.md +3 -7
  84. package/plugins/specweave/skills/do/SKILL.md +6 -2
  85. package/plugins/specweave/skills/docs/SKILL.md +5 -8
  86. package/plugins/specweave/skills/docs-updater/SKILL.md +4 -10
  87. package/plugins/specweave/skills/done/SKILL.md +6 -3
  88. package/plugins/specweave/skills/framework/SKILL.md +4 -10
  89. package/plugins/specweave/skills/grill/SKILL.md +7 -12
  90. package/plugins/specweave/skills/increment/SKILL.md +5 -0
  91. package/plugins/specweave/skills/increment-planner/SKILL.md +4 -7
  92. package/plugins/specweave/skills/increment-work-router/SKILL.md +0 -10
  93. package/plugins/specweave/skills/judge-llm/SKILL.md +0 -11
  94. package/plugins/specweave/skills/lsp/SKILL.md +4 -10
  95. package/plugins/specweave/skills/multi-project-spec-mapper/SKILL.md +0 -10
  96. package/plugins/specweave/skills/next/SKILL.md +1 -1
  97. package/plugins/specweave/skills/plan/SKILL.md +1 -1
  98. package/plugins/specweave/skills/pm/SKILL.md +6 -11
  99. package/plugins/specweave/skills/pm-closure-validation/SKILL.md +0 -10
  100. package/plugins/specweave/skills/progress/SKILL.md +5 -1
  101. package/plugins/specweave/skills/progress-sync/SKILL.md +2 -11
  102. package/plugins/specweave/skills/save/SKILL.md +6 -1
  103. package/plugins/specweave/skills/security/SKILL.md +2 -6
  104. package/plugins/specweave/skills/security-patterns/SKILL.md +4 -10
  105. package/plugins/specweave/skills/smart-reopen-detector/SKILL.md +0 -10
  106. package/plugins/specweave/skills/spec-generator/SKILL.md +0 -10
  107. package/plugins/specweave/skills/tdd-cycle/SKILL.md +5 -1
  108. package/plugins/specweave/skills/tdd-green/SKILL.md +5 -1
  109. package/plugins/specweave/skills/tdd-orchestrator/SKILL.md +4 -10
  110. package/plugins/specweave/skills/tdd-red/SKILL.md +5 -1
  111. package/plugins/specweave/skills/tdd-refactor/SKILL.md +1 -1
  112. package/plugins/specweave/skills/team-build/SKILL.md +1 -1
  113. package/plugins/specweave/skills/team-lead/SKILL.md +3 -3
  114. package/plugins/specweave/skills/test-aware-planner/SKILL.md +0 -10
  115. package/plugins/specweave/skills/umbrella-repo-detector/SKILL.md +0 -10
  116. package/plugins/specweave/skills/update-instructions/SKILL.md +0 -10
  117. package/plugins/specweave/skills/validate/SKILL.md +6 -1
  118. package/plugins/specweave-github/commands/close.md +2 -2
  119. package/src/templates/CLAUDE.md.template +1 -1
  120. package/src/templates/docs/adr-template.md +1 -1
  121. package/src/templates/docs/hld-template.md +1 -1
  122. package/src/templates/docs/lld-template.md +2 -2
  123. package/src/templates/docs/rfc-template.md +1 -1
  124. package/src/templates/docs/spec-template.md +1 -1
  125. package/dist/src/core/reflection/skill-memory-injector.d.ts +0 -42
  126. package/dist/src/core/reflection/skill-memory-injector.d.ts.map +0 -1
  127. package/dist/src/core/reflection/skill-memory-injector.js +0 -67
  128. package/dist/src/core/reflection/skill-memory-injector.js.map +0 -1
  129. package/plugins/specweave/commands/skill.md +0 -620
  130. package/plugins/specweave/skills/tech-lead/SKILL.md +0 -25
  131. package/plugins/specweave/templates/coding-standards.md.template +0 -535
  132. package/plugins/specweave/templates/hookify/README.md +0 -47
  133. package/plugins/specweave/templates/hookify/hookify.block-force-push.local.md +0 -19
  134. package/plugins/specweave/templates/hookify/hookify.block-metadata-status.local.md +0 -18
  135. package/plugins/specweave/templates/hookify/hookify.block-secrets.local.md +0 -26
  136. package/plugins/specweave/templates/hookify/hookify.require-tests.local.md +0 -22
  137. package/plugins/specweave/templates/hookify/hookify.warn-dangerous-rm.local.md +0 -23
  138. package/plugins/specweave/templates/hookify/hookify.warn-root-files.local.md +0 -21
@@ -1,18 +1,15 @@
1
1
  ---
2
- description: Browse and load SpecWeave living docs (public, internal, architecture, ADRs). Use when saying "show docs", "browse docs", "find docs about", "what docs exist", "load docs", "read ADR", "architecture docs", "troubleshooting docs". Args: [topic] [--public] [--internal] [--adr] [--list].
2
+ description: Browse and load SpecWeave living docs (public, internal, architecture, ADRs). Use when saying "show docs", "browse docs", "find docs about", "load docs", or "read ADR".
3
+ argument-hint: "[topic] [--public] [--internal] [--adr] [--list]"
3
4
  ---
4
5
 
5
6
  # Living Docs Browser
6
7
 
7
- Browse, search, and load SpecWeave living documentation into the conversation.
8
-
9
- ## Project-Specific Learnings
8
+ ## Project Overrides
10
9
 
11
- Before starting work, check for project-specific learnings:
10
+ !`s="docs"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
12
11
 
13
- ```bash
14
- cat .specweave/skill-memories/docs.md 2>/dev/null || echo "No project learnings yet"
15
- ```
12
+ Browse, search, and load SpecWeave living documentation into the conversation.
16
13
 
17
14
  ## Documentation Structure
18
15
 
@@ -5,6 +5,10 @@ user-invocable: false
5
5
 
6
6
  # Documentation Updater
7
7
 
8
+ ## Project Overrides
9
+
10
+ !`s="docs-updater"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
11
+
8
12
  Updates product documentation (.specweave/docs/) based on implementation progress.
9
13
 
10
14
  ## When to Use
@@ -60,14 +64,4 @@ Updates product documentation (.specweave/docs/) based on implementation progres
60
64
  - Keep examples in sync with actual code
61
65
  - Don't over-document - focus on what users need
62
66
 
63
- ## Project-Specific Learnings
64
-
65
- **Before starting work, check for project-specific learnings:**
66
-
67
- ```bash
68
- # Check if skill memory exists for this skill
69
- cat .specweave/skill-memories/docs-updater.md 2>/dev/null || echo "No project learnings yet"
70
- ```
71
-
72
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
73
67
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- disable-model-invocation: true
3
- description: Close increment with PM validation - checks tasks, tests, and docs before closing
2
+ description: Close increment with PM 3-gate validation (tasks, tests, docs). Use when all tasks complete and saying "close increment", "we're done", or "finish up".
3
+ argument-hint: "<increment-id>"
4
4
  hooks:
5
5
  Stop:
6
6
  - hooks:
@@ -10,6 +10,10 @@ hooks:
10
10
 
11
11
  # Close Increment (PM Validated)
12
12
 
13
+ ## Project Overrides
14
+
15
+ !`s="done"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
16
+
13
17
  **Product Manager-Led Closure**: PM validates tasks, tests, and docs before closing.
14
18
 
15
19
  You are acting as the Product Manager to validate increment completion before closure. You must check all 3 gates: tasks done, tests passing, and docs updated.
@@ -1506,7 +1510,6 @@ Check progress: /list-increments
1506
1510
 
1507
1511
  - `pm`: Product Manager agent (validates completion)
1508
1512
  - `sw-testing:qa-engineer`: QA Engineer agent (validates tests)
1509
- - `tech-lead`: Tech Lead agent (validates code quality)
1510
1513
  - `docs-writer`: Documentation writer (validates docs)
1511
1514
 
1512
1515
  ---
@@ -6,6 +6,10 @@ user-invocable: false
6
6
 
7
7
  # SpecWeave Framework Expert
8
8
 
9
+ ## Project Overrides
10
+
11
+ !`s="framework"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
12
+
9
13
  I am an expert on the SpecWeave framework - a spec-driven development framework for Claude Code (and other AI coding assistants). I have deep knowledge of its structure, rules, conventions, and best practices.
10
14
 
11
15
  ## Core Philosophy
@@ -524,14 +528,4 @@ I focus on **framework knowledge**. For **increment execution**, use the PM agen
524
528
 
525
529
  Let me help you understand and use SpecWeave correctly! 🚀
526
530
 
527
- ## Project-Specific Learnings
528
-
529
- **Before starting work, check for project-specific learnings:**
530
-
531
- ```bash
532
- # Check if skill memory exists for this skill
533
- cat .specweave/skill-memories/framework.md 2>/dev/null || echo "No project learnings yet"
534
- ```
535
-
536
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
537
531
 
@@ -1,11 +1,16 @@
1
1
  ---
2
- description: Critical code review and quality interrogation before increment completion. Use when finishing a feature, before /sw:done, or when saying "grill the code", "review my work", "critique implementation". Acts as a demanding senior engineer who finds issues before users do.
2
+ description: Critical code review and quality interrogation before increment completion. Use when finishing a feature, before /sw:done, or when saying "grill the code", "review my work", "critique implementation".
3
+ argument-hint: "[increment-id]"
3
4
  allowed-tools: Read, Grep, Glob, Bash
4
5
  context: fork
5
6
  ---
6
7
 
7
8
  # Code Grill Expert
8
9
 
10
+ ## Project Overrides
11
+
12
+ !`s="grill"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
13
+
9
14
  I'm a demanding senior engineer who stress-tests your implementation before it ships. My job is to find issues NOW, before users do. I'm not here to validate - I'm here to CHALLENGE.
10
15
 
11
16
  ## When to Use This Skill
@@ -24,7 +29,7 @@ Call me when you need to:
24
29
  This skill is the **PRE-SHIP quality gate**. Focuses on: correctness, edge cases, performance issues, error handling.
25
30
 
26
31
  - For deep security audits → use `/sw:security`
27
- - For design pattern guidance → use `/sw:tech-lead`
32
+ - For design pattern guidance → use `/sw:architect`
28
33
  - For code style/clarity → use `/sw:code-simplifier`
29
34
 
30
35
  ## My Mindset: The Demanding Reviewer
@@ -321,13 +326,3 @@ The grill is uncomfortable. That's the point. Better to sweat here than in front
321
326
 
322
327
  ---
323
328
 
324
- ## Project-Specific Learnings
325
-
326
- **Before starting work, check for project-specific learnings:**
327
-
328
- ```bash
329
- # Check if skill memory exists for this skill
330
- cat .specweave/skill-memories/grill.md 2>/dev/null || echo "No project learnings yet"
331
- ```
332
-
333
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  disable-model-invocation: true
3
3
  description: Plan new Product Increment. Use when starting new features, hotfixes, or development work that needs specification.
4
+ argument-hint: "<feature-description>"
4
5
  hooks:
5
6
  PreToolUse:
6
7
  - matcher: Write
@@ -18,6 +19,10 @@ hooks:
18
19
 
19
20
  # Plan Product Increment
20
21
 
22
+ ## Project Overrides
23
+
24
+ !`s="increment"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
25
+
21
26
  **Orchestrator for increment planning** - handles pre-flight checks, then delegates to `sw:increment-planner` skill.
22
27
 
23
28
  ## Workflow
@@ -19,6 +19,10 @@ hooks:
19
19
 
20
20
  # Increment Planner Skill
21
21
 
22
+ ## Project Overrides
23
+
24
+ !`s="increment-planner"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
25
+
22
26
  **Self-contained increment planning for ANY user project after `specweave init`.**
23
27
 
24
28
  ## Workflow Overview
@@ -196,10 +200,3 @@ Skill({ skill: "sw:increment-planner", args: "--description=\"Add auth\"" })
196
200
  /sw:increment "Add user authentication"
197
201
  ```
198
202
 
199
- ## Project-Specific Learnings
200
-
201
- **Before starting work, check for project-specific learnings:**
202
-
203
- ```bash
204
- cat .specweave/skill-memories/increment-planner.md 2>/dev/null || echo "No project learnings yet"
205
- ```
@@ -531,14 +531,4 @@ Users can override auto-routing with explicit instructions:
531
531
 
532
532
  This skill bridges planning → execution by auto-detecting implementation intent.
533
533
 
534
- ## Project-Specific Learnings
535
-
536
- **Before starting work, check for project-specific learnings:**
537
-
538
- ```bash
539
- # Check if skill memory exists for this skill
540
- cat .specweave/skill-memories/increment-work-router.md 2>/dev/null || echo "No project learnings yet"
541
- ```
542
-
543
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
544
534
 
@@ -132,17 +132,6 @@ Progress is **always logged** to `.specweave/logs/judge-llm.log`.
132
132
  3. Increase timeout with `--timeout` if legitimately slow
133
133
  4. Result will show `timedOut: true` if aborted
134
134
 
135
- ## Project-Specific Learnings
136
-
137
- **Before starting work, check for project-specific learnings:**
138
-
139
- ```bash
140
- # Check if skill memory exists for this skill
141
- cat .specweave/skill-memories/judge-llm.md 2>/dev/null || echo "No project learnings yet"
142
- ```
143
-
144
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development.
145
-
146
135
  ## Related
147
136
 
148
137
  - `/sw:grill` - Confidence-scored pre-ship quality gate (in-session)
@@ -8,6 +8,10 @@ user-invocable: false
8
8
 
9
9
  # LSP Code Intelligence
10
10
 
11
+ ## Project Overrides
12
+
13
+ !`s="lsp"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
14
+
11
15
  Semantic code navigation and analysis.
12
16
 
13
17
  ## Current Status (v2.1.0+)
@@ -200,13 +204,3 @@ Features:
200
204
  3. Provides real semantic analysis
201
205
  4. Works in any environment (CI/CD, Claude Code, scripts)
202
206
 
203
- ## Project-Specific Learnings
204
-
205
- **Before starting work, check for project-specific learnings:**
206
-
207
- ```bash
208
- # Check if skill memory exists for this skill
209
- cat .specweave/skill-memories/lsp.md 2>/dev/null || echo "No project learnings yet"
210
- ```
211
-
212
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
@@ -420,14 +420,4 @@ Project Distribution:
420
420
 
421
421
  Based on: Increment 0020-multi-project-intelligent-sync
422
422
 
423
- ## Project-Specific Learnings
424
-
425
- **Before starting work, check for project-specific learnings:**
426
-
427
- ```bash
428
- # Check if skill memory exists for this skill
429
- cat .specweave/skill-memories/multi-project-spec-mapper.md 2>/dev/null || echo "No project learnings yet"
430
- ```
431
-
432
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
433
423
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Smart increment transition - auto-close current if ready, intelligently suggest next work (backlog or new feature)
2
+ description: Close current increment if ready and suggest next work. Use when saying "what's next", "next increment", or "move on".
3
3
  ---
4
4
 
5
5
  # Next Increment (Smart Workflow Transition)
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Generate plan.md and tasks.md for PLANNING increment using Architect Agent
2
+ description: Generate plan.md and tasks.md for increment. Use when saying "create plan", "generate tasks", or "plan the increment".
3
3
  ---
4
4
 
5
5
  # /sw:plan - Generate Implementation Plan
@@ -1,5 +1,6 @@
1
1
  ---
2
- description: Product Manager for spec-driven development with SpecWeave conventions. Use when writing user stories, defining acceptance criteria, planning MVPs, or prioritizing features. Creates specs with proper AC-IDs, manages requirements, and maintains product roadmaps.
2
+ description: Product Manager for spec-driven development. Use when saying "write specs", "define requirements", "plan MVP", or "prioritize features".
3
+ argument-hint: "[topic]"
3
4
  allowed-tools: Read, Write, Grep, Glob
4
5
  context: fork
5
6
  model: opus
@@ -7,6 +8,10 @@ model: opus
7
8
 
8
9
  # Product Manager Skill
9
10
 
11
+ ## Project Overrides
12
+
13
+ !`s="pm"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
14
+
10
15
  ## Overview
11
16
 
12
17
  You are a Product Manager with expertise in spec-driven development. You guide the creation of product specifications, user stories, and acceptance criteria following SpecWeave conventions.
@@ -114,14 +119,4 @@ This skill auto-activates when you mention:
114
119
  - Prioritization (RICE, MoSCoW)
115
120
  - PRD, product specs, story mapping
116
121
 
117
- ## Project-Specific Learnings
118
-
119
- **Before starting work, check for project-specific learnings:**
120
-
121
- ```bash
122
- # Check if skill memory exists for this skill
123
- cat .specweave/skill-memories/pm.md 2>/dev/null || echo "No project learnings yet"
124
- ```
125
-
126
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
127
122
 
@@ -539,14 +539,4 @@ When approving closure, summarize what was delivered:
539
539
 
540
540
  **Remember**: I'm here to ensure quality, not to block progress. If an increment isn't ready, I'll tell you exactly what needs fixing and how long it will take. My goal is to ship high-quality increments that deliver real value.
541
541
 
542
- ## Project-Specific Learnings
543
-
544
- **Before starting work, check for project-specific learnings:**
545
-
546
- ```bash
547
- # Check if skill memory exists for this skill
548
- cat .specweave/skill-memories/pm-closure-validation.md 2>/dev/null || echo "No project learnings yet"
549
- ```
550
-
551
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
552
542
 
@@ -1,10 +1,14 @@
1
1
  ---
2
- description: Show detailed progress for active increments with task/AC completion, priority, and type
2
+ description: Show progress for active increments with task/AC completion. Use when saying "show progress", "status", or "how far along".
3
3
  argument-hint: "[incrementId]"
4
4
  ---
5
5
 
6
6
  # Increment Progress
7
7
 
8
+ ## Project Overrides
9
+
10
+ !`s="progress"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
11
+
8
12
  Shows detailed progress information for active increments including:
9
13
  - **Task completion** with progress bars
10
14
  - **Acceptance Criteria (AC)** completion percentages
@@ -1,5 +1,6 @@
1
1
  ---
2
- description: Comprehensive progress sync - tasks.md to living docs to external tools (GitHub/JIRA/ADO). AUTO-CREATES missing external issues. Use when syncing progress, saying "sync progress", "update all systems", or "push progress to GitHub". Args: [INCREMENT_ID] [--dry-run] [--no-create] [--no-github] [--no-jira].
2
+ description: Sync progress from tasks.md to living docs and external tools (GitHub/JIRA/ADO). Use when saying "sync progress" or "push progress".
3
+ argument-hint: "[INCREMENT_ID] [--dry-run] [--no-create] [--no-github] [--no-jira]"
3
4
  ---
4
5
 
5
6
  # Progress Sync (Multi-System)
@@ -461,14 +462,4 @@ Ask me:
461
462
  - "Why did my GitHub sync fail?"
462
463
  - "When should I use --dry-run?"
463
464
 
464
- ## Project-Specific Learnings
465
-
466
- **Before starting work, check for project-specific learnings:**
467
-
468
- ```bash
469
- # Check if skill memory exists for this skill
470
- cat .specweave/skill-memories/progress-sync.md 2>/dev/null || echo "No project learnings yet"
471
- ```
472
-
473
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
474
465
 
@@ -1,10 +1,15 @@
1
1
  ---
2
2
  disable-model-invocation: true
3
- description: SMART save - auto-generates commit messages, handles git pull/merge/rebase automatically, resolves divergent branches, stashes dirty work. Works for single repos and umbrella multi-repo setups. Run with no args for fully automatic save.
3
+ description: Smart auto-commit with remote sync (handles pull/rebase/stash, auto-generates messages, supports multi-repo).
4
+ argument-hint: "[message]"
4
5
  ---
5
6
 
6
7
  # /sw:save - Smart Save with Auto-Sync
7
8
 
9
+ ## Project Overrides
10
+
11
+ !`s="save"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
12
+
8
13
  **SMART SAVE** - Handles everything automatically: commit message generation, remote sync (pull/rebase), branch setup, and push. Just run `/sw:save` and it figures out what to do!
9
14
 
10
15
  ## ⚠️ MANDATORY: Nested Repository Scanning (SpecWeave-Specific)
@@ -4,13 +4,9 @@ description: Security engineer for vulnerability assessment, penetration testing
4
4
 
5
5
  # Security Review
6
6
 
7
- ## Project-Specific Learnings
7
+ ## Project Overrides
8
8
 
9
- Before starting work, check for project-specific learnings:
10
-
11
- ```bash
12
- cat .specweave/skill-memories/security.md 2>/dev/null || echo "No project learnings yet"
13
- ```
9
+ !`s="security"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
14
10
 
15
11
  ## Security Assessment
16
12
 
@@ -6,6 +6,10 @@ user-invocable: false
6
6
 
7
7
  # Security Pattern Detector Skill
8
8
 
9
+ ## Project Overrides
10
+
11
+ !`s="security-patterns"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
12
+
9
13
  ## Overview
10
14
 
11
15
  This skill provides real-time security pattern detection based on Anthropic's official security-guidance plugin. It identifies potentially dangerous coding patterns BEFORE they're committed.
@@ -191,14 +195,4 @@ Some patterns may be false positives:
191
195
 
192
196
  Always check the context before blocking.
193
197
 
194
- ## Project-Specific Learnings
195
-
196
- **Before starting work, check for project-specific learnings:**
197
-
198
- ```bash
199
- # Check if skill memory exists for this skill
200
- cat .specweave/skill-memories/security-patterns.md 2>/dev/null || echo "No project learnings yet"
201
- ```
202
-
203
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
204
198
 
@@ -242,14 +242,4 @@ I'm successful when:
242
242
  **Commands**: `/sw:reopen`, `/sw:status`
243
243
  **Related Skills**: `increment-planner`, `tdd-workflow`
244
244
 
245
- ## Project-Specific Learnings
246
-
247
- **Before starting work, check for project-specific learnings:**
248
-
249
- ```bash
250
- # Check if skill memory exists for this skill
251
- cat .specweave/skill-memories/smart-reopen-detector.md 2>/dev/null || echo "No project learnings yet"
252
- ```
253
-
254
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
255
245
 
@@ -671,14 +671,4 @@ With project-scoped stories:
671
671
 
672
672
  Based on: Flexible Spec Generator (V2) - context-aware, non-rigid templates
673
673
 
674
- ## Project-Specific Learnings
675
-
676
- **Before starting work, check for project-specific learnings:**
677
-
678
- ```bash
679
- # Check if skill memory exists for this skill
680
- cat .specweave/skill-memories/spec-generator.md 2>/dev/null || echo "No project learnings yet"
681
- ```
682
-
683
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
684
674
 
@@ -1,9 +1,13 @@
1
1
  ---
2
- description: Execute comprehensive TDD workflow with strict red-green-refactor discipline. Orchestrates test-first development with automated validation gates at each phase.
2
+ description: Execute full TDD red-green-refactor cycle with validation gates. Use when saying "TDD cycle", "test-driven development", or "full TDD workflow".
3
3
  ---
4
4
 
5
5
  # TDD Cycle - Comprehensive Test-Driven Development
6
6
 
7
+ ## Project Overrides
8
+
9
+ !`s="tdd-cycle"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
10
+
7
11
  Execute a comprehensive Test-Driven Development (TDD) workflow with strict red-green-refactor discipline:
8
12
 
9
13
  [Extended thinking: This workflow enforces test-first development through coordinated agent orchestration. Each phase of the TDD cycle is strictly enforced with fail-first verification, incremental implementation, and continuous refactoring. The workflow supports both single test and test suite approaches with configurable coverage thresholds.]
@@ -1,9 +1,13 @@
1
1
  ---
2
- description: Implement minimal code to make failing tests pass in TDD green phase. Focuses on simplicity and making tests green without over-engineering.
2
+ description: Write minimal code to make failing tests pass. Use when saying "TDD green", "make tests pass", or "implement for tests".
3
3
  ---
4
4
 
5
5
  # TDD Green Phase - Make Tests Pass
6
6
 
7
+ ## Project Overrides
8
+
9
+ !`s="tdd-green"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
10
+
7
11
  Implement minimal code to make failing tests pass in TDD green phase:
8
12
 
9
13
  [Extended thinking: This tool uses the test-automator agent to implement the minimal code necessary to make tests pass. It focuses on simplicity, avoiding over-engineering while ensuring all tests become green.]
@@ -6,6 +6,10 @@ user-invocable: false
6
6
 
7
7
  # TDD Orchestrator Skill
8
8
 
9
+ ## Project Overrides
10
+
11
+ !`s="tdd-orchestrator"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
12
+
9
13
  ## Overview
10
14
 
11
15
  You are an expert TDD orchestrator specializing in comprehensive test-driven development coordination, modern TDD practices, and multi-agent workflow management. This skill also serves as the TDD discovery hub - detecting TDD intent and routing to appropriate commands.
@@ -221,14 +225,4 @@ tdd:
221
225
  **Skills**:
222
226
  - `sw-testing:qa-engineer` - Test strategy overlaps with TDD principles
223
227
 
224
- ## Project-Specific Learnings
225
-
226
- **Before starting work, check for project-specific learnings:**
227
-
228
- ```bash
229
- # Check if skill memory exists for this skill
230
- cat .specweave/skill-memories/tdd-orchestrator.md 2>/dev/null || echo "No project learnings yet"
231
- ```
232
-
233
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
234
228
 
@@ -1,9 +1,13 @@
1
1
  ---
2
- description: Write comprehensive failing tests following TDD red phase principles. Generates failing tests that properly define expected behavior.
2
+ description: Write failing tests that define expected behavior. Use when saying "TDD red", "write failing tests", or "test first".
3
3
  ---
4
4
 
5
5
  # TDD Red Phase - Write Failing Tests
6
6
 
7
+ ## Project Overrides
8
+
9
+ !`s="tdd-red"; for d in .specweave/skill-memories .claude/skill-memories "$HOME/.claude/skill-memories"; do p="$d/$s.md"; [ -f "$p" ] && awk '/^## Learnings$/{ok=1;next}/^## /{ok=0}ok' "$p" && break; done 2>/dev/null`
10
+
7
11
  Write comprehensive failing tests following TDD red phase principles.
8
12
 
9
13
  [Extended thinking: Generates failing tests that properly define expected behavior using test-automator agent.]
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Refactor code with confidence using comprehensive test safety net. Applies design patterns, improves code quality, and optimizes performance while keeping all tests green.
2
+ description: Refactor code with test safety net to improve quality. Use when saying "TDD refactor", "refactor with tests", or "improve code quality".
3
3
  ---
4
4
 
5
5
  # TDD Refactor Phase - Improve Code Quality
@@ -91,7 +91,7 @@ Three specialized reviewers examine the codebase simultaneously from different a
91
91
  | # | Role | Skill(s) | Owns | Responsibility |
92
92
  |---|------|----------|------|----------------|
93
93
  | 1 | Security | `sw:security` + `sw:security-patterns` | All files (read-only analysis) | Audit for vulnerabilities, injection vectors, auth flaws, secrets exposure, dependency CVEs |
94
- | 2 | Quality | `sw:grill` + `sw:tech-lead` + `sw:code-simplifier` | All files (read-only analysis) | Review code quality, complexity, naming, duplication, SOLID violations, performance anti-patterns |
94
+ | 2 | Quality | `sw:grill` + `sw:code-simplifier` | All files (read-only analysis) | Review code quality, complexity, naming, duplication, SOLID violations, performance anti-patterns |
95
95
  | 3 | Docs | `sw:docs-updater` | All files (read-only analysis) | Check doc coverage, stale comments, missing JSDoc, README accuracy, spec-to-code alignment |
96
96
 
97
97
  #### Execution Chain
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Orchestrate multi-agent parallel development using Claude Code Agent Teams. Spawns domain-specialized agents (frontend, backend, database, testing, security, DevOps, mobile, ML) with contract-first coordination. Activates for: team setup, parallel agents, multi-repo work, team lead, agent teams.
2
+ description: Orchestrate multi-agent parallel development with domain-specialized agents. Use when saying "team setup", "parallel agents", "team lead", or "agent teams".
3
3
  ---
4
4
 
5
5
  # Team Lead
@@ -42,7 +42,7 @@ Analyze the feature request and map affected domains to SpecWeave skills.
42
42
  | **Frontend** | `sw-frontend:frontend-architect` | `sw-frontend:nextjs`, `sw-frontend:frontend-design` | UI components, pages, client-side state |
43
43
  | **Backend** | `sw:architect` | `sw-infra:devops` | API endpoints, services, business logic |
44
44
  | **Database** | `sw:architect` | | Schema design, migrations, seed data |
45
- | **Shared/Types** | `sw:architect` | `sw:tech-lead` | TypeScript interfaces, shared constants, API contracts |
45
+ | **Shared/Types** | `sw:architect` | `sw:code-simplifier` | TypeScript interfaces, shared constants, API contracts |
46
46
  | **Testing** | `sw-testing:qa-engineer` | `sw-testing:e2e-testing`, `sw-testing:unit-testing` | Test strategy, E2E suites, integration tests |
47
47
  | **Security** | `sw:security` | `sw:security-patterns` | Auth, authorization, threat modeling, OWASP |
48
48
  | **DevOps** | `sw-infra:devops` | `sw-k8s:deployment-generate`, `sw-infra:observability` | CI/CD, Docker, K8s, monitoring |
@@ -646,7 +646,7 @@ Team Orchestration Plan (DRY RUN)
646
646
  Feature: Build checkout flow | Domains: 4
647
647
 
648
648
  Phase 1 (upstream):
649
- 1. shared-types -> sw:architect, sw:tech-lead | Increment: 0200-checkout-shared
649
+ 1. shared-types -> sw:architect, sw:code-simplifier | Increment: 0200-checkout-shared
650
650
  2. database -> sw:architect | Increment: 0201-checkout-database
651
651
 
652
652
  Phase 2 (downstream, parallel):
@@ -92,14 +92,4 @@ If umbrella.enabled in config:
92
92
  - [ ] Tasks grouped by User Story
93
93
  - [ ] Frontmatter has by_user_story map
94
94
 
95
- ## Project-Specific Learnings
96
-
97
- **Before starting work, check for project-specific learnings:**
98
-
99
- ```bash
100
- # Check if skill memory exists for this skill
101
- cat .specweave/skill-memories/test-aware-planner.md 2>/dev/null || echo "No project learnings yet"
102
- ```
103
-
104
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
105
95
 
@@ -298,14 +298,4 @@ All 4 repos will be committed and pushed with a single `/sw:save` command!
298
298
  4. **Cross-project stories get special handling** - Tagged and linked across repos
299
299
  5. **Use `/sw:save`** - Single command to save changes across all repos
300
300
 
301
- ## Project-Specific Learnings
302
-
303
- **Before starting work, check for project-specific learnings:**
304
-
305
- ```bash
306
- # Check if skill memory exists for this skill
307
- cat .specweave/skill-memories/umbrella-repo-detector.md 2>/dev/null || echo "No project learnings yet"
308
- ```
309
-
310
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
311
301
 
@@ -79,14 +79,4 @@ This will be preserved during updates!
79
79
  - `CLAUDE.md` - Claude Code instruction file
80
80
  - `AGENTS.md` - Generic AI tool instruction file
81
81
 
82
- ## Project-Specific Learnings
83
-
84
- **Before starting work, check for project-specific learnings:**
85
-
86
- ```bash
87
- # Check if skill memory exists for this skill
88
- cat .specweave/skill-memories/update-instructions.md 2>/dev/null || echo "No project learnings yet"
89
- ```
90
-
91
- Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
92
82