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,4 +1,5 @@
1
1
  ---
2
+ name: ccp:kotlin-test
2
3
  description: Enforce TDD workflow for Kotlin. Write Kotest tests first, then implement. Verify 80%+ coverage with Kover.
3
4
  ---
4
5
 
@@ -17,7 +18,7 @@ This command enforces test-driven development methodology for Kotlin code using
17
18
 
18
19
  ## When to Use
19
20
 
20
- Use `/kotlin-test` when:
21
+ Use `/ccp:kotlin-test` when:
21
22
  - Implementing new Kotlin functions or classes
22
23
  - Adding test coverage to existing Kotlin code
23
24
  - Fixing bugs (write failing test first)
@@ -36,7 +37,7 @@ REPEAT -> Next test case
36
37
  ## Example Session
37
38
 
38
39
  ````text
39
- User: /kotlin-test I need a function to validate user registration requests
40
+ User: /ccp:kotlin-test I need a function to validate user registration requests
40
41
 
41
42
  Agent:
42
43
  # TDD Session: Registration Validator
@@ -302,9 +303,9 @@ open build/reports/kover/html/index.html
302
303
 
303
304
  ## Related Commands
304
305
 
305
- - `/kotlin-build` - Fix build errors
306
- - `/kotlin-review` - Review code after implementation
307
- - `/verify` - Run full verification loop
306
+ - `/ccp:kotlin-build` - Fix build errors
307
+ - `/ccp:kotlin-review` - Review code after implementation
308
+ - `/ccp:verify` - Run full verification loop
308
309
 
309
310
  ## Related
310
311
 
@@ -1,10 +1,15 @@
1
- # /learn - Extract Reusable Patterns
1
+ ---
2
+ name: ccp:learn
3
+ description: "Extract reusable patterns from the current session into skills"
4
+ ---
5
+
6
+ # /ccp:learn - Extract Reusable Patterns
2
7
 
3
8
  Analyze the current session and extract any patterns worth saving as skills.
4
9
 
5
10
  ## Trigger
6
11
 
7
- Run `/learn` at any point during a session when you've solved a non-trivial problem.
12
+ Run `/ccp:learn` at any point during a session when you've solved a non-trivial problem.
8
13
 
9
14
  ## What to Extract
10
15
 
@@ -1,10 +1,15 @@
1
+ ---
2
+ name: ccp:model-route
3
+ description: "Recommend the best model tier for the current task by complexity and budget"
4
+ ---
5
+
1
6
  # Model Route Command
2
7
 
3
8
  Recommend the best model tier for the current task by complexity and budget.
4
9
 
5
10
  ## Usage
6
11
 
7
- `/model-route [task-description] [--budget low|med|high]`
12
+ `/ccp:model-route [task-description] [--budget low|med|high]`
8
13
 
9
14
  ## Routing Heuristic
10
15
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ name: ccp:orchestrate
2
3
  description: Sequential and tmux/worktree orchestration guidance for multi-agent workflows.
3
4
  ---
4
5
 
@@ -8,7 +9,7 @@ Sequential agent workflow for complex tasks.
8
9
 
9
10
  ## Usage
10
11
 
11
- `/orchestrate [workflow-type] [task-description]`
12
+ `/ccp:orchestrate [workflow-type] [task-description]`
12
13
 
13
14
  ## Workflow Types
14
15
 
@@ -71,7 +72,7 @@ Between agents, create handoff document:
71
72
  ## Example: Feature Workflow
72
73
 
73
74
  ```
74
- /orchestrate feature "Add user authentication"
75
+ /ccp:orchestrate feature "Add user authentication"
75
76
  ```
76
77
 
77
78
  Executes:
@@ -219,7 +220,7 @@ $ARGUMENTS:
219
220
  ## Custom Workflow Example
220
221
 
