claude-code-pilot 3.0.0 → 3.1.0

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 (124) hide show
  1. package/README.md +76 -97
  2. package/bin/install.js +13 -13
  3. package/manifest.json +1 -1
  4. package/package.json +1 -1
  5. package/src/agents/doc-updater.md +1 -1
  6. package/src/agents/gan-evaluator.md +209 -0
  7. package/src/agents/gan-generator.md +131 -0
  8. package/src/agents/gan-planner.md +99 -0
  9. package/src/agents/harness-optimizer.md +35 -0
  10. package/src/agents/loop-operator.md +36 -0
  11. package/src/agents/opensource-forker.md +198 -0
  12. package/src/agents/opensource-packager.md +249 -0
  13. package/src/agents/opensource-sanitizer.md +188 -0
  14. package/src/agents/performance-optimizer.md +446 -0
  15. package/src/available-rules/README.md +1 -1
  16. package/src/commands/{aside.md → ccp/aside.md} +14 -13
  17. package/src/commands/{build-fix.md → ccp/build-fix.md} +5 -0
  18. package/src/commands/{checkpoint.md → ccp/checkpoint.md} +12 -7
  19. package/src/commands/{code-review.md → ccp/code-review.md} +5 -0
  20. package/src/commands/{context-budget.md → ccp/context-budget.md} +2 -1
  21. package/src/commands/{cpp-build.md → ccp/cpp-build.md} +6 -5
  22. package/src/commands/{cpp-review.md → ccp/cpp-review.md} +7 -6
  23. package/src/commands/{cpp-test.md → ccp/cpp-test.md} +6 -5
  24. package/src/commands/ccp/docs-update.md +48 -0
  25. package/src/commands/{docs.md → ccp/docs.md} +4 -3
  26. package/src/commands/{e2e.md → ccp/e2e.md} +7 -6
  27. package/src/commands/{eval.md → ccp/eval.md} +10 -5
  28. package/src/commands/{evolve.md → ccp/evolve.md} +3 -3
  29. package/src/commands/{go-build.md → ccp/go-build.md} +6 -5
  30. package/src/commands/{go-review.md → ccp/go-review.md} +7 -6
  31. package/src/commands/{go-test.md → ccp/go-test.md} +6 -5
  32. package/src/commands/{gradle-build.md → ccp/gradle-build.md} +1 -0
  33. package/src/commands/{harness-audit.md → ccp/harness-audit.md} +6 -1
  34. package/src/commands/{kotlin-build.md → ccp/kotlin-build.md} +6 -5
  35. package/src/commands/{kotlin-review.md → ccp/kotlin-review.md} +7 -6
  36. package/src/commands/{kotlin-test.md → ccp/kotlin-test.md} +6 -5
  37. package/src/commands/{learn.md → ccp/learn.md} +7 -2
  38. package/src/commands/{model-route.md → ccp/model-route.md} +6 -1
  39. package/src/commands/{orchestrate.md → ccp/orchestrate.md} +4 -3
  40. package/src/commands/{plan.md → ccp/plan.md} +6 -5
  41. package/src/commands/ccp/profile-user.md +46 -0
  42. package/src/commands/{prompt-optimize.md → ccp/prompt-optimize.md} +3 -2
  43. package/src/commands/{prune.md → ccp/prune.md} +4 -4
  44. package/src/commands/{python-review.md → ccp/python-review.md} +7 -6
  45. package/src/commands/{quality-gate.md → ccp/quality-gate.md} +6 -1
  46. package/src/commands/{refactor-clean.md → ccp/refactor-clean.md} +5 -0
  47. package/src/commands/{resume-session.md → ccp/resume-session.md} +9 -8
  48. package/src/commands/ccp/review.md +37 -0
  49. package/src/commands/{rules-distill.md → ccp/rules-distill.md} +2 -1
  50. package/src/commands/{rust-build.md → ccp/rust-build.md} +6 -5
  51. package/src/commands/{rust-review.md → ccp/rust-review.md} +7 -6
  52. package/src/commands/{rust-test.md → ccp/rust-test.md} +6 -5
  53. package/src/commands/{save-session.md → ccp/save-session.md} +2 -1
  54. package/src/commands/ccp/secure-phase.md +35 -0
  55. package/src/commands/{sessions.md → ccp/sessions.md} +29 -24
  56. package/src/commands/{setup-pm.md → ccp/setup-pm.md} +1 -0
  57. package/src/commands/{setup-refresh.md → ccp/setup-refresh.md} +4 -3
  58. package/src/commands/{setup.md → ccp/setup.md} +24 -23
  59. package/src/commands/{skill-create.md → ccp/skill-create.md} +8 -8
  60. package/src/commands/{skill-health.md → ccp/skill-health.md} +5 -5
  61. package/src/commands/{tdd.md → ccp/tdd.md} +9 -8
  62. package/src/commands/{test-coverage.md → ccp/test-coverage.md} +5 -0
  63. package/src/commands/{tool-guide.md → ccp/tool-guide.md} +2 -1
  64. package/src/commands/{update-codemaps.md → ccp/update-codemaps.md} +5 -0
  65. package/src/commands/{update-docs.md → ccp/update-docs.md} +5 -0
  66. package/src/commands/{verify.md → ccp/verify.md} +5 -0
  67. package/src/commands/ccp/workstreams.md +68 -0
  68. package/src/examples/CLAUDE.md +4 -4
  69. package/src/examples/django-api-CLAUDE.md +5 -5
  70. package/src/examples/go-microservice-CLAUDE.md +6 -6
  71. package/src/examples/rust-api-CLAUDE.md +4 -4
  72. package/src/examples/saas-nextjs-CLAUDE.md +8 -8
  73. package/src/hooks/session-start.js +1 -1
  74. package/src/pilot/references/mcp-servers.json +1 -1
  75. package/src/pilot/workflows/docs-update.md +1165 -0
  76. package/src/pilot/workflows/help.md +48 -56
  77. package/src/pilot/workflows/profile-user.md +452 -0
  78. package/src/pilot/workflows/review.md +244 -0
  79. package/src/pilot/workflows/secure-phase.md +164 -0
  80. package/src/rules/common/code-review.md +124 -0
  81. package/src/rules/zh/README.md +108 -0
  82. package/src/rules/zh/agents.md +50 -0
  83. package/src/rules/zh/code-review.md +124 -0
  84. package/src/rules/zh/coding-style.md +48 -0
  85. package/src/rules/zh/development-workflow.md +44 -0
  86. package/src/rules/zh/git-workflow.md +24 -0
  87. package/src/rules/zh/hooks.md +30 -0
  88. package/src/rules/zh/patterns.md +31 -0
  89. package/src/rules/zh/performance.md +55 -0
  90. package/src/rules/zh/security.md +29 -0
  91. package/src/rules/zh/testing.md +29 -0
  92. package/src/skills/autonomous-agent-harness/SKILL.md +267 -0
  93. package/src/skills/autonomous-loops/SKILL.md +610 -0
  94. package/src/skills/bun-runtime/SKILL.md +84 -0
  95. package/src/skills/content-hash-cache-pattern/SKILL.md +161 -0
  96. package/src/skills/context-budget/SKILL.md +3 -3
  97. package/src/skills/continuous-learning-v2/SKILL.md +4 -4
  98. package/src/skills/continuous-learning-v2/agents/observer.md +1 -1
  99. package/src/skills/cost-aware-llm-pipeline/SKILL.md +183 -0
  100. package/src/skills/design-system/SKILL.md +82 -0
  101. package/src/skills/eval-harness/SKILL.md +270 -0
  102. package/src/skills/flutter-dart-code-review/SKILL.md +435 -0
  103. package/src/skills/gan-style-harness/SKILL.md +278 -0
  104. package/src/skills/git-workflow/SKILL.md +715 -0
  105. package/src/skills/hexagonal-architecture/SKILL.md +276 -0
  106. package/src/skills/iterative-retrieval/SKILL.md +211 -0
  107. package/src/skills/laravel-plugin-discovery/SKILL.md +229 -0
  108. package/src/skills/nextjs-turbopack/SKILL.md +44 -0
  109. package/src/skills/nuxt4-patterns/SKILL.md +100 -0
  110. package/src/skills/opensource-pipeline/SKILL.md +255 -0
  111. package/src/skills/perl-security/SKILL.md +503 -0
  112. package/src/skills/project-flow-ops/SKILL.md +111 -0
  113. package/src/skills/project-guidelines-example/SKILL.md +349 -0
  114. package/src/skills/prompt-optimizer/SKILL.md +38 -38
  115. package/src/skills/pytorch-patterns/SKILL.md +396 -0
  116. package/src/skills/regex-vs-llm-structured-text/SKILL.md +220 -0
  117. package/src/skills/repo-scan/SKILL.md +78 -0
  118. package/src/skills/rules-distill/SKILL.md +264 -0
  119. package/src/skills/rules-distill/scripts/scan-rules.sh +58 -0
  120. package/src/skills/rules-distill/scripts/scan-skills.sh +129 -0
  121. package/src/skills/swift-concurrency-6-2/SKILL.md +216 -0
  122. package/src/skills/token-budget-advisor/SKILL.md +133 -0
  123. package/src/skills/verification-loop/SKILL.md +1 -1
  124. package/src/skills/workspace-surface-audit/SKILL.md +125 -0
