claude-code-pilot 3.1.0 → 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.
- package/README.md +11 -11
- package/bin/install.js +20 -2
- package/manifest.json +5 -1
- package/package.json +18 -6
- package/src/agents/a11y-architect.md +141 -0
- package/src/agents/code-architect.md +71 -0
- package/src/agents/code-explorer.md +69 -0
- package/src/agents/code-simplifier.md +47 -0
- package/src/agents/comment-analyzer.md +45 -0
- package/src/agents/csharp-reviewer.md +101 -0
- package/src/agents/dart-build-resolver.md +201 -0
- package/src/agents/pr-test-analyzer.md +45 -0
- package/src/agents/silent-failure-hunter.md +50 -0
- package/src/agents/type-design-analyzer.md +41 -0
- package/src/available-rules/README.md +3 -1
- package/src/available-rules/dart/coding-style.md +159 -0
- package/src/available-rules/dart/hooks.md +66 -0
- package/src/available-rules/dart/patterns.md +261 -0
- package/src/available-rules/dart/security.md +135 -0
- package/src/available-rules/dart/testing.md +215 -0
- package/src/available-rules/web/coding-style.md +105 -0
- package/src/available-rules/web/design-quality.md +72 -0
- package/src/available-rules/web/hooks.md +129 -0
- package/src/available-rules/web/patterns.md +88 -0
- package/src/available-rules/web/performance.md +73 -0
- package/src/available-rules/web/security.md +66 -0
- package/src/available-rules/web/testing.md +64 -0
- package/src/commands/ccp/ai-integration-phase.md +36 -0
- package/src/commands/ccp/audit-fix.md +33 -0
- package/src/commands/ccp/code-review-fix.md +52 -0
- package/src/commands/ccp/eval-review.md +32 -0
- package/src/commands/ccp/extract_learnings.md +22 -0
- package/src/commands/ccp/import.md +37 -0
- package/src/commands/ccp/ingest-docs.md +42 -0
- package/src/commands/ccp/intel.md +179 -0
- package/src/commands/ccp/plan-review-convergence.md +58 -0
- package/src/commands/ccp/scan.md +26 -0
- package/src/commands/ccp/sketch-wrap-up.md +31 -0
- package/src/commands/ccp/sketch.md +54 -0
- package/src/commands/ccp/spec-phase.md +62 -0
- package/src/commands/ccp/spike-wrap-up.md +31 -0
- package/src/commands/ccp/spike.md +51 -0
- package/src/commands/ccp/ultraplan-phase.md +33 -0
- package/src/hooks/ccp-read-injection-scanner.js +152 -0
- package/src/hooks/kit-check-update.js +59 -7
- package/src/hooks/run-with-flags-shell.sh +1 -0
- package/src/hooks/run-with-flags.js +48 -1
- package/src/hooks/session-end.js +88 -1
- package/src/lib/hook-flags.js +14 -0
- package/src/pilot/references/agent-contracts.md +79 -0
- package/src/pilot/references/ai-evals.md +156 -0
- package/src/pilot/references/ai-frameworks.md +186 -0
- package/src/pilot/references/doc-conflict-engine.md +91 -0
- package/src/pilot/references/gate-prompts.md +100 -0
- package/src/pilot/references/gates.md +70 -0
- package/src/pilot/references/mandatory-initial-read.md +2 -0
- package/src/pilot/references/project-skills-discovery.md +19 -0
- package/src/pilot/references/revision-loop.md +97 -0
- package/src/pilot/references/sketch-interactivity.md +41 -0
- package/src/pilot/references/sketch-theme-system.md +94 -0
- package/src/pilot/references/sketch-tooling.md +45 -0
- package/src/pilot/references/sketch-variant-patterns.md +81 -0
- package/src/pilot/references/thinking-models-debug.md +44 -0
- package/src/pilot/references/thinking-models-execution.md +50 -0
- package/src/pilot/references/thinking-models-planning.md +62 -0
- package/src/pilot/references/thinking-models-research.md +50 -0
- package/src/pilot/references/thinking-models-verification.md +55 -0
- package/src/pilot/templates/AI-SPEC.md +246 -0
- package/src/pilot/templates/spec.md +307 -0
- package/src/pilot/workflows/ai-integration-phase.md +284 -0
- package/src/pilot/workflows/audit-fix.md +175 -0
- package/src/pilot/workflows/code-review-fix.md +497 -0
- package/src/pilot/workflows/eval-review.md +155 -0
- package/src/pilot/workflows/extract_learnings.md +242 -0
- package/src/pilot/workflows/import.md +246 -0
- package/src/pilot/workflows/ingest-docs.md +328 -0
- package/src/pilot/workflows/plan-review-convergence.md +329 -0
- package/src/pilot/workflows/scan.md +102 -0
- package/src/pilot/workflows/sketch-wrap-up.md +285 -0
- package/src/pilot/workflows/sketch.md +360 -0
- package/src/pilot/workflows/spec-phase.md +262 -0
- package/src/pilot/workflows/spike-wrap-up.md +306 -0
- package/src/pilot/workflows/spike.md +452 -0
- package/src/pilot/workflows/ultraplan-phase.md +189 -0
- package/src/skills/accessibility/SKILL.md +146 -0
- package/src/skills/agent-eval/SKILL.md +145 -0
- package/src/skills/agent-introspection-debugging/SKILL.md +153 -0
- package/src/skills/android-clean-architecture/SKILL.md +339 -0
- package/src/skills/api-connector-builder/SKILL.md +120 -0
- package/src/skills/code-tour/SKILL.md +236 -0
- package/src/skills/compose-multiplatform-patterns/SKILL.md +299 -0
- package/src/skills/csharp-testing/SKILL.md +321 -0
- package/src/skills/dart-flutter-patterns/SKILL.md +563 -0
- package/src/skills/dashboard-builder/SKILL.md +108 -0
- package/src/skills/dotnet-patterns/SKILL.md +321 -0
- package/src/skills/frontend-design/SKILL.md +145 -0
- package/src/skills/frontend-slides/SKILL.md +184 -0
- package/src/skills/frontend-slides/STYLE_PRESETS.md +330 -0
- package/src/skills/gateguard/SKILL.md +121 -0
- package/src/skills/github-ops/SKILL.md +144 -0
- package/src/skills/hookify-rules/SKILL.md +128 -0
- package/src/skills/knowledge-ops/SKILL.md +154 -0
- package/src/skills/liquid-glass-design/SKILL.md +279 -0
- package/src/skills/nestjs-patterns/SKILL.md +230 -0
- package/src/skills/security-bounty-hunter/SKILL.md +99 -0
- package/src/skills/swift-actor-persistence/SKILL.md +143 -0
- package/src/skills/swift-protocol-di-testing/SKILL.md +190 -0
- package/src/skills/swiftui-patterns/SKILL.md +259 -0
- package/src/skills/terminal-ops/SKILL.md +109 -0
- package/src/skills/ui-demo/SKILL.md +465 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ccp:import
|
|
3
|
+
description: Ingest external plans with conflict detection against project decisions before writing anything.
|
|
4
|
+
argument-hint: "--from <filepath>"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- AskUserQuestion
|
|
13
|
+
- Task
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<objective>
|
|
17
|
+
Import external plan files into the GSD planning system with conflict detection against PROJECT.md decisions.
|
|
18
|
+
|
|
19
|
+
- **--from**: Import an external plan file, detect conflicts, write as GSD PLAN.md, validate via gsd-plan-checker.
|
|
20
|
+
|
|
21
|
+
Future: `--prd` mode for PRD extraction is planned for a follow-up PR.
|
|
22
|
+
</objective>
|
|
23
|
+
|
|
24
|
+
<execution_context>
|
|
25
|
+
@~/.claude/pilot/workflows/import.md
|
|
26
|
+
@~/.claude/pilot/references/ui-brand.md
|
|
27
|
+
@~/.claude/pilot/references/gate-prompts.md
|
|
28
|
+
@~/.claude/pilot/references/doc-conflict-engine.md
|
|
29
|
+
</execution_context>
|
|
30
|
+
|
|
31
|
+
<context>
|
|
32
|
+
$ARGUMENTS
|
|
33
|
+
</context>
|
|
34
|
+
|
|
35
|
+
<process>
|
|
36
|
+
Execute the import workflow end-to-end.
|
|
37
|
+
</process>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ccp:ingest-docs
|
|
3
|
+
description: Scan a repo for mixed ADRs, PRDs, SPECs, and DOCs and bootstrap or merge the full .planning/ setup from them. Classifies each doc in parallel, synthesizes a consolidated context with a conflicts report, and routes to new-project or merge-milestone depending on whether .planning/ already exists.
|
|
4
|
+
argument-hint: "[path] [--mode new|merge] [--manifest <file>] [--resolve auto|interactive]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- AskUserQuestion
|
|
13
|
+
- Task
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<objective>
|
|
17
|
+
Build the full `.planning/` setup (or merge into an existing one) from multiple pre-existing planning documents — ADRs, PRDs, SPECs, DOCs — in one pass.
|
|
18
|
+
|
|
19
|
+
- **Net-new bootstrap** (`--mode new`, default when `.planning/` is absent): produces PROJECT.md + REQUIREMENTS.md + ROADMAP.md + STATE.md from synthesized doc content, delegating final generation to `gsd-roadmapper`.
|
|
20
|
+
- **Merge into existing** (`--mode merge`, default when `.planning/` is present): appends phases and requirements derived from the ingested docs; hard-blocks any contradiction with existing locked decisions.
|
|
21
|
+
|
|
22
|
+
Auto-synthesizes most conflicts using the precedence rule `ADR > SPEC > PRD > DOC` (overridable via manifest). Surfaces unresolved cases in `.planning/INGEST-CONFLICTS.md` with three buckets: auto-resolved, competing-variants, unresolved-blockers. The BLOCKER gate from the shared conflict engine prevents any destination file from being written when unresolved contradictions exist.
|
|
23
|
+
|
|
24
|
+
**Inputs:** directory-convention discovery (`docs/adr/`, `docs/prd/`, `docs/specs/`, `docs/rfc/`, root-level `{ADR,PRD,SPEC,RFC}-*.md`), or an explicit `--manifest <file>` YAML listing `{path, type, precedence?}` per doc.
|
|
25
|
+
|
|
26
|
+
**v1 constraints:** hard cap of 50 docs per invocation; `--resolve interactive` is reserved for a future release.
|
|
27
|
+
</objective>
|
|
28
|
+
|
|
29
|
+
<execution_context>
|
|
30
|
+
@~/.claude/pilot/workflows/ingest-docs.md
|
|
31
|
+
@~/.claude/pilot/references/ui-brand.md
|
|
32
|
+
@~/.claude/pilot/references/gate-prompts.md
|
|
33
|
+
@~/.claude/pilot/references/doc-conflict-engine.md
|
|
34
|
+
</execution_context>
|
|
35
|
+
|
|
36
|
+
<context>
|
|
37
|
+
$ARGUMENTS
|
|
38
|
+
</context>
|
|
39
|
+
|
|
40
|
+
<process>
|
|
41
|
+
Execute the ingest-docs workflow end-to-end. Preserve all approval gates (discovery, conflict report, routing) and the BLOCKER safety rule.
|
|
42
|
+
</process>
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ccp:intel
|
|
3
|
+
description: "Query, inspect, or refresh codebase intelligence files in .planning/intel/"
|
|
4
|
+
argument-hint: "[query <term>|status|diff|refresh]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Task
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
**STOP -- DO NOT READ THIS FILE. You are already reading it. This prompt was injected into your context by Claude Code's command system. Using the Read tool on this file wastes tokens. Begin executing Step 0 immediately.**
|
|
12
|
+
|
|
13
|
+
## Step 0 -- Banner
|
|
14
|
+
|
|
15
|
+
**Before ANY tool calls**, display this banner:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
CCP > INTEL
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Then proceed to Step 1.
|
|
22
|
+
|
|
23
|
+
## Step 1 -- Config Gate
|
|
24
|
+
|
|
25
|
+
Check if intel is enabled by reading `.planning/config.json` directly using the Read tool.
|
|
26
|
+
|
|
27
|
+
**DO NOT use the gsd-tools config get-value command** -- it hard-exits on missing keys.
|
|
28
|
+
|
|
29
|
+
1. Read `.planning/config.json` using the Read tool
|
|
30
|
+
2. If the file does not exist: display the disabled message below and **STOP**
|
|
31
|
+
3. Parse the JSON content. Check if `config.intel && config.intel.enabled === true`
|
|
32
|
+
4. If `intel.enabled` is NOT explicitly `true`: display the disabled message below and **STOP**
|
|
33
|
+
5. If `intel.enabled` is `true`: proceed to Step 2
|
|
34
|
+
|
|
35
|
+
**Disabled message:**
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
CCP > INTEL
|
|
39
|
+
|
|
40
|
+
Intel system is disabled. To activate:
|
|
41
|
+
|
|
42
|
+
gsd-sdk query config-set intel.enabled true
|
|
43
|
+
|
|
44
|
+
Then run /ccp:intel refresh to build the initial index.
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Step 2 -- Parse Argument
|
|
50
|
+
|
|
51
|
+
Parse `$ARGUMENTS` to determine the operation mode:
|
|
52
|
+
|
|
53
|
+
| Argument | Action |
|
|
54
|
+
|----------|--------|
|
|
55
|
+
| `query <term>` | Run inline query (Step 2a) |
|
|
56
|
+
| `status` | Run inline status check (Step 2b) |
|
|
57
|
+
| `diff` | Run inline diff check (Step 2c) |
|
|
58
|
+
| `refresh` | Spawn intel-updater agent (Step 3) |
|
|
59
|
+
| No argument or unknown | Show usage message |
|
|
60
|
+
|
|
61
|
+
**Usage message** (shown when no argument or unrecognized argument):
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
CCP > INTEL
|
|
65
|
+
|
|
66
|
+
Usage: /ccp:intel <mode>
|
|
67
|
+
|
|
68
|
+
Modes:
|
|
69
|
+
query <term> Search intel files for a term
|
|
70
|
+
status Show intel file freshness and staleness
|
|
71
|
+
diff Show changes since last snapshot
|
|
72
|
+
refresh Rebuild all intel files from codebase analysis
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Step 2a -- Query
|
|
76
|
+
|
|
77
|
+
Run:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
gsd-sdk query intel.query <term>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Parse the JSON output and display results:
|
|
84
|
+
- If the output contains `"disabled": true`, display the disabled message from Step 1 and **STOP**
|
|
85
|
+
- If no matches found, display: `No intel matches for '<term>'. Try /ccp:intel refresh to build the index.`
|
|
86
|
+
- Otherwise, display matching entries grouped by intel file
|
|
87
|
+
|
|
88
|
+
**STOP** after displaying results. Do not spawn an agent.
|
|
89
|
+
|
|
90
|
+
### Step 2b -- Status
|
|
91
|
+
|
|
92
|
+
Run:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
gsd-sdk query intel.status
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Parse the JSON output and display each intel file with:
|
|
99
|
+
- File name
|
|
100
|
+
- Last `updated_at` timestamp
|
|
101
|
+
- STALE or FRESH status (stale if older than 24 hours or missing)
|
|
102
|
+
|
|
103
|
+
**STOP** after displaying status. Do not spawn an agent.
|
|
104
|
+
|
|
105
|
+
### Step 2c -- Diff
|
|
106
|
+
|
|
107
|
+
Run:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
gsd-sdk query intel.diff
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Parse the JSON output and display:
|
|
114
|
+
- Added entries since last snapshot
|
|
115
|
+
- Removed entries since last snapshot
|
|
116
|
+
- Changed entries since last snapshot
|
|
117
|
+
|
|
118
|
+
If no snapshot exists, suggest running `refresh` first.
|
|
119
|
+
|
|
120
|
+
**STOP** after displaying diff. Do not spawn an agent.
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Step 3 -- Refresh (Agent Spawn)
|
|
125
|
+
|
|
126
|
+
Display before spawning:
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
CCP > Spawning intel-updater agent to analyze codebase...
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Spawn a Task:
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
Task(
|
|
136
|
+
description="Refresh codebase intelligence files",
|
|
137
|
+
prompt="You are the gsd-intel-updater agent. Your job is to analyze this codebase and write/update intelligence files in .planning/intel/.
|
|
138
|
+
|
|
139
|
+
Project root: ${CWD}
|
|
140
|
+
Prefer: gsd-sdk query <subcommand> (installed gsd-sdk on PATH). Legacy: node $HOME/.claude/pilot/bin/gsd-tools.cjs
|
|
141
|
+
|
|
142
|
+
Instructions:
|
|
143
|
+
1. Analyze the codebase structure, dependencies, APIs, and architecture
|
|
144
|
+
2. Write JSON intel files to .planning/intel/ (stack.json, api-map.json, dependency-graph.json, file-roles.json, arch-decisions.json)
|
|
145
|
+
3. Each file must have a _meta object with updated_at timestamp
|
|
146
|
+
4. Use `gsd-sdk query intel.extract-exports <file>` to analyze source files
|
|
147
|
+
5. Use `gsd-sdk query intel.patch-meta <file>` to update timestamps after writing
|
|
148
|
+
6. Use `gsd-sdk query intel.validate` to check your output
|
|
149
|
+
|
|
150
|
+
When complete, output: ## INTEL UPDATE COMPLETE
|
|
151
|
+
If something fails, output: ## INTEL UPDATE FAILED with details."
|
|
152
|
+
)
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Wait for the agent to complete.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Step 4 -- Post-Refresh Summary
|
|
160
|
+
|
|
161
|
+
After the agent completes, run:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
gsd-sdk query intel.status
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Display a summary showing:
|
|
168
|
+
- Which intel files were written or updated
|
|
169
|
+
- Last update timestamps
|
|
170
|
+
- Overall health of the intel index
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## Anti-Patterns
|
|
175
|
+
|
|
176
|
+
1. DO NOT spawn an agent for query/status/diff operations -- these are inline CLI calls
|
|
177
|
+
2. DO NOT modify intel files directly -- the agent handles writes during refresh
|
|
178
|
+
3. DO NOT skip the config gate check
|
|
179
|
+
4. DO NOT use the gsd-tools config get-value CLI for the config gate -- it exits on missing keys
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ccp:plan-review-convergence
|
|
3
|
+
description: "Cross-AI plan convergence loop — replan with review feedback until no HIGH concerns remain (max 3 cycles)"
|
|
4
|
+
argument-hint: "<phase> [--codex] [--gemini] [--claude] [--opencode] [--ollama] [--lm-studio] [--llama-cpp] [--text] [--ws <name>] [--all] [--max-cycles N]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- Agent
|
|
12
|
+
- AskUserQuestion
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
<objective>
|
|
16
|
+
Cross-AI plan convergence loop — an outer revision gate around gsd-review and gsd-planner.
|
|
17
|
+
Repeatedly: review plans with external AI CLIs → if HIGH concerns found → replan with --reviews feedback → re-review. Stops when no HIGH concerns remain or max cycles reached.
|
|
18
|
+
|
|
19
|
+
**Flow:** Agent→Skill("gsd-plan-phase") → Agent→Skill("gsd-review") → check HIGHs → Agent→Skill("gsd-plan-phase --reviews") → Agent→Skill("gsd-review") → ... → Converge or escalate
|
|
20
|
+
|
|
21
|
+
Replaces gsd-plan-phase's internal gsd-plan-checker with external AI reviewers (codex, gemini, etc.). Each step runs inside an isolated Agent that calls the corresponding existing Skill — orchestrator only does loop control.
|
|
22
|
+
|
|
23
|
+
**Orchestrator role:** Parse arguments, validate phase, spawn Agents for existing Skills, check HIGHs, stall detection, escalation gate.
|
|
24
|
+
</objective>
|
|
25
|
+
|
|
26
|
+
<execution_context>
|
|
27
|
+
@$HOME/.claude/pilot/workflows/plan-review-convergence.md
|
|
28
|
+
@$HOME/.claude/pilot/references/revision-loop.md
|
|
29
|
+
@$HOME/.claude/pilot/references/gates.md
|
|
30
|
+
@$HOME/.claude/pilot/references/agent-contracts.md
|
|
31
|
+
</execution_context>
|
|
32
|
+
|
|
33
|
+
<runtime_note>
|
|
34
|
+
**Copilot (VS Code):** Use `vscode_askquestions` wherever this workflow calls `AskUserQuestion`. They are equivalent — `vscode_askquestions` is the VS Code Copilot implementation of the same interactive question API. Do not skip questioning steps because `AskUserQuestion` appears unavailable; use `vscode_askquestions` instead.
|
|
35
|
+
</runtime_note>
|
|
36
|
+
|
|
37
|
+
<context>
|
|
38
|
+
Phase number: extracted from $ARGUMENTS (required)
|
|
39
|
+
|
|
40
|
+
**Flags:**
|
|
41
|
+
- `--codex` — Use Codex CLI as reviewer (default if no reviewer specified)
|
|
42
|
+
- `--gemini` — Use Gemini CLI as reviewer
|
|
43
|
+
- `--claude` — Use Claude CLI as reviewer (separate session)
|
|
44
|
+
- `--opencode` — Use OpenCode as reviewer
|
|
45
|
+
- `--ollama` — Use local Ollama server as reviewer (OpenAI-compatible, default host `http://localhost:11434`; configure model via `review.models.ollama`)
|
|
46
|
+
- `--lm-studio` — Use local LM Studio server as reviewer (OpenAI-compatible, default host `http://localhost:1234`; configure model via `review.models.lm_studio`)
|
|
47
|
+
- `--llama-cpp` — Use local llama.cpp server as reviewer (OpenAI-compatible, default host `http://localhost:8080`; configure model via `review.models.llama_cpp`)
|
|
48
|
+
- `--all` — Use all available CLIs and running local model servers
|
|
49
|
+
- `--max-cycles N` — Maximum replan→review cycles (default: 3)
|
|
50
|
+
|
|
51
|
+
**Feature gate:** This command requires `workflow.plan_review_convergence=true`. Enable with:
|
|
52
|
+
`gsd config-set workflow.plan_review_convergence true`
|
|
53
|
+
</context>
|
|
54
|
+
|
|
55
|
+
<process>
|
|
56
|
+
Execute the plan-review-convergence workflow from @$HOME/.claude/pilot/workflows/plan-review-convergence.md end-to-end.
|
|
57
|
+
Preserve all workflow gates (pre-flight, revision loop, stall detection, escalation).
|
|
58
|
+
</process>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ccp:scan
|
|
3
|
+
description: Rapid codebase assessment — lightweight alternative to /ccp:map-codebase
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Bash
|
|
8
|
+
- Grep
|
|
9
|
+
- Glob
|
|
10
|
+
- Agent
|
|
11
|
+
- AskUserQuestion
|
|
12
|
+
---
|
|
13
|
+
<objective>
|
|
14
|
+
Run a focused codebase scan for a single area, producing targeted documents in `.planning/codebase/`.
|
|
15
|
+
Accepts an optional `--focus` flag: `tech`, `arch`, `quality`, `concerns`, or `tech+arch` (default).
|
|
16
|
+
|
|
17
|
+
Lightweight alternative to `/ccp:map-codebase` — spawns one mapper agent instead of four parallel ones.
|
|
18
|
+
</objective>
|
|
19
|
+
|
|
20
|
+
<execution_context>
|
|
21
|
+
@~/.claude/pilot/workflows/scan.md
|
|
22
|
+
</execution_context>
|
|
23
|
+
|
|
24
|
+
<process>
|
|
25
|
+
Execute the scan workflow from @~/.claude/pilot/workflows/scan.md end-to-end.
|
|
26
|
+
</process>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ccp:sketch-wrap-up
|
|
3
|
+
description: Package sketch design findings into a persistent project skill for future build conversations
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Edit
|
|
8
|
+
- Bash
|
|
9
|
+
- Grep
|
|
10
|
+
- Glob
|
|
11
|
+
- AskUserQuestion
|
|
12
|
+
---
|
|
13
|
+
<objective>
|
|
14
|
+
Curate sketch design findings and package them into a persistent project skill that Claude
|
|
15
|
+
auto-loads when building the real UI. Also writes a summary to `.planning/sketches/` for
|
|
16
|
+
project history. Output skill goes to `./.claude/skills/sketch-findings-[project]/` (project-local).
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
@~/.claude/pilot/workflows/sketch-wrap-up.md
|
|
21
|
+
@~/.claude/pilot/references/ui-brand.md
|
|
22
|
+
</execution_context>
|
|
23
|
+
|
|
24
|
+
<runtime_note>
|
|
25
|
+
**Copilot (VS Code):** Use `vscode_askquestions` wherever this workflow calls `AskUserQuestion`.
|
|
26
|
+
</runtime_note>
|
|
27
|
+
|
|
28
|
+
<process>
|
|
29
|
+
Execute the sketch-wrap-up workflow from @~/.claude/pilot/workflows/sketch-wrap-up.md end-to-end.
|
|
30
|
+
Preserve all curation gates (per-sketch review, grouping approval, CLAUDE.md routing line).
|
|
31
|
+
</process>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ccp:sketch
|
|
3
|
+
description: Sketch UI/design ideas with throwaway HTML mockups, or propose what to sketch next (frontier mode)
|
|
4
|
+
argument-hint: "[design idea to explore] [--quick] [--text] or [frontier]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Grep
|
|
11
|
+
- Glob
|
|
12
|
+
- AskUserQuestion
|
|
13
|
+
- WebSearch
|
|
14
|
+
- WebFetch
|
|
15
|
+
- mcp__context7__resolve-library-id
|
|
16
|
+
- mcp__context7__query-docs
|
|
17
|
+
---
|
|
18
|
+
<objective>
|
|
19
|
+
Explore design directions through throwaway HTML mockups before committing to implementation.
|
|
20
|
+
Each sketch produces 2-3 variants for comparison. Sketches live in `.planning/sketches/` and
|
|
21
|
+
integrate with GSD commit patterns, state tracking, and handoff workflows. Loads spike
|
|
22
|
+
findings to ground mockups in real data shapes and validated interaction patterns.
|
|
23
|
+
|
|
24
|
+
Two modes:
|
|
25
|
+
- **Idea mode** (default) — describe a design idea to sketch
|
|
26
|
+
- **Frontier mode** (no argument or "frontier") — analyzes existing sketch landscape and proposes consistency and frontier sketches
|
|
27
|
+
|
|
28
|
+
Does not require `/ccp:new-project` — auto-creates `.planning/sketches/` if needed.
|
|
29
|
+
</objective>
|
|
30
|
+
|
|
31
|
+
<execution_context>
|
|
32
|
+
@~/.claude/pilot/workflows/sketch.md
|
|
33
|
+
@~/.claude/pilot/references/ui-brand.md
|
|
34
|
+
@~/.claude/pilot/references/sketch-theme-system.md
|
|
35
|
+
@~/.claude/pilot/references/sketch-interactivity.md
|
|
36
|
+
@~/.claude/pilot/references/sketch-tooling.md
|
|
37
|
+
@~/.claude/pilot/references/sketch-variant-patterns.md
|
|
38
|
+
</execution_context>
|
|
39
|
+
|
|
40
|
+
<runtime_note>
|
|
41
|
+
**Copilot (VS Code):** Use `vscode_askquestions` wherever this workflow calls `AskUserQuestion`.
|
|
42
|
+
</runtime_note>
|
|
43
|
+
|
|
44
|
+
<context>
|
|
45
|
+
Design idea: $ARGUMENTS
|
|
46
|
+
|
|
47
|
+
**Available flags:**
|
|
48
|
+
- `--quick` — Skip mood/direction intake, jump straight to decomposition and building. Use when the design direction is already clear.
|
|
49
|
+
</context>
|
|
50
|
+
|
|
51
|
+
<process>
|
|
52
|
+
Execute the sketch workflow from @~/.claude/pilot/workflows/sketch.md end-to-end.
|
|
53
|
+
Preserve all workflow gates (intake, decomposition, target stack research, variant evaluation, MANIFEST updates, commit patterns).
|
|
54
|
+
</process>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ccp:spec-phase
|
|
3
|
+
description: Socratic spec refinement — clarify WHAT a phase delivers with ambiguity scoring before discuss-phase. Produces a SPEC.md with falsifiable requirements locked before implementation decisions begin.
|
|
4
|
+
argument-hint: "<phase> [--auto] [--text]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- AskUserQuestion
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<objective>
|
|
15
|
+
Clarify phase requirements through structured Socratic questioning with quantitative ambiguity scoring.
|
|
16
|
+
|
|
17
|
+
**Position in workflow:** `spec-phase → discuss-phase → plan-phase → execute-phase → verify`
|
|
18
|
+
|
|
19
|
+
**How it works:**
|
|
20
|
+
1. Load phase context (PROJECT.md, REQUIREMENTS.md, ROADMAP.md, STATE.md)
|
|
21
|
+
2. Scout the codebase — understand current state before asking questions
|
|
22
|
+
3. Run Socratic interview loop (up to 6 rounds, rotating perspectives)
|
|
23
|
+
4. Score ambiguity across 4 weighted dimensions after each round
|
|
24
|
+
5. Gate: ambiguity ≤ 0.20 AND all dimensions meet minimums → write SPEC.md
|
|
25
|
+
6. Commit SPEC.md — discuss-phase picks it up automatically on next run
|
|
26
|
+
|
|
27
|
+
**Output:** `{phase_dir}/{padded_phase}-SPEC.md` — falsifiable requirements that lock "what/why" before discuss-phase handles "how"
|
|
28
|
+
</objective>
|
|
29
|
+
|
|
30
|
+
<execution_context>
|
|
31
|
+
@~/.claude/pilot/workflows/spec-phase.md
|
|
32
|
+
@~/.claude/pilot/templates/spec.md
|
|
33
|
+
</execution_context>
|
|
34
|
+
|
|
35
|
+
<runtime_note>
|
|
36
|
+
**Copilot (VS Code):** Use `vscode_askquestions` wherever this workflow calls `AskUserQuestion`. They are equivalent.
|
|
37
|
+
</runtime_note>
|
|
38
|
+
|
|
39
|
+
<context>
|
|
40
|
+
Phase number: $ARGUMENTS (required)
|
|
41
|
+
|
|
42
|
+
**Flags:**
|
|
43
|
+
- `--auto` — Skip interactive questions; Claude selects recommended defaults and writes SPEC.md
|
|
44
|
+
- `--text` — Use plain-text numbered lists instead of TUI menus (required for `/rc` remote sessions)
|
|
45
|
+
|
|
46
|
+
Context files are resolved in-workflow using `init phase-op`.
|
|
47
|
+
</context>
|
|
48
|
+
|
|
49
|
+
<process>
|
|
50
|
+
Execute the spec-phase workflow from @~/.claude/pilot/workflows/spec-phase.md end-to-end.
|
|
51
|
+
|
|
52
|
+
**MANDATORY:** Read the workflow file BEFORE taking any action. The workflow contains the complete step-by-step process including the Socratic interview loop, ambiguity scoring gate, and SPEC.md generation. Do not improvise from the objective summary above.
|
|
53
|
+
</process>
|
|
54
|
+
|
|
55
|
+
<success_criteria>
|
|
56
|
+
- Codebase scouted for current state before questioning begins
|
|
57
|
+
- All 4 ambiguity dimensions scored after each interview round
|
|
58
|
+
- Gate passed: ambiguity ≤ 0.20 AND all dimension minimums met
|
|
59
|
+
- SPEC.md written with falsifiable requirements, explicit boundaries, and acceptance criteria
|
|
60
|
+
- SPEC.md committed atomically
|
|
61
|
+
- User knows they can now run /ccp:discuss-phase which will load SPEC.md automatically
|
|
62
|
+
</success_criteria>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ccp:spike-wrap-up
|
|
3
|
+
description: Package spike findings into a persistent project skill for future build conversations
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Edit
|
|
8
|
+
- Bash
|
|
9
|
+
- Grep
|
|
10
|
+
- Glob
|
|
11
|
+
- AskUserQuestion
|
|
12
|
+
---
|
|
13
|
+
<objective>
|
|
14
|
+
Curate spike experiment findings and package them into a persistent project skill that Claude
|
|
15
|
+
auto-loads in future build conversations. Also writes a summary to `.planning/spikes/` for
|
|
16
|
+
project history. Output skill goes to `./.claude/skills/spike-findings-[project]/` (project-local).
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
@~/.claude/pilot/workflows/spike-wrap-up.md
|
|
21
|
+
@~/.claude/pilot/references/ui-brand.md
|
|
22
|
+
</execution_context>
|
|
23
|
+
|
|
24
|
+
<runtime_note>
|
|
25
|
+
**Copilot (VS Code):** Use `vscode_askquestions` wherever this workflow calls `AskUserQuestion`.
|
|
26
|
+
</runtime_note>
|
|
27
|
+
|
|
28
|
+
<process>
|
|
29
|
+
Execute the spike-wrap-up workflow from @~/.claude/pilot/workflows/spike-wrap-up.md end-to-end.
|
|
30
|
+
Preserve all workflow gates (auto-include, feature-area grouping, skill synthesis, CLAUDE.md routing line, intelligent next-step routing).
|
|
31
|
+
</process>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ccp:spike
|
|
3
|
+
description: Spike an idea through experiential exploration, or propose what to spike next (frontier mode)
|
|
4
|
+
argument-hint: "[idea to validate] [--quick] [--text] or [frontier]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Grep
|
|
11
|
+
- Glob
|
|
12
|
+
- AskUserQuestion
|
|
13
|
+
- WebSearch
|
|
14
|
+
- WebFetch
|
|
15
|
+
- mcp__context7__resolve-library-id
|
|
16
|
+
- mcp__context7__query-docs
|
|
17
|
+
---
|
|
18
|
+
<objective>
|
|
19
|
+
Spike an idea through experiential exploration — build focused experiments to feel the pieces
|
|
20
|
+
of a future app, validate feasibility, and produce verified knowledge for the real build.
|
|
21
|
+
Spikes live in `.planning/spikes/` and integrate with GSD commit patterns, state tracking,
|
|
22
|
+
and handoff workflows.
|
|
23
|
+
|
|
24
|
+
Two modes:
|
|
25
|
+
- **Idea mode** (default) — describe an idea to spike
|
|
26
|
+
- **Frontier mode** (no argument or "frontier") — analyzes existing spike landscape and proposes integration and frontier spikes
|
|
27
|
+
|
|
28
|
+
Does not require `/ccp:new-project` — auto-creates `.planning/spikes/` if needed.
|
|
29
|
+
</objective>
|
|
30
|
+
|
|
31
|
+
<execution_context>
|
|
32
|
+
@~/.claude/pilot/workflows/spike.md
|
|
33
|
+
@~/.claude/pilot/references/ui-brand.md
|
|
34
|
+
</execution_context>
|
|
35
|
+
|
|
36
|
+
<runtime_note>
|
|
37
|
+
**Copilot (VS Code):** Use `vscode_askquestions` wherever this workflow calls `AskUserQuestion`.
|
|
38
|
+
</runtime_note>
|
|
39
|
+
|
|
40
|
+
<context>
|
|
41
|
+
Idea: $ARGUMENTS
|
|
42
|
+
|
|
43
|
+
**Available flags:**
|
|
44
|
+
- `--quick` — Skip decomposition/alignment, jump straight to building. Use when you already know what to spike.
|
|
45
|
+
- `--text` — Use plain-text numbered lists instead of AskUserQuestion (for non-Claude runtimes).
|
|
46
|
+
</context>
|
|
47
|
+
|
|
48
|
+
<process>
|
|
49
|
+
Execute the spike workflow from @~/.claude/pilot/workflows/spike.md end-to-end.
|
|
50
|
+
Preserve all workflow gates (prior spike check, decomposition, research, risk ordering, observability assessment, verification, MANIFEST updates, commit patterns).
|
|
51
|
+
</process>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ccp:ultraplan-phase
|
|
3
|
+
description: "[BETA] Offload plan phase to Claude Code's ultraplan cloud — drafts remotely while terminal stays free, review in browser with inline comments, import back via /ccp:import. Claude Code only."
|
|
4
|
+
argument-hint: "[phase-number]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Glob
|
|
9
|
+
- Grep
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Offload GSD's plan phase to Claude Code's ultraplan cloud infrastructure.
|
|
14
|
+
|
|
15
|
+
Ultraplan drafts the plan in a remote cloud session while your terminal stays free.
|
|
16
|
+
Review and comment on the plan in your browser, then import it back via /ccp:import --from.
|
|
17
|
+
|
|
18
|
+
⚠ BETA: ultraplan is in research preview. Use /ccp:plan-phase for stable local planning.
|
|
19
|
+
Requirements: Claude Code v2.1.91+, claude.ai account, GitHub repository.
|
|
20
|
+
</objective>
|
|
21
|
+
|
|
22
|
+
<execution_context>
|
|
23
|
+
@~/.claude/pilot/workflows/ultraplan-phase.md
|
|
24
|
+
@~/.claude/pilot/references/ui-brand.md
|
|
25
|
+
</execution_context>
|
|
26
|
+
|
|
27
|
+
<context>
|
|
28
|
+
$ARGUMENTS
|
|
29
|
+
</context>
|
|
30
|
+
|
|
31
|
+
<process>
|
|
32
|
+
Execute the ultraplan-phase workflow end-to-end.
|
|
33
|
+
</process>
|