221
222
  ```
222
- /orchestrate custom "architect,tdd-guide,code-reviewer" "Redesign caching layer"
223
+ /ccp:orchestrate custom "architect,tdd-guide,code-reviewer" "Redesign caching layer"
223
224
  ```
224
225
 
225
226
  ## Tips
@@ -1,4 +1,5 @@
1
1
  ---
2
+ name: ccp:plan
2
3
  description: Restate requirements, assess risks, and create step-by-step implementation plan. WAIT for user CONFIRM before touching any code.
3
4
  ---
4
5
 
@@ -15,7 +16,7 @@ This command invokes the **planner** agent to create a comprehensive implementat
15
16
 
16
17
  ## When to Use
17
18
 
18
- Use `/plan` when:
19
+ Use `/ccp:plan` when:
19
20
  - Starting a new feature
20
21
  - Making significant architectural changes
21
22
  - Working on complex refactoring
@@ -36,7 +37,7 @@ The planner agent will:
36
37
  ## Example Usage
37
38
 
38
39
  ```
39
- User: /plan I need to add real-time notifications when markets resolve
40
+ User: /ccp:plan I need to add real-time notifications when markets resolve
40
41
 
41
42
  Agent (planner):
42
43
  # Implementation Plan: Real-Time Market Resolution Notifications
@@ -103,9 +104,9 @@ If you want changes, respond with:
103
104
  ## Integration with Other Commands
104
105
 
105
106
  After planning:
106
- - Use `/tdd` to implement with test-driven development
107
- - Use `/build-fix` if build errors occur
108
- - Use `/code-review` to review completed implementation
107
+ - Use `/ccp:tdd` to implement with test-driven development
108
+ - Use `/ccp:build-fix` if build errors occur
109
+ - Use `/ccp:code-review` to review completed implementation
109
110
 
110
111
  ## Related Agents
111
112
 
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: ccp:profile-user
3
+ description: Generate developer behavioral profile and create Claude-discoverable artifacts
4
+ argument-hint: "[--questionnaire] [--refresh]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - AskUserQuestion
12
+ - Task
13
+ ---
14
+
15
+ <objective>
16
+ Generate a developer behavioral profile from session analysis (or questionnaire) and produce artifacts (USER-PROFILE.md, /ccp:dev-preferences, CLAUDE.md section) that personalize Claude's responses.
17
+
18
+ Routes to the profile-user workflow which orchestrates the full flow: consent gate, session analysis or questionnaire fallback, profile generation, result display, and artifact selection.
19
+ </objective>
20
+
21
+ <execution_context>
22
+ @~/.claude/pilot/workflows/profile-user.md
23
+ @~/.claude/pilot/references/ui-brand.md
24
+ </execution_context>
25
+
26
+ <context>
27
+ Flags from $ARGUMENTS:
28
+ - `--questionnaire` -- Skip session analysis entirely, use questionnaire-only path
29
+ - `--refresh` -- Rebuild profile even when one exists, backup old profile, show dimension diff
30
+ </context>
31
+
32
+ <process>
33
+ Execute the profile-user workflow end-to-end.
34
+
35
+ The workflow handles all logic including:
36
+ 1. Initialization and existing profile detection
37
+ 2. Consent gate before session analysis
38
+ 3. Session scanning and data sufficiency checks
39
+ 4. Session analysis (profiler agent) or questionnaire fallback
40
+ 5. Cross-project split resolution
41
+ 6. Profile writing to USER-PROFILE.md
42
+ 7. Result display with report card and highlights
43
+ 8. Artifact selection (dev-preferences, CLAUDE.md sections)
44
+ 9. Sequential artifact generation
45
+ 10. Summary with refresh diff (if applicable)
46
+ </process>
@@ -1,8 +1,9 @@
1
1
  ---
2
+ name: ccp:prompt-optimize
2
3
  description: Analyze a draft prompt and output an optimized version ready to paste and run. Does NOT execute the task — outputs advisory analysis only.
3
4
  ---
4
5
 
5
- # /prompt-optimize
6
+ # /ccp:prompt-optimize
6
7
 
7
8
  Analyze and optimize the following prompt for maximum effectiveness.
8
9
 
@@ -28,7 +29,7 @@ Apply the **prompt-optimizer** skill to the user's input below. Follow the 6-pha
28
29
  ## CRITICAL
29
30
 
30
31
  Do NOT execute the user's task. Output ONLY the analysis and optimized prompt.
31
- If the user asks for direct execution, explain that `/prompt-optimize` only produces advisory output and tell them to start a normal task request instead.
32
+ If the user asks for direct execution, explain that `/ccp:prompt-optimize` only produces advisory output and tell them to start a normal task request instead.
32
33
 
33
34
  Note: `blueprint` is a **skill**, not a slash command. Write "Use the blueprint skill"
34
35
  instead of presenting it as a `/...` command.
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: prune
2
+ name: ccp:prune
3
3
  description: Delete pending instincts older than 30 days that were never promoted
4
4
  command: true
5
5
  ---
@@ -19,7 +19,7 @@ python3 ~/.claude/skills/continuous-learning-v2/scripts/instinct-cli.py prune
19
19
  ## Usage
20
20
 
21
21
  ```
