claude-code-pilot 3.1.1 → 3.2.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 (110) hide show
  1. package/README.md +11 -11
  2. package/bin/install.js +19 -1
  3. package/manifest.json +5 -1
  4. package/package.json +2 -2
  5. package/src/agents/a11y-architect.md +141 -0
  6. package/src/agents/code-architect.md +71 -0
  7. package/src/agents/code-explorer.md +69 -0
  8. package/src/agents/code-simplifier.md +47 -0
  9. package/src/agents/comment-analyzer.md +45 -0
  10. package/src/agents/csharp-reviewer.md +101 -0
  11. package/src/agents/dart-build-resolver.md +201 -0
  12. package/src/agents/pr-test-analyzer.md +45 -0
  13. package/src/agents/silent-failure-hunter.md +50 -0
  14. package/src/agents/type-design-analyzer.md +41 -0
  15. package/src/available-rules/README.md +3 -1
  16. package/src/available-rules/dart/coding-style.md +159 -0
  17. package/src/available-rules/dart/hooks.md +66 -0
  18. package/src/available-rules/dart/patterns.md +261 -0
  19. package/src/available-rules/dart/security.md +135 -0
  20. package/src/available-rules/dart/testing.md +215 -0
  21. package/src/available-rules/web/coding-style.md +105 -0
  22. package/src/available-rules/web/design-quality.md +72 -0
  23. package/src/available-rules/web/hooks.md +129 -0
  24. package/src/available-rules/web/patterns.md +88 -0
  25. package/src/available-rules/web/performance.md +73 -0
  26. package/src/available-rules/web/security.md +66 -0
  27. package/src/available-rules/web/testing.md +64 -0
  28. package/src/commands/ccp/ai-integration-phase.md +36 -0
  29. package/src/commands/ccp/audit-fix.md +33 -0
  30. package/src/commands/ccp/code-review-fix.md +52 -0
  31. package/src/commands/ccp/eval-review.md +32 -0
  32. package/src/commands/ccp/extract_learnings.md +22 -0
  33. package/src/commands/ccp/import.md +37 -0
  34. package/src/commands/ccp/ingest-docs.md +42 -0
  35. package/src/commands/ccp/intel.md +179 -0
  36. package/src/commands/ccp/plan-review-convergence.md +58 -0
  37. package/src/commands/ccp/scan.md +26 -0
  38. package/src/commands/ccp/sketch-wrap-up.md +31 -0
  39. package/src/commands/ccp/sketch.md +54 -0
  40. package/src/commands/ccp/spec-phase.md +62 -0
  41. package/src/commands/ccp/spike-wrap-up.md +31 -0
  42. package/src/commands/ccp/spike.md +51 -0
  43. package/src/commands/ccp/ultraplan-phase.md +33 -0
  44. package/src/hooks/ccp-read-injection-scanner.js +152 -0
  45. package/src/hooks/kit-check-update.js +59 -7
  46. package/src/hooks/run-with-flags-shell.sh +1 -0
  47. package/src/hooks/run-with-flags.js +48 -1
  48. package/src/hooks/session-end.js +88 -1
  49. package/src/lib/hook-flags.js +14 -0
  50. package/src/pilot/references/agent-contracts.md +79 -0
  51. package/src/pilot/references/ai-evals.md +156 -0
  52. package/src/pilot/references/ai-frameworks.md +186 -0
  53. package/src/pilot/references/doc-conflict-engine.md +91 -0
  54. package/src/pilot/references/gate-prompts.md +100 -0
  55. package/src/pilot/references/gates.md +70 -0
  56. package/src/pilot/references/mandatory-initial-read.md +2 -0
  57. package/src/pilot/references/project-skills-discovery.md +19 -0
  58. package/src/pilot/references/revision-loop.md +97 -0
  59. package/src/pilot/references/sketch-interactivity.md +41 -0
  60. package/src/pilot/references/sketch-theme-system.md +94 -0
  61. package/src/pilot/references/sketch-tooling.md +45 -0
  62. package/src/pilot/references/sketch-variant-patterns.md +81 -0
  63. package/src/pilot/references/thinking-models-debug.md +44 -0
  64. package/src/pilot/references/thinking-models-execution.md +50 -0
  65. package/src/pilot/references/thinking-models-planning.md +62 -0
  66. package/src/pilot/references/thinking-models-research.md +50 -0
  67. package/src/pilot/references/thinking-models-verification.md +55 -0
  68. package/src/pilot/templates/AI-SPEC.md +246 -0
  69. package/src/pilot/templates/spec.md +307 -0
  70. package/src/pilot/workflows/ai-integration-phase.md +284 -0
  71. package/src/pilot/workflows/audit-fix.md +175 -0
  72. package/src/pilot/workflows/code-review-fix.md +497 -0
  73. package/src/pilot/workflows/eval-review.md +155 -0
  74. package/src/pilot/workflows/extract_learnings.md +242 -0
  75. package/src/pilot/workflows/import.md +246 -0
  76. package/src/pilot/workflows/ingest-docs.md +328 -0
  77. package/src/pilot/workflows/plan-review-convergence.md +329 -0
  78. package/src/pilot/workflows/scan.md +102 -0
  79. package/src/pilot/workflows/sketch-wrap-up.md +285 -0
  80. package/src/pilot/workflows/sketch.md +360 -0
  81. package/src/pilot/workflows/spec-phase.md +262 -0
  82. package/src/pilot/workflows/spike-wrap-up.md +306 -0
  83. package/src/pilot/workflows/spike.md +452 -0
  84. package/src/pilot/workflows/ultraplan-phase.md +189 -0
  85. package/src/skills/accessibility/SKILL.md +146 -0
  86. package/src/skills/agent-eval/SKILL.md +145 -0
  87. package/src/skills/agent-introspection-debugging/SKILL.md +153 -0
  88. package/src/skills/android-clean-architecture/SKILL.md +339 -0
  89. package/src/skills/api-connector-builder/SKILL.md +120 -0
  90. package/src/skills/code-tour/SKILL.md +236 -0
  91. package/src/skills/compose-multiplatform-patterns/SKILL.md +299 -0
  92. package/src/skills/csharp-testing/SKILL.md +321 -0
  93. package/src/skills/dart-flutter-patterns/SKILL.md +563 -0
  94. package/src/skills/dashboard-builder/SKILL.md +108 -0
  95. package/src/skills/dotnet-patterns/SKILL.md +321 -0
  96. package/src/skills/frontend-design/SKILL.md +145 -0
  97. package/src/skills/frontend-slides/SKILL.md +184 -0
  98. package/src/skills/frontend-slides/STYLE_PRESETS.md +330 -0
  99. package/src/skills/gateguard/SKILL.md +121 -0
  100. package/src/skills/github-ops/SKILL.md +144 -0
  101. package/src/skills/hookify-rules/SKILL.md +128 -0
  102. package/src/skills/knowledge-ops/SKILL.md +154 -0
  103. package/src/skills/liquid-glass-design/SKILL.md +279 -0
  104. package/src/skills/nestjs-patterns/SKILL.md +230 -0
  105. package/src/skills/security-bounty-hunter/SKILL.md +99 -0
  106. package/src/skills/swift-actor-persistence/SKILL.md +143 -0
  107. package/src/skills/swift-protocol-di-testing/SKILL.md +190 -0
  108. package/src/skills/swiftui-patterns/SKILL.md +259 -0
  109. package/src/skills/terminal-ops/SKILL.md +109 -0
  110. package/src/skills/ui-demo/SKILL.md +465 -0