@@ -1,10 +1,15 @@
1
+ ---
2
+ name: ccp:sessions
3
+ description: "Manage Claude Code session history - list, load, alias, and edit sessions"
4
+ ---
5
+
1
6
  # Sessions Command
2
7
 
3
8
  Manage Claude Code session history - list, load, alias, and edit sessions stored in `~/.claude/sessions/`.
4
9
 
5
10
  ## Usage
6
11
 
7
- `/sessions [list|load|alias|info|help] [options]`
12
+ `/ccp:sessions [list|load|alias|info|help] [options]`
8
13
 
9
14
  ## Actions
10
15
 
@@ -13,11 +18,11 @@ Manage Claude Code session history - list, load, alias, and edit sessions stored
13
18
  Display all sessions with metadata, filtering, and pagination.
14
19
 
15
20
  ```bash
16
- /sessions # List all sessions (default)
17
- /sessions list # Same as above
18
- /sessions list --limit 10 # Show 10 sessions
19
- /sessions list --date 2026-02-01 # Filter by date
20
- /sessions list --search abc # Search by session ID
21
+ /ccp:sessions # List all sessions (default)
22
+ /ccp:sessions list # Same as above
23
+ /ccp:sessions list --limit 10 # Show 10 sessions
24
+ /ccp:sessions list --date 2026-02-01 # Filter by date
25
+ /ccp:sessions list --search abc # Search by session ID
21
26
  ```