22
- /prune # Delete instincts older than 30 days
23
- /prune --max-age 60 # Custom age threshold (days)
24
- /prune --dry-run # Preview without deleting
22
+ /ccp:prune # Delete instincts older than 30 days
23
+ /ccp:prune --max-age 60 # Custom age threshold (days)
24
+ /ccp:prune --dry-run # Preview without deleting
25
25
  ```
@@ -1,4 +1,5 @@
1
1
  ---
2
+ name: ccp:python-review
2
3
  description: Comprehensive Python code review for PEP 8 compliance, type hints, security, and Pythonic idioms. Invokes the python-reviewer agent.
3
4
  ---
4
5
 
@@ -17,7 +18,7 @@ This command invokes the **python-reviewer** agent for comprehensive Python-spec
17
18
 
18
19
  ## When to Use
19
20
 
20
- Use `/python-review` when:
21
+ Use `/ccp:python-review` when:
21
22
  - After writing or modifying Python code
22
23
  - Before committing Python changes
23
24
  - Reviewing pull requests with Python code
@@ -77,7 +78,7 @@ pytest --cov=app --cov-report=term-missing
77
78
  ## Example Usage
78
79
 
79
80
  ```text
80
- User: /python-review
81
+ User: /ccp:python-review
81
82
 
82
83
  Agent:
83
84
  # Python Code Review Report
@@ -171,10 +172,10 @@ Run: `black app/routes/user.py app/services/auth.py`
171
172
 
172
173
  ## Integration with Other Commands
173
174
 
174
- - Use `/tdd` first to ensure tests pass
175
- - Use `/code-review` for non-Python specific concerns
176
- - Use `/python-review` before committing
177
- - Use `/build-fix` if static analysis tools fail
175
+ - Use `/ccp:tdd` first to ensure tests pass
176
+ - Use `/ccp:code-review` for non-Python specific concerns
177
+ - Use `/ccp:python-review` before committing
178
+ - Use `/ccp:build-fix` if static analysis tools fail
178
179
 
179
180
  ## Framework-Specific Reviews
180
181
 
@@ -1,10 +1,15 @@
1
+ ---
2
+ name: ccp:quality-gate
3
+ description: "Run the CCP quality pipeline on demand for a file or project scope"
4
+ ---
5
+
1
6
  # Quality Gate Command
2
7
 
3
8
  Run the CCP quality pipeline on demand for a file or project scope.
4
9
 
5
10
  ## Usage
6
11
 
7
- `/quality-gate [path|.] [--fix] [--strict]`
12
+ `/ccp:quality-gate [path|.] [--fix] [--strict]`
8
13
 