@@ -0,0 +1,306 @@
1
+ <purpose>
2
+ Package spike experiment findings into a persistent project skill — an implementation blueprint
3
+ for future build conversations. Reads from `.planning/spikes/`, writes skill to
4
+ `./.claude/skills/spike-findings-[project]/` (project-local) and summary to
5
+ `.planning/spikes/WRAP-UP-SUMMARY.md`. Companion to `/ccp:spike`.
6
+ </purpose>
7
+
8
+ <required_reading>
9
+ Read all files referenced by the invoking prompt's execution_context before starting.
10
+ </required_reading>
11
+
12
+ <process>
13
+
14
+ <step name="banner">
15
+ ```
16
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
17
+ GSD ► SPIKE WRAP-UP
18
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
19
+ ```
20
+ </step>
21
+
22
+ <step name="gather">
23
+ ## Gather Spike Inventory
24
+
25
+ 1. Read `.planning/spikes/MANIFEST.md` for the overall idea context and requirements
26
+ 2. Glob `.planning/spikes/*/README.md` and parse YAML frontmatter from each
27
+ 3. Check if `./.claude/skills/spike-findings-*/SKILL.md` exists for this project
28
+ - If yes: read its `processed_spikes` list from the metadata section and filter those out
29
+ - If no: all spikes are candidates
30
+
31
+ If no unprocessed spikes exist:
32
+ ```
33
+ No unprocessed spikes found in `.planning/spikes/`.
34
+ Run `/ccp:spike` first to create experiments.
35
+ ```
36
+ Exit.
37
+
38
+ Check `commit_docs` config:
39
+ ```bash
40
+ COMMIT_DOCS=$(gsd-sdk query config-get commit_docs 2>/dev/null || echo "true")
41
+ ```
42
+ </step>
43
+
44
+ <step name="auto_include">
45
+ ## Auto-Include All Spikes
46
+
47
+ Include all unprocessed spikes automatically. Present a brief inventory showing what's being processed:
48
+
49
+ ```
50
+ Processing N spikes:
51
+ 001 — name (VALIDATED)
52
+ 002 — name (PARTIAL)
53
+ 003 — name (INVALIDATED)
54
+ ```
55
+
56
+ Every spike carries forward:
57
+ - **VALIDATED** spikes provide proven patterns
58
+ - **PARTIAL** spikes provide constrained patterns
59
+ - **INVALIDATED** spikes provide landmines and dead ends
60
+ </step>
61
+
62
+ <step name="group">
63
+ ## Auto-Group by Feature Area
64
+
65
+ Group spikes by feature area based on tags, names, `related` fields, and content. Proceed directly into synthesis.
66
+
67
+ Each group becomes one reference file in the generated skill.
68
+ </step>
69
+
70
+ <step name="skill_name">
71
+ ## Determine Output Skill Name
72
+
73
+ Derive the skill name from the project directory:
74
+
75
+ 1. Get the project root directory name (e.g., `solana-tracker`)
76
+ 2. The skill will be created at `./.claude/skills/spike-findings-[project-dir-name]/`
77
+
78
+ If a skill already exists at that path (append mode), update in place.
79
+ </step>
80
+
81
+ <step name="copy_sources">
82
+ ## Copy Source Files
83
+
84
+ For each included spike:
85
+
86
+ 1. Identify the core source files — the actual scripts, main files, and config that make the spike work. Exclude:
87
+ - `node_modules/`, `__pycache__/`, `.venv/`, build artifacts
88
+ - Lock files (`package-lock.json`, `yarn.lock`, etc.)
89
+ - `.git/`, `.DS_Store`
90
+ 2. Copy the README.md and core source files into `sources/NNN-spike-name/` inside the generated skill directory
91
+ </step>
92
+
93
+ <step name="synthesize">
94
+ ## Synthesize Reference Files
95
+
96
+ For each feature-area group, write a reference file at `references/[feature-area-name].md` as an **implementation blueprint** — it should read like a recipe, not a research paper. A future build session should be able to follow this and build the feature correctly without re-spiking anything.
97
+
98
+ ```markdown
99
+ # [Feature Area Name]
100
+
101
+ ## Requirements
102
+
103
+ [Non-negotiable design decisions from MANIFEST.md Requirements section that apply to this feature area. These MUST be honored in the real build. E.g., "Must use streaming JSON output", "Must support reconnection".]
104
+
105
+ ## How to Build It
106
+
107
+ [Step-by-step: what to install, how to configure, what code pattern to use. Include key code snippets extracted from the spike source. This is the proven approach — not theory, but tested and working code.]
108
+
109
+ ## What to Avoid
110
+
111
+ [Things that look right but aren't. Gotchas. Anti-patterns discovered during spiking. Dead ends that were tried and failed.]
112
+
113
+ ## Constraints
114
+
115
+ [Hard facts: rate limits, library limitations, version requirements, incompatibilities]
116
+
117
+ ## Origin
118
+
119
+ Synthesized from spikes: NNN, NNN, NNN
120
+ Source files available in: sources/NNN-spike-name/, sources/NNN-spike-name/
121
+ ```
122
+ </step>
123
+
124
+ <step name="write_skill">
125
+ ## Write SKILL.md
126
+
127
+ Create (or update) the generated skill's SKILL.md:
128
+
129
+ ```markdown
130
+ ---
131
+ name: spike-findings-[project-dir-name]
132
+ description: Implementation blueprint from spike experiments. Requirements, proven patterns, and verified knowledge for building [project-dir-name]. Auto-loaded during implementation work.
133
+ ---
134
+
135
+ <context>
136
+ ## Project: [project-dir-name]
137
+
138
+ [One paragraph from MANIFEST.md describing the overall idea]
139
+
140
+ Spike sessions wrapped: [date(s)]
141
+ </context>
142
+
143
+ <requirements>
144
+ ## Requirements
145
+
146
+ [Copied directly from MANIFEST.md Requirements section. These are non-negotiable design decisions that emerged from the user's choices during spiking. Every feature area reference must honor these.]
147
+
148
+ - [requirement 1]
149
+ - [requirement 2]
150
+ </requirements>
151
+
152
+ <findings_index>
153
+ ## Feature Areas
154
+
155
+ | Area | Reference | Key Finding |
156
+ |------|-----------|-------------|
157
+ | [Name] | references/[name].md | [One-line summary] |
158
+
159
+ ## Source Files
160
+
161
+ Original spike source files are preserved in `sources/` for complete reference.
162
+ </findings_index>
163
+
164
+ <metadata>
165
+ ## Processed Spikes
166
+
167
+ [List of spike numbers wrapped up]
168
+
169
+ - 001-spike-name
170
+ - 002-spike-name
171
+ </metadata>
172
+ ```
173
+ </step>
174
+
175
+ <step name="write_summary">
176
+ ## Write Planning Summary
177
+
178
+ Write `.planning/spikes/WRAP-UP-SUMMARY.md` for project history:
179
+
180
+ ```markdown
181
+ # Spike Wrap-Up Summary
182
+
183
+ **Date:** [date]
184
+ **Spikes processed:** [count]
185
+ **Feature areas:** [list]
186
+ **Skill output:** `./.claude/skills/spike-findings-[project]/`
187
+
188
+ ## Processed Spikes
189
+ | # | Name | Type | Verdict | Feature Area |
190
+ |---|------|------|---------|--------------|
191
+
192
+ ## Key Findings
193
+ [consolidated findings summary]
194
+ ```
195
+ </step>
196
+
197
+ <step name="update_claude_md">
198
+ ## Update Project CLAUDE.md
199
+
200
+ Add an auto-load routing line to the project's CLAUDE.md (create the file if it doesn't exist):
201
+
202
+ ```
203
+ - **Spike findings for [project]** (implementation patterns, constraints, gotchas) → `Skill("spike-findings-[project-dir-name]")`
204
+ ```
205
+
206
+ If this routing line already exists (append mode), leave it as-is.
207
+ </step>
208
+
209
+ <step name="generate_conventions">
210
+ ## Generate or Update CONVENTIONS.md
211
+
212
+ Analyze all processed spikes for recurring patterns and write `.planning/spikes/CONVENTIONS.md`. This file tells future spike sessions *how we spike* — the stack, structure, and patterns that have been established.
213
+
214
+ 1. Read all spike source code and READMEs looking for:
215
+ - **Stack choices** — What language/framework/runtime appears across multiple spikes?
216
+ - **Structure patterns** — Common file layouts, port numbers, naming schemes
217
+ - **Recurring approaches** — How auth is handled, how styling is done, how data is served
218
+ - **Tools & libraries** — Packages that showed up repeatedly with versions that worked
219
+
220
+ 2. Write or update `.planning/spikes/CONVENTIONS.md`:
221
+
222
+ ```markdown
223
+ # Spike Conventions
224
+
225
+ Patterns and stack choices established across spike sessions. New spikes follow these unless the question requires otherwise.
226
+
227
+ ## Stack
228
+ [What we use for frontend, backend, scripts, and why — derived from what repeated across spikes]
229
+
230
+ ## Structure
231
+ [Common file layouts, port assignments, naming patterns]
232
+
233
+ ## Patterns
234
+ [Recurring approaches: how we handle auth, how we style, how we serve, etc.]
235
+
236
+ ## Tools & Libraries
237
+ [Preferred packages with versions that worked, and any to avoid]
238
+ ```
239
+
240
+ 3. Only include patterns that appeared in 2+ spikes or were explicitly chosen by the user.
241
+
242
+ 4. If `CONVENTIONS.md` already exists (append mode), update sections with new patterns. Remove entries contradicted by newer spikes.
243
+ </step>
244
+
245
+ <step name="commit">
246
+ Commit all artifacts (if `COMMIT_DOCS` is true):
247
+
248
+ ```bash
249
+ gsd-sdk query commit "docs(spike-wrap-up): package [N] spike findings into project skill" .planning/spikes/WRAP-UP-SUMMARY.md .planning/spikes/CONVENTIONS.md
250
+ ```
251
+ </step>
252
+
253
+ <step name="report">
254
+ ```
255
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
256
+ GSD ► SPIKE WRAP-UP COMPLETE ✓
257
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
258
+
259
+ **Processed:** {N} spikes
260
+ **Feature areas:** {list}
261
+ **Skill:** `./.claude/skills/spike-findings-[project]/`
262
+ **Conventions:** `.planning/spikes/CONVENTIONS.md`
263
+ **Summary:** `.planning/spikes/WRAP-UP-SUMMARY.md`
264
+ **CLAUDE.md:** routing line added
265
+
266
+ The spike-findings skill will auto-load in future build conversations.
267
+ ```
268
+ </step>
269
+
270
+ <step name="whats_next">
271
+ ## What's Next
272
+
273
+ After the summary, present next-step options:
274
+
275
+ ───────────────────────────────────────────────────────────────
276
+
277
+ ## ▶ Next Up
278
+
279
+ **Explore frontier spikes** — see what else is worth spiking based on what we've learned
280
+
281
+ `/ccp:spike` (run with no argument — its frontier mode analyzes the spike landscape and proposes integration and frontier spikes)
282
+
283
+ ───────────────────────────────────────────────────────────────
284
+
285
+ **Also available:**
286
+ - `/ccp:plan-phase` — start planning the real implementation
287
+ - `/ccp:spike [idea]` — spike a specific new idea
288
+ - `/ccp:explore` — continue exploring
289
+ - Other
290
+
291
+ ───────────────────────────────────────────────────────────────
292
+ </step>
293
+
294
+ </process>
295
+
296
+ <success_criteria>
297
+ - [ ] All unprocessed spikes auto-included and processed
298
+ - [ ] Spikes grouped by feature area
299
+ - [ ] Spike-findings skill exists at `./.claude/skills/` with SKILL.md (including requirements), references/, sources/
300
+ - [ ] Reference files are implementation blueprints with Requirements, How to Build It, What to Avoid, Constraints
301
+ - [ ] `.planning/spikes/CONVENTIONS.md` created or updated with recurring stack/structure/pattern choices
302
+ - [ ] `.planning/spikes/WRAP-UP-SUMMARY.md` written for project history
303
+ - [ ] Project CLAUDE.md has auto-load routing line
304
+ - [ ] Summary presented
305
+ - [ ] Next-step options presented (including frontier spike exploration via `/ccp:spike`)
306
+ </success_criteria>