22
27
 
23
28
  **Script:**
@@ -53,10 +58,10 @@ for (const s of result.sessions) {
53
58
  Load and display a session's content (by ID or alias).
54
59
 
55
60
  ```bash
56
- /sessions load <id|alias> # Load session
57
- /sessions load 2026-02-01 # By date (for no-id sessions)
58
- /sessions load a1b2c3d4 # By short ID
59
- /sessions load my-alias # By alias name
61
+ /ccp:sessions load <id|alias> # Load session
62
+ /ccp:sessions load 2026-02-01 # By date (for no-id sessions)
63
+ /ccp:sessions load a1b2c3d4 # By short ID
64
+ /ccp:sessions load my-alias # By alias name
60
65
  ```
61
66
 
62
67
  **Script:**
@@ -116,8 +121,8 @@ if (session.metadata.lastUpdated) {
116
121
  Create a memorable alias for a session.
117
122
 
118
123
  ```bash
119
- /sessions alias <id> <name> # Create alias
120
- /sessions alias 2026-02-01 today-work # Create alias named "today-work"
124
+ /ccp:sessions alias <id> <name> # Create alias
125
+ /ccp:sessions alias 2026-02-01 today-work # Create alias named "today-work"
121
126
  ```
122
127
 
123
128
  **Script:**
@@ -130,7 +135,7 @@ const sessionId = process.argv[1];
130
135
  const aliasName = process.argv[2];
131
136
 
132
137
  if (!sessionId || !aliasName) {
133
- console.log('Usage: /sessions alias <id> <name>');
138
+ console.log('Usage: /ccp:sessions alias <id> <name>');
134
139
  process.exit(1);
135
140
  }
136
141
 
@@ -156,8 +161,8 @@ if (result.success) {
156
161
  Delete an existing alias.
157
162
 
158
163
  ```bash
159
- /sessions alias --remove <name> # Remove alias
160
- /sessions unalias <name> # Same as above
164
+ /ccp:sessions alias --remove <name> # Remove alias
165
+ /ccp:sessions unalias <name> # Same as above
161
166
  ```
162
167
 
163
168
  **Script:**
@@ -167,7 +172,7 @@ const aa = require((process.env.CCP_CLAUDE_DIR||require('path').join(require('os
167
172
 
168
173
  const aliasName = process.argv[1];
169
174
  if (!aliasName) {
170
- console.log('Usage: /sessions alias --remove <name>');
175
+ console.log('Usage: /ccp:sessions alias --remove <name>');
171
176
  process.exit(1);
172
177
  }
173
178
 
@@ -186,7 +191,7 @@ if (result.success) {
186
191
  Show detailed information about a session.
187
192
 
188
193
  ```bash
189
- /sessions info <id|alias> # Show session details
194
+ /ccp:sessions info <id|alias> # Show session details
190
195
  ```
191
196
 
192
197
  **Script:**
@@ -233,7 +238,7 @@ if (aliases.length > 0) {
233
238
  Show all session aliases.
234
239
 
235
240
  ```bash
236
- /sessions aliases # List all aliases
241
+ /ccp:sessions aliases # List all aliases
237
242
  ```
238
243
 
239
244
  **Script:**
@@ -279,22 +284,22 @@ $ARGUMENTS:
279
284
 
280
285
  ```bash
281
286
  # List all sessions
282
- /sessions list
287
+ /ccp:sessions list
283
288
 
284
289
  # Create an alias for today's session
285
- /sessions alias 2026-02-01 today
290
+ /ccp:sessions alias 2026-02-01 today
286
291
 
287
292
  # Load session by alias
288
- /sessions load today
293
+ /ccp:sessions load today
289
294
 
290
295
  # Show session info
291
- /sessions info today
296
+ /ccp:sessions info today
292
297
 
293
298
  # Remove alias
294
- /sessions alias --remove today
299
+ /ccp:sessions alias --remove today
295
300
 
296
301
  # List all aliases
297
- /sessions aliases
302
+ /ccp:sessions aliases
298
303
  ```
299
304
 
300
305
  ## Notes
@@ -1,4 +1,5 @@
1
1
  ---
2
+ name: ccp:setup-pm
2
3
  description: Configure your preferred package manager (npm/pnpm/yarn/bun)
3
4
  disable-model-invocation: true
4
5
  ---
@@ -1,4 +1,5 @@
1
1
  ---
2
+ name: ccp:setup-refresh
2
3
  description: "Re-scan codebase and update CLAUDE.md, rules, directory CLAUDE.md files, and architecture docs after major changes"
3
4
  ---
4
5
 
@@ -23,10 +24,10 @@ Present differences.
23
24
  - Scan for recognized directories: `src/`, `test/`, `tests/`, `lib/`, `app/`, `api/`, `scripts/`, `docs/`
24
25
  - For each existing recognized directory with a CLAUDE.md file:
25
26
  - Read the file's first line
26
- - If it contains `<!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->`: regenerate using the same stack-aware templates from /setup Stage 4
27
+ - If it contains `<!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->`: regenerate using the same stack-aware templates from /ccp:setup Stage 4
27
28
  - If the marker is absent: skip (print: "Skipping {dir}/CLAUDE.md -- customized by user")
28
29
  - For each recognized directory WITHOUT a CLAUDE.md file:
29
- - Generate a new one using the same stack-aware templates from /setup Stage 4
30
+ - Generate a new one using the same stack-aware templates from /ccp:setup Stage 4
30
31
  - Show summary of changes:
31
32
  ```
32
33
  Directory CLAUDE.md refresh:
@@ -40,7 +41,7 @@ Present differences.
40
41
 
41
42
  Show diff before writing.
42
43
 
43
- Note: MCP detection is NOT re-run during refresh. Binaries rarely change. Re-run `/setup` to re-detect MCP tools.
44
+ Note: MCP detection is NOT re-run during refresh. Binaries rarely change. Re-run `/ccp:setup` to re-detect MCP tools.
44
45
 
45
46
  ## Step 3 — Commit
46
47
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ name: ccp:setup
2
3
  description: "First-time project setup — scans codebase, generates CLAUDE.md, installs language rules, discovers skills"
3
4
  ---
4
5
 
@@ -12,7 +13,7 @@ Verify that all 4 source directories from the Claude Code Pilot are properly ins
12
13
 
13
14
  Check the following paths relative to the project root:
14
15
 
15
- 1. **Kit commands** — check if `.claude/commands/setup.md` exists (this file is a kit-specific marker)
16
+ 1. **Kit commands** — check if `.claude/commands/ccp/setup.md` exists (this file is a kit-specific marker)
16
17
  2. **CCP commands** — check if `.claude/commands/ccp/` directory exists and is non-empty (contains the 32 CCP commands)
17
18
  3. **CCP toolbox** — check if `.claude/hooks/` directory exists (contains hooks, lib, detection scripts)
18
19
  4. **CCP SDLC workflows** — check if `.claude/pilot/` directory exists and contains `workflows/` subdirectory
@@ -75,7 +76,7 @@ Codebase Intelligence:
75
76
 
76
77
  4. If NO (key not in .mcp.json): skip graph queries entirely, proceed with standard subagent exploration below.
77
78
 
78
- **Important:** This is a best-effort enhancement. The standard subagent exploration (grep/find) must ALWAYS run as the baseline. Graph results supplement, they don't replace. If codebase-memory-mcp adds value, great. If not, /setup works exactly as before.
79
+ **Important:** This is a best-effort enhancement. The standard subagent exploration (grep/find) must ALWAYS run as the baseline. Graph results supplement, they don't replace. If codebase-memory-mcp adds value, great. If not, /ccp:setup works exactly as before.
79
80
 
80
81
  ---
81
82
 
@@ -185,7 +186,7 @@ Skip any directory that does not exist.
185
186
 
186
187
  For each existing recognized directory:
187
188
  - If no `CLAUDE.md` exists in the directory: mark for generation
188
- - If `CLAUDE.md` exists and its **first line** contains `<!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->`: mark for regeneration (overwrite)
189
+ - If `CLAUDE.md` exists and its **first line** contains `<!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->`: mark for regeneration (overwrite)
189
190
  - If `CLAUDE.md` exists **without** that marker on line 1: skip (user customized it)
190
191
 
191
192
  **Step 3: Confirm with user**
@@ -197,7 +198,7 @@ Directory-scoped CLAUDE.md files will be generated for:
197
198
  test/ -- Test files (Jest + React Testing Library)
198
199
  docs/ -- Documentation
199
200
 
200
- Proceed? (These can be customized later -- /setup:refresh will skip files you edit)
201
+ Proceed? (These can be customized later -- /ccp:setup:refresh will skip files you edit)
201
202
  ```
202
203
 
203
204
  **Step 4: Generate files**
@@ -210,7 +211,7 @@ Use these templates based on the detected stack (from Stage 1):
210
211
 
211
212
  **Next.js project:**
212
213
  ```markdown
213
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
214
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
214
215
  # Source Code (src/)
215
216
 
216
217
  This directory contains the application source code for a **Next.js** project.
@@ -226,7 +227,7 @@ This directory contains the application source code for a **Next.js** project.
226
227
 
227
228
  **Express + TypeScript project:**
228
229
  ```markdown
229
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
230
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
230
231
  # Source Code (src/)
231
232
 
232
233
  This directory contains the application source code for an **Express + TypeScript** project.
@@ -242,7 +243,7 @@ This directory contains the application source code for an **Express + TypeScrip
242
243
 
243
244
  **Python + Django project:**
244
245
  ```markdown
245
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
246
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
246
247
  # Source Code (src/)
247
248
 
248
249
  This directory contains the application source code for a **Django** project.
@@ -258,7 +259,7 @@ This directory contains the application source code for a **Django** project.
258
259
 
259
260
  **Go project:**
260
261
  ```markdown
261
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
262
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
262
263
  # Source Code (src/)
263
264
 
264
265
  This directory contains the application source code for a **Go** project.
@@ -274,7 +275,7 @@ This directory contains the application source code for a **Go** project.
274
275
 
275
276
  **Generic project (unknown framework):**
276
277
  ```markdown
277
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
278
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
278
279
  # Source Code (src/)
279
280
 
280
281
  This directory contains the application source code.
@@ -292,7 +293,7 @@ This directory contains the application source code.
292
293
 
293
294
  **Next.js / React project:**
294
295
  ```markdown
295
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
296
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
296
297
  # Tests (test/)
297
298
 
298
299
  This directory contains automated tests.
@@ -308,7 +309,7 @@ This directory contains automated tests.
308
309
 
309
310
  **Python + Django project:**
310
311
  ```markdown
311
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
312
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
312
313
  # Tests (tests/)
313
314
 
314
315
  This directory contains automated tests.
@@ -324,7 +325,7 @@ This directory contains automated tests.
324
325
 
325
326
  **Go project:**
326
327
  ```markdown
327
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
328
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
328
329
  # Tests (test/)
329
330
 
330
331
  This directory contains automated tests.
@@ -340,7 +341,7 @@ This directory contains automated tests.
340
341
 
341
342
  **Generic project:**
342
343
  ```markdown
343
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
344
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
344
345
  # Tests (test/)
345
346
 
346
347
  This directory contains automated tests.
@@ -357,7 +358,7 @@ This directory contains automated tests.
357
358
  ### lib/ template (all stacks)
358
359
 
359
360
  ```markdown
360
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
361
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
361
362
  # Shared Libraries (lib/)
362
363
 
363
364
  This directory contains shared utility functions and libraries.
@@ -375,7 +376,7 @@ This directory contains shared utility functions and libraries.
375
376
 
376
377
  **Next.js App Router:**
377
378
  ```markdown
378
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
379
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
379
380
  # App Directory (app/)
380
381
 
381
382
  This directory contains Next.js App Router pages and layouts.
@@ -391,7 +392,7 @@ This directory contains Next.js App Router pages and layouts.
391
392
 
392
393
  **Rails project:**
393
394
  ```markdown
394
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
395
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
395
396
  # App Directory (app/)
396
397
 
397
398
  This directory contains the Rails application code.
@@ -407,7 +408,7 @@ This directory contains the Rails application code.
407
408
 
408
409
  **Generic app/ directory:**
409
410
  ```markdown
410
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
411
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
411
412
  # Application (app/)
412
413
 
413
414
  This directory contains the main application code.
@@ -424,7 +425,7 @@ This directory contains the main application code.
424
425
  ### api/ template (all stacks)
425
426
 
426
427
  ```markdown
427
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
428
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
428
429
  # API Layer (api/)
429
430
 
430
431
  This directory contains API endpoints and route handlers.
@@ -441,7 +442,7 @@ This directory contains API endpoints and route handlers.
441
442
  ### scripts/ template (all stacks)
442
443
 
443
444
  ```markdown
444
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
445
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
445
446
  # Scripts (scripts/)
446
447
 
447
448
  This directory contains build, development, and maintenance scripts.
@@ -458,7 +459,7 @@ This directory contains build, development, and maintenance scripts.
458
459
  ### docs/ template (all stacks)
459
460
 
460
461
  ```markdown
461
- <!-- Generated by /setup -- customize freely, /setup:refresh will regenerate if this comment is present -->
462
+ <!-- Generated by /ccp:setup -- customize freely, /ccp:setup:refresh will regenerate if this comment is present -->
462
463
  # Documentation (docs/)
463
464
 
464
465
  This directory contains project documentation.
@@ -485,7 +486,7 @@ Write CLAUDE.md under 100 lines. Sections:
485
486
  - **Universal Rules** (5-7 lines): project-specific patterns
486
487
  - **Forbidden** (4-6 lines): things that break this project
487
488
  - **Methodology — CCP** (6-8 lines): reference /ccp: commands
488
- - **Toolbox — CCP** (6-8 lines): reference /verify, /checkpoint, /save-session, /learn
489
+ - **Toolbox — CCP** (6-8 lines): reference /ccp:verify, /ccp:checkpoint, /ccp:save-session, /ccp:learn
489
490
  - **Before ANY work** (2 lines): `npx skills find <keywords>`
490
491
  - **Reference Docs & MCP** (3-4 lines): point to docs/, contexts/, registries
491
492
  - **Gotchas** (3-5 lines): non-obvious things from scan
@@ -599,7 +600,7 @@ Configured:
599
600
  - Safety hooks + desktop notifications
600
601
 
601
602
  Methodology: /ccp:discuss → /ccp:plan → /ccp:execute → /ccp:verify
602
- Quality: /verify → /checkpoint → /quality-gate
603
- Persistence: /save-session → /resume-session → /learn → /evolve
603
+ Quality: /ccp:verify → /ccp:checkpoint → /ccp:quality-gate
604
+ Persistence: /ccp:save-session → /ccp:resume-session → /ccp:learn → /ccp:evolve
604
605
  Update: /ccp:update
605
606
  ```
@@ -1,20 +1,20 @@
1
1
  ---
2
- name: skill-create
2
+ name: ccp:skill-create
3
3
  description: Analyze local git history to extract coding patterns and generate SKILL.md files. Local version of the Skill Creator GitHub App.
4
4
  allowed_tools: ["Bash", "Read", "Write", "Grep", "Glob"]
5
5
  ---
6
6
 
7
- # /skill-create - Local Skill Generation
7
+ # /ccp:skill-create - Local Skill Generation
8
8
 
9
9
  Analyze your repository's git history to extract coding patterns and generate SKILL.md files that teach Claude your team's practices.
10
10
 
11
11
  ## Usage
12
12
 
13
13
  ```bash
14
- /skill-create # Analyze current repo
15
- /skill-create --commits 100 # Analyze last 100 commits
16
- /skill-create --output ./skills # Custom output directory
17
- /skill-create --instincts # Also generate instincts for continuous-learning-v2
14
+ /ccp:skill-create # Analyze current repo
15
+ /ccp:skill-create --commits 100 # Analyze last 100 commits
16
+ /ccp:skill-create --output ./skills # Custom output directory
17
+ /ccp:skill-create --instincts # Also generate instincts for continuous-learning-v2
18
18
  ```
19
19
 
20
20
  ## What It Does
@@ -104,7 +104,7 @@ Prefix commits with: feat:, fix:, chore:, docs:, test:, refactor:
104
104
 
105
105
  ## Example Output
106
106
 
107
- Running `/skill-create` on a TypeScript project might produce:
107
+ Running `/ccp:skill-create` on a TypeScript project might produce:
108
108
 
109
109
  ```markdown
110
110
  ---
@@ -167,6 +167,6 @@ For advanced features (10k+ commits, team sharing, auto-PRs), use the [Skill Cre
167
167
 
168
168
  - `/instinct-import` - Import generated instincts
169
169
  - `/instinct-status` - View learned instincts
170
- - `/evolve` - Cluster instincts into skills/agents
170
+ - `/ccp:evolve` - Cluster instincts into skills/agents
171
171
 
172
172
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: skill-health
2
+ name: ccp:skill-health
3
3
  description: Show skill portfolio health dashboard with charts and analytics
4
4
  command: true
5
5
  ---
@@ -31,16 +31,16 @@ node ~/.claude/scripts/skills-health.js --dashboard --json
31
31
  ## Usage
32
32
 
33
33
  ```
34
- /skill-health # Full dashboard view
35
- /skill-health --panel failures # Only failure clustering panel
36
- /skill-health --json # Machine-readable JSON output
34
+ /ccp:skill-health # Full dashboard view
35
+ /ccp:skill-health --panel failures # Only failure clustering panel
36
+ /ccp:skill-health --json # Machine-readable JSON output
37
37
  ```
38
38
 
39
39
  ## What to Do
40
40
 
41
41
  1. Run the skills-health.js script with --dashboard flag
42
42
  2. Display the output to the user
43
- 3. If any skills are declining, highlight them and suggest running /evolve
43
+ 3. If any skills are declining, highlight them and suggest running /ccp:evolve
44
44
  4. If there are pending amendments, suggest reviewing them
45
45
 
46
46
  ## Panels
@@ -1,4 +1,5 @@
1
1
  ---
2
+ name: ccp:tdd
2
3
  description: Enforce test-driven development workflow. Scaffold interfaces, generate tests FIRST, then implement minimal code to pass. Ensure 80%+ coverage.
3
4
  ---
4
5
 
@@ -16,7 +17,7 @@ This command invokes the **tdd-guide** agent to enforce test-driven development
16
17
 
17
18
  ## When to Use
18
19
 
19
- Use `/tdd` when:
20
+ Use `/ccp:tdd` when:
20
21
  - Implementing new features
21
22
  - Adding new functions/components
22
23
  - Fixing bugs (write test that reproduces bug first)
@@ -49,7 +50,7 @@ REPEAT: Next feature/scenario
49
50
  ## Example Usage
50
51
 
51
52
  ```
52
- User: /tdd I need a function to calculate market liquidity score
53
+ User: /ccp:tdd I need a function to calculate market liquidity score
53
54
 
54
55
  Agent (tdd-guide):
55
56
  # TDD Session: Market Liquidity Score Calculator
@@ -285,7 +286,7 @@ Coverage: 100% ✅ (Target: 80%)
285
286
  - External service calls
286
287
  - React components with hooks
287
288
 
288
- **E2E Tests** (use `/e2e` command):
289
+ **E2E Tests** (use `/ccp:e2e` command):
289
290
  - Critical user flows
290
291
  - Multi-step processes
291
292
  - Full stack integration
@@ -311,11 +312,11 @@ Never skip the RED phase. Never write code before tests.
311
312
 
312
313
  ## Integration with Other Commands
313
314
 
314
- - Use `/plan` first to understand what to build
315
- - Use `/tdd` to implement with tests
316
- - Use `/build-fix` if build errors occur
317
- - Use `/code-review` to review implementation
318
- - Use `/test-coverage` to verify coverage
315
+ - Use `/ccp:plan` first to understand what to build
316
+ - Use `/ccp:tdd` to implement with tests
317
+ - Use `/ccp:build-fix` if build errors occur
318
+ - Use `/ccp:code-review` to review implementation
319
+ - Use `/ccp:test-coverage` to verify coverage
319
320
 
320
321
  ## Related Agents
321
322
 
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: ccp:test-coverage
3
+ description: "Analyze test coverage, identify gaps, and generate missing tests for 80%+ coverage"
4
+ ---
5
+
1
6
  # Test Coverage
2
7
 
3
8
  Analyze test coverage, identify gaps, and generate missing tests to reach 80%+ coverage.
@@ -1,4 +1,5 @@
1
1
  ---
2
+ name: ccp:tool-guide
2
3
  description: "MCP tool recommendations per task type -- which tools to use when"
3
4
  ---
4
5
 
@@ -32,7 +33,7 @@ The kit configures or recommends these MCP tools:
32
33
  ## Usage Tips
33
34
 
34
35
  - If a tool is not installed, Claude will skip it automatically -- no errors.
35
- - Use `/setup` to auto-detect and configure available MCP tools.
36
+ - Use `/ccp:setup` to auto-detect and configure available MCP tools.
36
37
  - Context7 is the highest-value tool -- it prevents the #1 cause of agent errors (outdated API usage).
37
38
  - codebase-memory-mcp and cocoindex-code serve similar purposes -- you don't need both.
38
39
  - For large codebases (100+ files), codebase-memory-mcp significantly reduces context waste from file exploration.
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: ccp:update-codemaps
3
+ description: "Analyze codebase structure and generate token-lean architecture documentation"
4
+ ---
5
+
1
6
  # Update Codemaps
2
7
 
3
8
  Analyze the codebase structure and generate token-lean architecture documentation.
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: ccp:update-docs
3
+ description: "Sync documentation with the codebase from source-of-truth files"
4
+ ---
5
+
1
6
  # Update Documentation
2
7
 
3
8
  Sync documentation with the codebase, generating from source-of-truth files.
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: ccp:verify
3
+ description: "Run comprehensive verification on current codebase state"
4
+ ---
5
+
1
6
  # Verification Command
2
7
 
3
8
  Run comprehensive verification on current codebase state.
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: ccp:workstreams
3
+ description: Manage parallel workstreams — list, create, switch, status, progress, complete, and resume
4
+ ---
5
+
6
+ # /ccp:workstreams
7
+
8
+ Manage parallel workstreams for concurrent milestone work.
9
+
10
+ ## Usage
11
+
12
+ `/ccp:workstreams [subcommand] [args]`
13
+
14
+ ### Subcommands
15
+
16
+ | Command | Description |
17
+ |---------|-------------|
18
+ | `list` | List all workstreams with status |
19
+ | `create <name>` | Create a new workstream |
20
+ | `status <name>` | Detailed status for one workstream |
21
+ | `switch <name>` | Set active workstream |
22
+ | `progress` | Progress summary across all workstreams |
23
+ | `complete <name>` | Archive a completed workstream |
24
+ | `resume <name>` | Resume work in a workstream |
25
+
26
+ ## Step 1: Parse Subcommand
27
+
28
+ Parse the user's input to determine which workstream operation to perform.
29
+ If no subcommand given, default to `list`.
30
+
31
+ ## Step 2: Execute Operation
32
+
33
+ ### list
34
+ Scan `.planning/` directory structure for workstream directories. For each workstream found:
35
+ - Read its STATE.md to get status, current phase, and progress
36
+ - Display results in a table format showing name, status, current phase, and progress
37
+
38
+ If no workstreams exist (only default `.planning/` directory), display:
39
+ "No workstreams found. Use `/ccp:workstreams create <name>` to create one."
40
+
41
+ ### create
42
+ Create a new workstream directory at `.planning/workstreams/<name>/`:
43
+ - Create the directory with `mkdir -p`
44
+ - Create a STATE.md from the standard template (copy structure from `.planning/STATE.md` with fresh values)
45
+ - Display the new workstream path and suggest: `/ccp:new-milestone --ws <name>` to set up the milestone
46
+
47
+ ### status
48
+ Read `.planning/workstreams/<name>/STATE.md` and display detailed phase breakdown and state information.
49
+ If the workstream does not exist, display: "Workstream '<name>' not found."
50
+
51
+ ### switch
52
+ Verify `.planning/workstreams/<name>/` exists, then set `CCP_WORKSTREAM=<name>` environment variable for the current session.
53
+ Display: "Switched to workstream '<name>'."
54
+
55
+ ### progress
56
+ Scan all workstream directories under `.planning/workstreams/`. For each, read its STATE.md and extract progress percentage. Display a progress overview table across all workstreams.
57
+
58
+ ### complete
59
+ Move `.planning/workstreams/<name>/` to `.planning/milestones/<name>/` to archive the completed workstream.
60
+ Display: "Workstream '<name>' archived to milestones/."
61
+
62
+ ### resume
63
+ Set the workstream as active and suggest `/ccp:resume-work --ws <name>`.
64
+
65
+ ## Step 3: Display Results
66
+
67
+ Format the results into a human-readable display.
68
+ Include the `${CCP_WS}` flag in any routing suggestions.
@@ -87,10 +87,10 @@ DEBUG=false
87
87
 
88
88
  ## Available Commands
89
89
 
90
- - `/tdd` - Test-driven development workflow
91
- - `/plan` - Create implementation plan
92
- - `/code-review` - Review code quality
93
- - `/build-fix` - Fix build errors
90
+ - `/ccp:tdd` - Test-driven development workflow
91
+ - `/ccp:plan` - Create implementation plan
92
+ - `/ccp:code-review` - Review code quality
93
+ - `/ccp:build-fix` - Fix build errors
94
94
 
95
95
  ## Git Workflow
96
96
 
@@ -286,18 +286,18 @@ pytest --lf
286
286
 
287
287
  ```bash
288
288
  # Planning
289
- /plan "Add order refund system with Stripe integration"
289
+ /ccp:plan "Add order refund system with Stripe integration"
290
290
 
291
291
  # Development with TDD
292
- /tdd # pytest-based TDD workflow
292
+ /ccp:tdd # pytest-based TDD workflow
293
293
 
294
294
  # Review
295
- /python-review # Python-specific code review
295
+ /ccp:python-review # Python-specific code review
296
296
  /security-scan # Django security audit
297
- /code-review # General quality check
297
+ /ccp:code-review # General quality check
298
298
 
299
299
  # Verification
300
- /verify # Build, lint, test, security scan
300
+ /ccp:verify # Build, lint, test, security scan
301
301
  ```
302
302
 
303
303
  ## Git Workflow