9
14
  - default target: current directory (`.`)
10
15
  - `--fix`: allow auto-format/fix where configured
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: ccp:refactor-clean
3
+ description: "Safely identify and remove dead code with test verification"
4
+ ---
5
+
1
6
  # Refactor Clean
2
7
 
3
8
  Safely identify and remove dead code with test verification at every step.
@@ -1,11 +1,12 @@
1
1
  ---
2
+ name: ccp:resume-session
2
3
  description: Load the most recent session file from ~/.claude/sessions/ and resume work with full context from where the last session ended.
3
4
  ---
4
5
 
5
6
  # Resume Session Command
6
7
 
7
8
  Load the last saved session state and orient fully before doing any work.
8
- This command is the counterpart to `/save-session`.
9
+ This command is the counterpart to `/ccp:save-session`.
9
10
 
10
11
  ## When to Use
11
12
 
@@ -17,10 +18,10 @@ This command is the counterpart to `/save-session`.
17
18
  ## Usage
18
19
 
19
20
  ```
20
- /resume-session # loads most recent file in ~/.claude/sessions/
21
- /resume-session 2024-01-15 # loads most recent session for that date
22
- /resume-session ~/.claude/sessions/2024-01-15-session.tmp # loads a specific legacy-format file
23
- /resume-session ~/.claude/sessions/2024-01-15-abc123de-session.tmp # loads a current short-id session file
21
+ /ccp:resume-session # loads most recent file in ~/.claude/sessions/
22
+ /ccp:resume-session 2024-01-15 # loads most recent session for that date
23
+ /ccp:resume-session ~/.claude/sessions/2024-01-15-session.tmp # loads a specific legacy-format file
24
+ /ccp:resume-session ~/.claude/sessions/2024-01-15-abc123de-session.tmp # loads a current short-id session file
24
25
  ```
25
26
 
26
27
  ## Process
@@ -34,7 +35,7 @@ If no argument provided:
34
35
  3. If the folder does not exist or has no matching files, tell the user:
35
36
  ```
36
37
  No session files found in ~/.claude/sessions/
37
- Run /save-session at the end of a session to create one.
38
+ Run /ccp:save-session at the end of a session to create one.
38
39
  ```
39
40
  Then stop.
40
41
 
@@ -107,7 +108,7 @@ Note the gap — "⚠️ This session is from N days ago (threshold: 7 days). Th
107
108
  Read it and follow the same briefing process — the format is the same regardless of source.
108
109
 
109
110
  **Session file is empty or malformed:**
110
- Report: "Session file found but appears empty or unreadable. You may need to create a new one with /save-session."
111
+ Report: "Session file found but appears empty or unreadable. You may need to create a new one with /ccp:save-session."
111
112
 
112
113
  ---
113
114
 
@@ -152,4 +153,4 @@ Ready to continue. What would you like to do?
152
153
  - Never modify the session file when loading it — it's a read-only historical record
153
154
  - The briefing format is fixed — do not skip sections even if they are empty
154
155
  - "What Not To Retry" must always be shown, even if it just says "None" — it's too important to miss
155
- - After resuming, the user may want to run `/save-session` again at the end of the new session to create a new dated file
156
+ - After resuming, the user may want to run `/ccp:save-session` again at the end of the new session to create a new dated file
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: ccp:review
3
+ description: Request cross-AI peer review of phase plans from external AI CLIs
4
+ argument-hint: "--phase N [--gemini] [--claude] [--codex] [--all]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ ---
12
+
13
+ <objective>
14
+ Invoke external AI CLIs (Gemini, Claude, Codex) to independently review phase plans.
15
+ Produces a structured REVIEWS.md with per-reviewer feedback that can be fed back into
16
+ planning via /ccp:plan-phase --reviews.
17
+
18
+ **Flow:** Detect CLIs → Build review prompt → Invoke each CLI → Collect responses → Write REVIEWS.md
19
+ </objective>
20
+
21
+ <execution_context>
22
+ @~/.claude/pilot/workflows/review.md
23
+ </execution_context>
24
+
25
+ <context>
26
+ Phase number: extracted from $ARGUMENTS (required)
27
+
28
+ **Flags:**
29
+ - `--gemini` — Include Gemini CLI review
30
+ - `--claude` — Include Claude CLI review (uses separate session)
31
+ - `--codex` — Include Codex CLI review
32
+ - `--all` — Include all available CLIs
33
+ </context>
34
+
35
+ <process>
36
+ Execute the review workflow from @~/.claude/pilot/workflows/review.md end-to-end.
37
+ </process>
@@ -1,8 +1,9 @@
1
1
  ---
2
+ name: ccp:rules-distill
2
3
  description: "Scan skills to extract cross-cutting principles and distill them into rules"
3
4
  ---
4
5
 
5
- # /rules-distill — Distill Principles from Skills into Rules
6
+ # /ccp:rules-distill — Distill Principles from Skills into Rules
6
7
 
7
8
  Scan installed skills, extract cross-cutting principles, and distill them into rules.
8
9
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ name: ccp:rust-build
2
3
  description: Fix Rust build errors, borrow checker issues, and dependency problems incrementally. Invokes the rust-build-resolver agent for minimal, surgical fixes.
3
4
  ---
4
5
 
@@ -16,7 +17,7 @@ This command invokes the **rust-build-resolver** agent to incrementally fix Rust
16
17
 
17
18
  ## When to Use
18
19
 
19
- Use `/rust-build` when:
20
+ Use `/ccp:rust-build` when:
20
21
  - `cargo build` or `cargo check` fails with errors
21
22
  - `cargo clippy` reports warnings
22
23
  - Borrow checker or lifetime errors block compilation
@@ -45,7 +46,7 @@ if command -v cargo-audit >/dev/null; then cargo audit; else echo "cargo-audit n
45
46
  ## Example Session
46
47
 
47
48
  ````text
48
- User: /rust-build
49
+ User: /ccp:rust-build
49
50
 
50
51
  Agent:
51
52
  # Rust Build Resolution
@@ -177,9 +178,9 @@ The agent will stop and report if:
177
178
 
178
179
  ## Related Commands
179
180
 
180
- - `/rust-test` - Run tests after build succeeds
181
- - `/rust-review` - Review code quality
182
- - `/verify` - Full verification loop
181
+ - `/ccp:rust-test` - Run tests after build succeeds
182
+ - `/ccp:rust-review` - Review code quality
183
+ - `/ccp:verify` - Full verification loop
183
184
 
184
185
  ## Related
185
186
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ name: ccp:rust-review
2
3
  description: Comprehensive Rust code review for ownership, lifetimes, error handling, unsafe usage, and idiomatic patterns. Invokes the rust-reviewer agent.
3
4
  ---
4
5
 
@@ -17,7 +18,7 @@ This command invokes the **rust-reviewer** agent for comprehensive Rust-specific
17
18
 
18
19
  ## When to Use
19
20
 
20
- Use `/rust-review` when:
21
+ Use `/ccp:rust-review` when:
21
22
  - After writing or modifying Rust code
22
23
  - Before committing Rust changes
23
24
  - Reviewing pull requests with Rust code
@@ -71,7 +72,7 @@ if command -v cargo-audit >/dev/null; then cargo audit; else echo "cargo-audit n
71
72
  ## Example Usage
72
73
 
73
74
  ````text
74
- User: /rust-review
75
+ User: /ccp:rust-review
75
76
 
76
77
  Agent:
77
78
  # Rust Code Review Report
@@ -131,10 +132,10 @@ Recommendation: Block merge until CRITICAL issue is fixed
131
132
 
132
133
  ## Integration with Other Commands
133
134
 
134
- - Use `/rust-test` first to ensure tests pass
135
- - Use `/rust-build` if build errors occur
136
- - Use `/rust-review` before committing
137
- - Use `/code-review` for non-Rust-specific concerns
135
+ - Use `/ccp:rust-test` first to ensure tests pass
136
+ - Use `/ccp:rust-build` if build errors occur
137
+ - Use `/ccp:rust-review` before committing
138
+ - Use `/ccp:code-review` for non-Rust-specific concerns
138
139
 
139
140
  ## Related
140
141
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ name: ccp:rust-test
2
3
  description: Enforce TDD workflow for Rust. Write tests first, then implement. Verify 80%+ coverage with cargo-llvm-cov.
3
4
  ---
4
5
 
@@ -17,7 +18,7 @@ This command enforces test-driven development methodology for Rust code using `#
17
18
 
18
19
  ## When to Use
19
20
 
20
- Use `/rust-test` when:
21
+ Use `/ccp:rust-test` when:
21
22
  - Implementing new Rust functions, methods, or traits
22
23
  - Adding test coverage to existing Rust code
23
24
  - Fixing bugs (write failing test first)
@@ -36,7 +37,7 @@ REPEAT -> Next test case
36
37
  ## Example Session
37
38
 
38
39
  ````text
39
- User: /rust-test I need a function to validate user registration
40
+ User: /ccp:rust-test I need a function to validate user registration
40
41
 
41
42
  Agent:
42
43
  # TDD Session: Registration Validator
@@ -298,9 +299,9 @@ cargo test --no-fail-fast
298
299
 
299
300
  ## Related Commands
300
301
 
301
- - `/rust-build` - Fix build errors
302
- - `/rust-review` - Review code after implementation
303
- - `/verify` - Run full verification loop
302
+ - `/ccp:rust-build` - Fix build errors
303
+ - `/ccp:rust-review` - Review code after implementation
304
+ - `/ccp:verify` - Run full verification loop
304
305
 
305
306
  ## Related
306
307
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ name: ccp:save-session
2
3
  description: Save current session state to a dated file in ~/.claude/sessions/ so work can be resumed in a future session with full context.
3
4
  ---
4
5
 
@@ -270,6 +271,6 @@ Then test with Postman — the response should include a `Set-Cookie` header.
270
271
  - Each session gets its own file — never append to a previous session's file
271
272
  - The "What Did NOT Work" section is the most critical — future sessions will blindly retry failed approaches without it
272
273
  - If the user asks to save mid-session (not just at the end), save what's known so far and mark in-progress items clearly
273
- - The file is meant to be read by Claude at the start of the next session via `/resume-session`
274
+ - The file is meant to be read by Claude at the start of the next session via `/ccp:resume-session`
274
275
  - Use the canonical global session store: `~/.claude/sessions/`
275
276
  - Prefer the short-id filename form (`YYYY-MM-DD-<short-id>-session.tmp`) for any new session file
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: ccp:secure-phase
3
+ description: Retroactively verify threat mitigations for a completed phase
4
+ argument-hint: "[phase number]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Task
13
+ - AskUserQuestion
14
+ ---
15
+ <objective>
16
+ Verify threat mitigations for a completed phase. Three states:
17
+ - (A) SECURITY.md exists — audit and verify mitigations
18
+ - (B) No SECURITY.md, PLAN.md with threat model exists — run from artifacts
19
+ - (C) Phase not executed — exit with guidance
20
+
21
+ Output: updated SECURITY.md.
22
+ </objective>
23
+
24
+ <execution_context>
25
+ @~/.claude/pilot/workflows/secure-phase.md
26
+ </execution_context>
27
+
28
+ <context>
29
+ Phase: $ARGUMENTS — optional, defaults to last completed phase.
30
+ </context>
31
+
32
+ <process>
33
+ Execute @~/.claude/pilot/workflows/secure-phase.md.
34
+ Preserve all workflow gates.
35
+ </process>