@dzhechkov/p-replicator 1.0.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 +314 -0
- package/bin/cli.js +4 -0
- package/package.json +62 -0
- package/src/cli.js +160 -0
- package/src/commands/doctor.js +151 -0
- package/src/commands/init.js +155 -0
- package/src/commands/list.js +133 -0
- package/src/commands/remove.js +111 -0
- package/src/commands/update.js +102 -0
- package/src/utils.js +280 -0
- package/templates/.claude/agents/doc-validator.md +92 -0
- package/templates/.claude/agents/harvest-coordinator.md +91 -0
- package/templates/.claude/agents/product-discoverer.md +57 -0
- package/templates/.claude/agents/replicate-coordinator.md +98 -0
- package/templates/.claude/commands/harvest.md +106 -0
- package/templates/.claude/commands/replicate.md +389 -0
- package/templates/.claude/rules/replicate-pipeline.md +92 -0
- package/templates/.claude/skills/brutal-honesty-review/README.md +218 -0
- package/templates/.claude/skills/brutal-honesty-review/SKILL.md +225 -0
- package/templates/.claude/skills/brutal-honesty-review/resources/assessment-rubrics.md +295 -0
- package/templates/.claude/skills/brutal-honesty-review/resources/review-template.md +102 -0
- package/templates/.claude/skills/brutal-honesty-review/scripts/assess-code.sh +179 -0
- package/templates/.claude/skills/brutal-honesty-review/scripts/assess-tests.sh +223 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/SKILL.md +374 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/claude-md-strategy.md +178 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/enhanced-recommendations.md +416 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/extended-mapping.md +370 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/templates/automation-commands.md +733 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/templates/ddd-agents.md +416 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/templates/ddd-hooks-commands.md +524 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/templates/ddd-skills.md +350 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/templates/enhanced-claude-md.md +235 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/templates/feature-lifecycle-ent.md +400 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/templates/feature-lifecycle.md +325 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/templates/feature-suggestions.md +423 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/templates/insights-system.md +349 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/templates/mcp.md +274 -0
- package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/templates/start-command.md +283 -0
- package/templates/.claude/skills/explore/SKILL.md +215 -0
- package/templates/.claude/skills/explore/references/questioning-techniques.md +151 -0
- package/templates/.claude/skills/explore/references/task-brief-templates.md +355 -0
- package/templates/.claude/skills/goap-research-ed25519/SKILL.md +415 -0
- package/templates/.claude/skills/goap-research-ed25519/references/ed25519-verification.md +658 -0
- package/templates/.claude/skills/goap-research-ed25519/references/research-actions.md +544 -0
- package/templates/.claude/skills/goap-research-ed25519/references/source-evaluation.md +560 -0
- package/templates/.claude/skills/goap-research-ed25519/scripts/ed25519_verifier.py +662 -0
- package/templates/.claude/skills/goap-research-ed25519/scripts/goap_planner.py +720 -0
- package/templates/.claude/skills/knowledge-extractor/SKILL.md +412 -0
- package/templates/.claude/skills/knowledge-extractor/examples/rate-limiting-extraction.md +259 -0
- package/templates/.claude/skills/knowledge-extractor/modules/01-agent-review.md +192 -0
- package/templates/.claude/skills/knowledge-extractor/modules/02-classify.md +122 -0
- package/templates/.claude/skills/knowledge-extractor/modules/03-decontextualize.md +156 -0
- package/templates/.claude/skills/knowledge-extractor/modules/04-integrate.md +178 -0
- package/templates/.claude/skills/knowledge-extractor/references/artifact-categories.md +342 -0
- package/templates/.claude/skills/knowledge-extractor/references/decontextualization-guide.md +247 -0
- package/templates/.claude/skills/knowledge-extractor/references/maturity-model.md +153 -0
- package/templates/.claude/skills/knowledge-extractor/templates/artifact-card.md +60 -0
- package/templates/.claude/skills/knowledge-extractor/templates/harvest-report.md +70 -0
- package/templates/.claude/skills/knowledge-extractor/templates/toolkit-harvest.md +38 -0
- package/templates/.claude/skills/pipeline-forge/SKILL.md +523 -0
- package/templates/.claude/skills/pipeline-forge/examples/replicate-analysis.md +291 -0
- package/templates/.claude/skills/pipeline-forge/references/patterns-catalog.md +408 -0
- package/templates/.claude/skills/pipeline-forge/references/quality-gates.md +268 -0
- package/templates/.claude/skills/pipeline-forge/references/skill-anatomy.md +292 -0
- package/templates/.claude/skills/pipeline-forge/templates/agent-template.md +60 -0
- package/templates/.claude/skills/pipeline-forge/templates/command-template.md +80 -0
- package/templates/.claude/skills/pipeline-forge/templates/pipeline-template.md +137 -0
- package/templates/.claude/skills/pipeline-forge/templates/skill-template.md +132 -0
- package/templates/.claude/skills/problem-solver-enhanced/SKILL.md +562 -0
- package/templates/.claude/skills/requirements-validator/SKILL.md +121 -0
- package/templates/.claude/skills/requirements-validator/assets/templates/bdd-feature-template.feature +69 -0
- package/templates/.claude/skills/requirements-validator/references/bdd-patterns.md +184 -0
- package/templates/.claude/skills/requirements-validator/references/invest-criteria.md +121 -0
- package/templates/.claude/skills/requirements-validator/references/scoring-system.md +134 -0
- package/templates/.claude/skills/requirements-validator/references/smart-criteria.md +130 -0
- package/templates/.claude/skills/reverse-engineering-unicorn/SKILL.md +194 -0
- package/templates/.claude/skills/reverse-engineering-unicorn/examples/noom-cjm-example.md +100 -0
- package/templates/.claude/skills/reverse-engineering-unicorn/examples/noom-module1-example.md +88 -0
- package/templates/.claude/skills/reverse-engineering-unicorn/modules/01-intelligence.md +328 -0
- package/templates/.claude/skills/reverse-engineering-unicorn/modules/02-product-customers.md +221 -0
- package/templates/.claude/skills/reverse-engineering-unicorn/modules/025-cjm-prototype.md +206 -0
- package/templates/.claude/skills/reverse-engineering-unicorn/modules/03-market-competition.md +402 -0
- package/templates/.claude/skills/reverse-engineering-unicorn/modules/04-business-finance.md +287 -0
- package/templates/.claude/skills/reverse-engineering-unicorn/modules/05-growth-engine.md +290 -0
- package/templates/.claude/skills/reverse-engineering-unicorn/modules/06-playbook-synthesis.md +286 -0
- package/templates/.claude/skills/reverse-engineering-unicorn/references/blue-ocean-canvas.md +39 -0
- package/templates/.claude/skills/reverse-engineering-unicorn/references/industry-benchmarks.md +67 -0
- package/templates/.claude/skills/reverse-engineering-unicorn/references/jtbd-canvas.md +48 -0
- package/templates/.claude/skills/sparc-prd-mini/SKILL.md +955 -0
- package/templates/.claude/skills/sparc-prd-mini/references/sparc-methodology.md +360 -0
- package/templates/.claude/skills/sparc-prd-mini/templates/CLAUDE.md +91 -0
- package/templates/.claude/skills/sparc-prd-mini/templates/prd.md +336 -0
package/templates/.claude/skills/cc-toolkit-generator-enhanced/references/templates/start-command.md
ADDED
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
# /start Command Template
|
|
2
|
+
|
|
3
|
+
Use this template to generate the `/start` bootstrap command for any project.
|
|
4
|
+
Adapt all placeholders to the specific project's architecture, tech stack, and documentation.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
```markdown
|
|
9
|
+
---
|
|
10
|
+
description: Bootstrap entire {{PROJECT_NAME}} project from documentation. Generates monorepo skeleton, all packages, Docker configs, {{IF_DATABASE: database schema,}} core modules, and basic tests. $ARGUMENTS: optional flags --skip-tests, --skip-seed, --dry-run.
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# /start $ARGUMENTS
|
|
14
|
+
|
|
15
|
+
## Purpose
|
|
16
|
+
|
|
17
|
+
One-command project generation from documentation → working monorepo with `docker compose up`.
|
|
18
|
+
|
|
19
|
+
## Prerequisites
|
|
20
|
+
|
|
21
|
+
- Documentation in `docs/` directory (SPARC or idea2prd-manual output)
|
|
22
|
+
- CC toolkit in project root (CLAUDE.md, .claude/, .mcp.json)
|
|
23
|
+
- {{RUNTIME_PREREQUISITES}}
|
|
24
|
+
- Docker + Docker Compose installed
|
|
25
|
+
- Git initialized
|
|
26
|
+
|
|
27
|
+
## Process
|
|
28
|
+
|
|
29
|
+
### Phase 1: Foundation (sequential — everything depends on this)
|
|
30
|
+
|
|
31
|
+
1. **Read all project docs** to build full context:
|
|
32
|
+
{{DOCS_TO_READ}}
|
|
33
|
+
|
|
34
|
+
2. **Generate root configs:**
|
|
35
|
+
- `package.json` {{ROOT_PACKAGE_DETAILS}}
|
|
36
|
+
- `docker-compose.yml` (from Architecture)
|
|
37
|
+
- `.env.example` (from Completion/deployment docs)
|
|
38
|
+
- `.gitignore`
|
|
39
|
+
- {{ADDITIONAL_ROOT_CONFIGS}}
|
|
40
|
+
|
|
41
|
+
3. **Git commit:** `chore: project root configuration`
|
|
42
|
+
|
|
43
|
+
### Phase 2: Packages (parallel via Task tool ⚡)
|
|
44
|
+
|
|
45
|
+
Launch {{NUM_TASKS}} parallel tasks:
|
|
46
|
+
|
|
47
|
+
{{FOR_EACH_PACKAGE}}
|
|
48
|
+
#### Task {{LETTER}}: {{PACKAGE_PATH}} ⚡
|
|
49
|
+
|
|
50
|
+
Read and use as source:
|
|
51
|
+
{{PACKAGE_DOC_REFERENCES}}
|
|
52
|
+
|
|
53
|
+
Generate:
|
|
54
|
+
{{PACKAGE_FILE_LIST}}
|
|
55
|
+
|
|
56
|
+
**Commits:** {{PACKAGE_COMMITS}}
|
|
57
|
+
{{/FOR_EACH_PACKAGE}}
|
|
58
|
+
|
|
59
|
+
### Phase 3: Integration (sequential)
|
|
60
|
+
|
|
61
|
+
1. **Verify cross-package imports** (shared modules used correctly)
|
|
62
|
+
2. **Docker build:** `docker compose build`
|
|
63
|
+
3. **Start services:** `docker compose up -d`
|
|
64
|
+
{{IF_DATABASE}}
|
|
65
|
+
4. **Database setup:**
|
|
66
|
+
- `{{MIGRATION_COMMAND}}`
|
|
67
|
+
- `{{SEED_COMMAND}}`
|
|
68
|
+
{{/IF_DATABASE}}
|
|
69
|
+
{{IF_NO_DATABASE}}
|
|
70
|
+
4. *No database migration needed for this project*
|
|
71
|
+
{{/IF_NO_DATABASE}}
|
|
72
|
+
5. **Health check:** `{{HEALTH_CHECK_COMMAND}}`
|
|
73
|
+
6. **Run tests:** {{TEST_COMMANDS}}
|
|
74
|
+
7. **Git commit:** `chore: verify docker integration`
|
|
75
|
+
|
|
76
|
+
### Phase 4: Finalize
|
|
77
|
+
|
|
78
|
+
1. Generate/update `README.md` with quick start instructions
|
|
79
|
+
2. Final git tag: `git tag v0.1.0-scaffold`
|
|
80
|
+
3. Report summary: files generated, services running, what needs manual attention
|
|
81
|
+
|
|
82
|
+
## Output
|
|
83
|
+
|
|
84
|
+
After /start completes:
|
|
85
|
+
```
|
|
86
|
+
{{PROJECT_STRUCTURE_AFTER_INIT}}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Flags
|
|
90
|
+
|
|
91
|
+
- `--skip-tests` — skip test file generation (faster, not recommended)
|
|
92
|
+
{{IF_DATABASE}}
|
|
93
|
+
- `--skip-seed` — skip database seeding
|
|
94
|
+
{{/IF_DATABASE}}
|
|
95
|
+
- `--dry-run` — show plan without executing
|
|
96
|
+
|
|
97
|
+
## Estimated Time
|
|
98
|
+
|
|
99
|
+
- With parallel tasks: {{ESTIMATED_TIME}}
|
|
100
|
+
- Files generated: {{ESTIMATED_FILES}}
|
|
101
|
+
- Commits: {{ESTIMATED_COMMITS}}
|
|
102
|
+
|
|
103
|
+
## Error Recovery
|
|
104
|
+
|
|
105
|
+
If a task fails mid-generation:
|
|
106
|
+
- All completed phases are committed to git
|
|
107
|
+
- Re-run `/start` — it detects existing files and skips completed phases
|
|
108
|
+
- Or fix the issue manually and continue
|
|
109
|
+
|
|
110
|
+
## Swarm Agents Used
|
|
111
|
+
|
|
112
|
+
| Phase | Agents | Parallelism |
|
|
113
|
+
|-------|--------|-------------|
|
|
114
|
+
| Phase 1 | Main | Sequential |
|
|
115
|
+
| Phase 2 | {{NUM_TASKS}} Task tools | ⚡ Parallel |
|
|
116
|
+
| Phase 3 | Main | Sequential |
|
|
117
|
+
| Phase 4 | Main | Sequential |
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Fill Instructions
|
|
123
|
+
|
|
124
|
+
### DOCS_TO_READ
|
|
125
|
+
|
|
126
|
+
List ALL documentation files the /start should read.
|
|
127
|
+
|
|
128
|
+
**For SPARC pipeline:**
|
|
129
|
+
```markdown
|
|
130
|
+
- `docs/Architecture.md` → monorepo structure, Docker Compose, tech stack
|
|
131
|
+
- `docs/Specification.md` → data model, API endpoints, NFRs
|
|
132
|
+
- `docs/Pseudocode.md` → core algorithms, business logic
|
|
133
|
+
- `docs/Completion.md` → env config, deployment setup
|
|
134
|
+
- `docs/PRD.md` → features, user personas (for README)
|
|
135
|
+
- `docs/Refinement.md` → edge cases, testing strategy
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**For idea2prd-manual docs, also include:**
|
|
139
|
+
```markdown
|
|
140
|
+
- `docs/ddd/strategic/` → bounded contexts, context map
|
|
141
|
+
- `docs/ddd/tactical/` → aggregates, entities, events
|
|
142
|
+
- `docs/adr/` → technology decisions
|
|
143
|
+
- `docs/tests/*.feature` → Gherkin test scenarios
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### FOR_EACH_PACKAGE
|
|
147
|
+
|
|
148
|
+
Create one Task block per independent package/service from Architecture.
|
|
149
|
+
Each Task MUST include:
|
|
150
|
+
1. **Doc references** — which docs to read for this package
|
|
151
|
+
2. **File list** — all files to generate (source, configs, tests)
|
|
152
|
+
3. **Commits** — semantic commit messages per logical group
|
|
153
|
+
|
|
154
|
+
Mark tasks as ⚡ parallel when they have no cross-dependencies.
|
|
155
|
+
Tasks that depend on shared modules should note the dependency.
|
|
156
|
+
|
|
157
|
+
**For single-app monorepos (e.g. Next.js):**
|
|
158
|
+
Phase 2 may have only 1-2 tasks. This is normal — not all projects are multi-service.
|
|
159
|
+
Example: `⚡ Task A: apps/web` + `⚡ Task B: packages/shared`
|
|
160
|
+
|
|
161
|
+
**For multi-service monorepos:**
|
|
162
|
+
One task per service. Example: `⚡ Task A: packages/shared`, `⚡ Task B: packages/backend`, `⚡ Task C: packages/frontend`
|
|
163
|
+
|
|
164
|
+
### IF_DATABASE / IF_NO_DATABASE
|
|
165
|
+
|
|
166
|
+
Check Architecture.md for database presence:
|
|
167
|
+
- If PostgreSQL/MongoDB/MySQL/Redis mentioned → use `{{IF_DATABASE}}` block
|
|
168
|
+
- Set `{{MIGRATION_COMMAND}}` to correct ORM command:
|
|
169
|
+
- Prisma: `npx prisma migrate dev --name init`
|
|
170
|
+
- TypeORM: `npx typeorm migration:run`
|
|
171
|
+
- Drizzle: `npx drizzle-kit push`
|
|
172
|
+
- Knex: `npx knex migrate:latest`
|
|
173
|
+
- Raw SQL: `psql -f init.sql`
|
|
174
|
+
- Set `{{SEED_COMMAND}}` similarly
|
|
175
|
+
- If NO database in Architecture → use `{{IF_NO_DATABASE}}` block, remove --skip-seed flag
|
|
176
|
+
|
|
177
|
+
### Key Principles
|
|
178
|
+
|
|
179
|
+
1. **Docs as source of truth** — every Task must reference specific docs, never generate from memory
|
|
180
|
+
2. **Maximize parallelism** — independent packages run as parallel Tasks
|
|
181
|
+
3. **Atomic commits** — one commit per logical change, not one giant commit
|
|
182
|
+
4. **Full integration** — Phase 3 MUST include Docker build + start + health check (+ DB if applicable)
|
|
183
|
+
5. **Error recovery** — git commits after each phase ensure progress is saved
|
|
184
|
+
6. **Project-specific** — adapt ALL placeholders to actual tech stack and architecture
|
|
185
|
+
|
|
186
|
+
### Adaptation Checklist
|
|
187
|
+
|
|
188
|
+
- [ ] All packages from Architecture have a Task in Phase 2
|
|
189
|
+
- [ ] All core algorithms from Pseudocode are assigned to correct packages
|
|
190
|
+
- [ ] Database section is conditional (included only if DB exists)
|
|
191
|
+
- [ ] Migration command matches actual ORM (Prisma/TypeORM/Drizzle/Knex/raw SQL)
|
|
192
|
+
- [ ] Docker services match docker-compose.yml from Architecture
|
|
193
|
+
- [ ] Health check endpoint matches actual API
|
|
194
|
+
- [ ] Test commands match actual test framework
|
|
195
|
+
- [ ] Env vars in .env.example match Completion/deployment docs
|
|
196
|
+
- [ ] Single-app monorepo handled correctly (fewer Phase 2 tasks)
|
|
197
|
+
- [ ] If DDD: bounded contexts map to packages/modules
|
|
198
|
+
- [ ] If Gherkin: test stubs generated from .feature files
|
|
199
|
+
- [ ] If external APIs: encrypted storage setup included
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## Adaptation Rules
|
|
204
|
+
|
|
205
|
+
The `/start` content MUST be adapted to the specific project:
|
|
206
|
+
|
|
207
|
+
| Project Aspect | How /start Adapts |
|
|
208
|
+
|---------------|------------------|
|
|
209
|
+
| **Monorepo packages** | One Task per package in Phase 2 |
|
|
210
|
+
| **Single-app monorepo** | May have only 1-2 Tasks (e.g. Next.js + shared) |
|
|
211
|
+
| **Tech stack** | Correct build/start/test commands per framework |
|
|
212
|
+
| **Database present** | Include ORM migration commands (Prisma/TypeORM/Drizzle/etc.) |
|
|
213
|
+
| **No database** | Skip migration/seed in Phase 3, remove {{MIGRATION_COMMAND}} |
|
|
214
|
+
| **Docker services** | All services from docker-compose.yml |
|
|
215
|
+
| **External APIs** | Adapter/client generation + encrypted storage setup |
|
|
216
|
+
| **DDD Bounded Contexts** | One module/package per context if applicable |
|
|
217
|
+
| **Pseudocode algorithms** | Core logic files generated from pseudocode |
|
|
218
|
+
| **Gherkin scenarios** | Test file stubs generated from .feature files |
|
|
219
|
+
| **Security patterns** | Auth middleware, encryption utils if required |
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## Example: What /start Generated for PredMarket
|
|
224
|
+
|
|
225
|
+
Real-world reference from a prediction market project (SPARC pipeline):
|
|
226
|
+
|
|
227
|
+
```
|
|
228
|
+
Phase 1 (Foundation):
|
|
229
|
+
- docker-compose.yml (3 services: frontend, backend, postgres)
|
|
230
|
+
- root package.json with workspaces
|
|
231
|
+
- .env.example with all env vars
|
|
232
|
+
- tsconfig.base.json
|
|
233
|
+
|
|
234
|
+
Phase 2 (3 parallel Tasks):
|
|
235
|
+
⚡ Task A: packages/shared
|
|
236
|
+
- LMSR engine (core math from Pseudocode.md)
|
|
237
|
+
- TypeScript types from data model
|
|
238
|
+
- Unit tests with invariant checks
|
|
239
|
+
|
|
240
|
+
⚡ Task B: packages/backend
|
|
241
|
+
- Prisma schema from Specification.md data model
|
|
242
|
+
- 13 API endpoints from Architecture.md
|
|
243
|
+
- Service layer from Pseudocode.md algorithms
|
|
244
|
+
- Oracle adapters from Pseudocode.md
|
|
245
|
+
- Cron scheduler from Completion.md
|
|
246
|
+
- Zod schemas for all endpoints
|
|
247
|
+
|
|
248
|
+
⚡ Task C: packages/frontend
|
|
249
|
+
- React pages from user stories
|
|
250
|
+
- Components from UI requirements
|
|
251
|
+
- Hooks (auth, markets, trading, wallet)
|
|
252
|
+
- API client, router setup
|
|
253
|
+
|
|
254
|
+
Phase 3 (Integration):
|
|
255
|
+
- docker compose build
|
|
256
|
+
- docker compose up -d
|
|
257
|
+
- npx prisma migrate dev --name init
|
|
258
|
+
- npx prisma db seed
|
|
259
|
+
- curl localhost:3001/health → verify
|
|
260
|
+
|
|
261
|
+
Phase 4 (Finalize):
|
|
262
|
+
- README.md with quick start
|
|
263
|
+
- git tag v0.1.0-scaffold
|
|
264
|
+
- Summary: 70+ files, 15 commits, all services running
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## Critical: /start MUST Reference Docs, Not Hallucinate
|
|
270
|
+
|
|
271
|
+
The `/start` command instructions must tell Claude Code to **read the actual docs** in `docs/`
|
|
272
|
+
directory, not generate code from memory. Each Phase 2 Task should include explicit references:
|
|
273
|
+
|
|
274
|
+
```markdown
|
|
275
|
+
### Task B: packages/backend ⚡
|
|
276
|
+
Read and use as source:
|
|
277
|
+
- `docs/Specification.md` → data model → Prisma schema
|
|
278
|
+
- `docs/Architecture.md` → API endpoints → route files
|
|
279
|
+
- `docs/Pseudocode.md` → algorithms → service implementations
|
|
280
|
+
- `docs/Completion.md` → env config → config.ts
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
This ensures generated code matches the documentation, not Claude's assumptions.
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: explore
|
|
3
|
+
description: >
|
|
4
|
+
Adaptive task exploration and clarification skill for transforming vague
|
|
5
|
+
requests into actionable specifications. Use when a user presents any task,
|
|
6
|
+
problem, or goal that requires clarification before execution. Triggers on
|
|
7
|
+
ambiguous requests, complex multi-part tasks, "I want to...", "help me with...",
|
|
8
|
+
strategic decisions, product ideas, creative briefs, and any situation where
|
|
9
|
+
understanding the real need is essential before proposing solutions. Does NOT
|
|
10
|
+
provide solutions until task is fully explored.
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Explore: Adaptive Task Clarification
|
|
14
|
+
|
|
15
|
+
Transform vague requests into crystal-clear, actionable task specifications through systematic Socratic questioning.
|
|
16
|
+
|
|
17
|
+
## Core Philosophy
|
|
18
|
+
|
|
19
|
+
**Never solve before you understand.** Most failed solutions solve the wrong problem. This skill ensures the real problem is understood before any solution is proposed.
|
|
20
|
+
|
|
21
|
+
Key principles:
|
|
22
|
+
- Questions unlock understanding; answers often hide assumptions
|
|
23
|
+
- The stated goal is rarely the real goal
|
|
24
|
+
- Constraints reveal opportunities
|
|
25
|
+
- Success criteria prevent scope creep
|
|
26
|
+
|
|
27
|
+
## Task Classification
|
|
28
|
+
|
|
29
|
+
Before asking questions, classify the task type to select appropriate exploration dimensions:
|
|
30
|
+
|
|
31
|
+
| Task Type | Indicators | Primary Dimensions |
|
|
32
|
+
|-----------|------------|-------------------|
|
|
33
|
+
| **Product/Feature** | "build", "create app", "develop" | Outcome, Users, Constraints, Success |
|
|
34
|
+
| **Problem Solving** | "fix", "solve", "issue with" | Root Cause, Constraints, Attempted Solutions |
|
|
35
|
+
| **Decision Making** | "should I", "choose between", "evaluate" | Criteria, Tradeoffs, Timeline, Reversibility |
|
|
36
|
+
| **Creative** | "write", "design", "make content" | Audience, Tone, Format, Examples |
|
|
37
|
+
| **Research** | "find out", "analyze", "understand" | Scope, Depth, Sources, Deliverable |
|
|
38
|
+
| **Process/Workflow** | "how to", "improve process" | Current State, Desired State, Blockers |
|
|
39
|
+
|
|
40
|
+
## Exploration Dimensions
|
|
41
|
+
|
|
42
|
+
Select 3-5 dimensions based on task type. Each dimension has multiple question variants—choose the most natural for context.
|
|
43
|
+
|
|
44
|
+
### 1. The Real Objective
|
|
45
|
+
Uncover what success truly looks like, beyond the stated request.
|
|
46
|
+
|
|
47
|
+
**Questions:**
|
|
48
|
+
- "If this worked perfectly, what would be different in your [work/life/business]?"
|
|
49
|
+
- "What outcome would make you say 'this was absolutely worth it'?"
|
|
50
|
+
- "Is this goal a means to something else, or the end itself?"
|
|
51
|
+
- "If you could wave a magic wand and have any result, what would you choose?"
|
|
52
|
+
|
|
53
|
+
**Red flags to probe:** Generic goals ("make it better"), proxy metrics, solutions presented as requirements.
|
|
54
|
+
|
|
55
|
+
### 2. Constraints & Boundaries
|
|
56
|
+
Identify hard limits that shape the solution space.
|
|
57
|
+
|
|
58
|
+
**Questions:**
|
|
59
|
+
- "What's absolutely off the table—budget, time, technology, or approach-wise?"
|
|
60
|
+
- "What existing systems, processes, or decisions must this work with?"
|
|
61
|
+
- "Who needs to approve this, and what are their non-negotiables?"
|
|
62
|
+
- "What would disqualify a solution, even if it technically works?"
|
|
63
|
+
|
|
64
|
+
**Red flags to probe:** No constraints mentioned (usually means hidden ones), unrealistic expectations.
|
|
65
|
+
|
|
66
|
+
### 3. Available Resources
|
|
67
|
+
Understand leverage points and existing assets.
|
|
68
|
+
|
|
69
|
+
**Questions:**
|
|
70
|
+
- "What do you already have that we could build on—data, tools, people, prior work?"
|
|
71
|
+
- "Who else is involved, and what can they contribute?"
|
|
72
|
+
- "What similar problems have you solved before, and what worked?"
|
|
73
|
+
- "What's your actual capacity to implement this?"
|
|
74
|
+
|
|
75
|
+
**Red flags to probe:** Overestimated capabilities, unacknowledged dependencies.
|
|
76
|
+
|
|
77
|
+
### 4. Timeline & Urgency
|
|
78
|
+
Distinguish real deadlines from arbitrary ones.
|
|
79
|
+
|
|
80
|
+
**Questions:**
|
|
81
|
+
- "What happens if this takes 2x longer than expected?"
|
|
82
|
+
- "Is there a hard deadline, and what's driving it?"
|
|
83
|
+
- "Would you prefer a quick 80% solution or a slower 100% solution?"
|
|
84
|
+
- "What's the cost of delay vs. the cost of getting it wrong?"
|
|
85
|
+
|
|
86
|
+
**Red flags to probe:** Artificial urgency, no clear driver for deadline.
|
|
87
|
+
|
|
88
|
+
### 5. Success Criteria
|
|
89
|
+
Define what "done" actually means.
|
|
90
|
+
|
|
91
|
+
**Questions:**
|
|
92
|
+
- "How will you know this is successful? What will you measure?"
|
|
93
|
+
- "Who decides if this is good enough, and what will they look for?"
|
|
94
|
+
- "What's the minimum viable outcome that would still be valuable?"
|
|
95
|
+
- "In 6 months, what would make you regret the approach we took?"
|
|
96
|
+
|
|
97
|
+
**Red flags to probe:** Vague criteria ("stakeholders will be happy"), moving targets.
|
|
98
|
+
|
|
99
|
+
### 6. Attempted Solutions (for problems)
|
|
100
|
+
Learn from what hasn't worked.
|
|
101
|
+
|
|
102
|
+
**Questions:**
|
|
103
|
+
- "What have you already tried, and why didn't it work?"
|
|
104
|
+
- "What solutions have you considered but rejected?"
|
|
105
|
+
- "What would the obvious solution be, and why isn't that good enough?"
|
|
106
|
+
|
|
107
|
+
### 7. Audience & Stakeholders (for products/content)
|
|
108
|
+
Understand who this serves.
|
|
109
|
+
|
|
110
|
+
**Questions:**
|
|
111
|
+
- "Who specifically will use this, and what's their context when they do?"
|
|
112
|
+
- "What does your audience already know or believe about this?"
|
|
113
|
+
- "Who might be negatively affected, and does that matter?"
|
|
114
|
+
|
|
115
|
+
## Execution Protocol
|
|
116
|
+
|
|
117
|
+
### Phase 1: Initial Assessment (1 turn)
|
|
118
|
+
|
|
119
|
+
1. Parse the user's request
|
|
120
|
+
2. Identify what's already clear from context
|
|
121
|
+
3. Classify task type
|
|
122
|
+
4. Select 3-5 most critical dimensions
|
|
123
|
+
5. Note any immediate red flags or assumptions
|
|
124
|
+
|
|
125
|
+
### Phase 2: Adaptive Questioning (3-7 turns)
|
|
126
|
+
|
|
127
|
+
**Rules:**
|
|
128
|
+
- Ask ONE question at a time
|
|
129
|
+
- Make questions specific and decision-shaping, not generic
|
|
130
|
+
- Challenge vague answers: "Can you be more specific about...?"
|
|
131
|
+
- Acknowledge answers before next question
|
|
132
|
+
- Skip dimensions already clarified
|
|
133
|
+
- Stop when you have enough to create a clear brief
|
|
134
|
+
|
|
135
|
+
**Question Sequencing:**
|
|
136
|
+
1. Start with Real Objective (reveals the most)
|
|
137
|
+
2. Follow with Constraints (narrows solution space)
|
|
138
|
+
3. Then Success Criteria (defines done)
|
|
139
|
+
4. Fill gaps with other dimensions as needed
|
|
140
|
+
|
|
141
|
+
**Adaptive behavior:**
|
|
142
|
+
- If user gives detailed answer → compress follow-ups
|
|
143
|
+
- If user seems frustrated → summarize and ask if they want to continue
|
|
144
|
+
- If contradiction detected → gently probe: "Earlier you mentioned X, but now Y—help me understand?"
|
|
145
|
+
|
|
146
|
+
### Phase 3: Task Brief Synthesis (1 turn)
|
|
147
|
+
|
|
148
|
+
After sufficient exploration, synthesize into a **Task Brief**:
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
## Task Brief
|
|
152
|
+
|
|
153
|
+
**Objective:** [Clear statement of what we're actually solving]
|
|
154
|
+
|
|
155
|
+
**Context:** [Relevant background and constraints]
|
|
156
|
+
|
|
157
|
+
**Success Criteria:**
|
|
158
|
+
- [Measurable criterion 1]
|
|
159
|
+
- [Measurable criterion 2]
|
|
160
|
+
|
|
161
|
+
**Constraints:**
|
|
162
|
+
- [Hard constraint 1]
|
|
163
|
+
- [Hard constraint 2]
|
|
164
|
+
|
|
165
|
+
**Resources Available:** [What we can leverage]
|
|
166
|
+
|
|
167
|
+
**Timeline:** [Deadline and urgency level]
|
|
168
|
+
|
|
169
|
+
**Key Assumptions:** [Things we're assuming that could change the approach]
|
|
170
|
+
|
|
171
|
+
**Out of Scope:** [Explicitly excluded items]
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Ask user: "Does this capture what you need? Anything to add or correct?"
|
|
175
|
+
|
|
176
|
+
### Phase 4: Handoff
|
|
177
|
+
|
|
178
|
+
Once validated, either:
|
|
179
|
+
- Proceed to solution (if user wants immediate help)
|
|
180
|
+
- Export brief for later use
|
|
181
|
+
- Suggest appropriate next steps/skills
|
|
182
|
+
|
|
183
|
+
## Anti-Patterns to Avoid
|
|
184
|
+
|
|
185
|
+
❌ **Interrogation mode:** Don't fire questions robotically
|
|
186
|
+
❌ **Assuming context:** Don't skip clarification because you "think" you understand
|
|
187
|
+
❌ **Premature solutions:** Don't hint at solutions before exploration is complete
|
|
188
|
+
❌ **Over-questioning:** Stop when you have enough clarity
|
|
189
|
+
❌ **Generic questions:** Each question should be tailored to this specific task
|
|
190
|
+
❌ **Ignoring signals:** If user provides info proactively, don't re-ask
|
|
191
|
+
|
|
192
|
+
## Example Flow
|
|
193
|
+
|
|
194
|
+
**User:** "I want to create a dashboard for my team"
|
|
195
|
+
|
|
196
|
+
**Claude (Phase 1 assessment):**
|
|
197
|
+
- Task type: Product/Feature
|
|
198
|
+
- Unclear: Who uses it, what data, what decisions it enables, timeline
|
|
199
|
+
- Dimensions needed: Real Objective, Audience, Constraints, Success Criteria
|
|
200
|
+
|
|
201
|
+
**Claude:** "Before we dive in—what decisions will your team make differently once they have this dashboard? What's the main insight they're missing today?"
|
|
202
|
+
|
|
203
|
+
*[User answers about tracking project delays]*
|
|
204
|
+
|
|
205
|
+
**Claude:** "Got it—so the core need is visibility into project health to catch delays early. How do you know a project is delayed today? What's the current process for catching these issues?"
|
|
206
|
+
|
|
207
|
+
*[Continues adaptively based on answers...]*
|
|
208
|
+
|
|
209
|
+
## Integration Notes
|
|
210
|
+
|
|
211
|
+
After exploration, this skill can hand off to:
|
|
212
|
+
- problem-solver-enhanced (for complex problems)
|
|
213
|
+
- goap-research-ed25519 (for research tasks)
|
|
214
|
+
- frontend-design (for UI/product tasks)
|
|
215
|
+
- Any implementation skill with the structured Task Brief
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# Advanced Questioning Techniques
|
|
2
|
+
|
|
3
|
+
Reference for sophisticated question patterns when standard approaches don't yield clarity.
|
|
4
|
+
|
|
5
|
+
## Socratic Techniques
|
|
6
|
+
|
|
7
|
+
### Clarifying Questions
|
|
8
|
+
When answers are vague or use undefined terms:
|
|
9
|
+
- "What do you mean by [term]?"
|
|
10
|
+
- "Can you give me a specific example of [concept]?"
|
|
11
|
+
- "How would you explain this to someone unfamiliar with your context?"
|
|
12
|
+
|
|
13
|
+
### Assumption Probing
|
|
14
|
+
When hidden assumptions might be distorting the problem:
|
|
15
|
+
- "What would have to be true for this approach to work?"
|
|
16
|
+
- "What are you taking for granted here that might not be true?"
|
|
17
|
+
- "If you were wrong about [assumption], how would that change things?"
|
|
18
|
+
|
|
19
|
+
### Consequence Exploration
|
|
20
|
+
When second-order effects matter:
|
|
21
|
+
- "If this succeeds, what problems might it create?"
|
|
22
|
+
- "Who might be affected that we haven't considered?"
|
|
23
|
+
- "What's the worst realistic outcome if this goes wrong?"
|
|
24
|
+
|
|
25
|
+
### Perspective Shifting
|
|
26
|
+
When stuck in one frame:
|
|
27
|
+
- "How would [competitor/user/skeptic] view this?"
|
|
28
|
+
- "If you had to argue against this approach, what would you say?"
|
|
29
|
+
- "What would you advise someone else in this situation?"
|
|
30
|
+
|
|
31
|
+
## Techniques for Specific Blockers
|
|
32
|
+
|
|
33
|
+
### When user presents solution as requirement
|
|
34
|
+
"I need a mobile app for X"
|
|
35
|
+
|
|
36
|
+
**Approach:** Trace back to underlying need
|
|
37
|
+
- "What problem would the mobile app solve?"
|
|
38
|
+
- "How do users handle this today without the app?"
|
|
39
|
+
- "If a mobile app wasn't an option, how else might you solve this?"
|
|
40
|
+
|
|
41
|
+
### When user can't articulate success
|
|
42
|
+
"I'll know it when I see it"
|
|
43
|
+
|
|
44
|
+
**Approach:** Use concrete scenarios
|
|
45
|
+
- "Imagine it's 6 months from now and this was a huge success—describe what's happening"
|
|
46
|
+
- "If you had to bet money on one metric improving, what would it be?"
|
|
47
|
+
- "What would your boss/customer/user say that would prove this worked?"
|
|
48
|
+
|
|
49
|
+
### When constraints seem impossible
|
|
50
|
+
"We need enterprise features but have startup budget"
|
|
51
|
+
|
|
52
|
+
**Approach:** Separate hard from soft constraints
|
|
53
|
+
- "If you had to prioritize: which constraint is truly immovable?"
|
|
54
|
+
- "What's the minimum viable version that would still be valuable?"
|
|
55
|
+
- "What could you trade off to make this feasible?"
|
|
56
|
+
|
|
57
|
+
### When user is emotionally invested
|
|
58
|
+
User seems attached to a specific solution
|
|
59
|
+
|
|
60
|
+
**Approach:** Validate, then explore
|
|
61
|
+
- "It sounds like you've thought about this a lot. What led you to this approach?"
|
|
62
|
+
- "What would make you reconsider this direction?"
|
|
63
|
+
- "What's the strongest argument against this that you've heard?"
|
|
64
|
+
|
|
65
|
+
### When multiple stakeholders with conflicting needs
|
|
66
|
+
"My boss wants X but users want Y"
|
|
67
|
+
|
|
68
|
+
**Approach:** Map the conflict explicitly
|
|
69
|
+
- "Let's map out who wants what. What does your boss's ideal outcome look like?"
|
|
70
|
+
- "Where exactly do these needs conflict?"
|
|
71
|
+
- "Is there a version that gives each party their most important thing?"
|
|
72
|
+
|
|
73
|
+
## Question Formulation Patterns
|
|
74
|
+
|
|
75
|
+
### The Magic Wand
|
|
76
|
+
Removes artificial constraints to reveal true desires:
|
|
77
|
+
"If you could wave a magic wand and have any outcome, what would you choose?"
|
|
78
|
+
|
|
79
|
+
### The Premortem
|
|
80
|
+
Surfaces hidden risks:
|
|
81
|
+
"Imagine this failed spectacularly—what went wrong?"
|
|
82
|
+
|
|
83
|
+
### The Constraint Inversion
|
|
84
|
+
Challenges assumptions about limitations:
|
|
85
|
+
"What if [constraint] wasn't a factor—would you approach this differently?"
|
|
86
|
+
|
|
87
|
+
### The Minimum Viable Success
|
|
88
|
+
Defines the essential core:
|
|
89
|
+
"What's the smallest version of this that would still be valuable?"
|
|
90
|
+
|
|
91
|
+
### The Regret Test
|
|
92
|
+
Clarifies priorities over time:
|
|
93
|
+
"In a year, what would you regret not having done?"
|
|
94
|
+
|
|
95
|
+
### The Opportunity Cost
|
|
96
|
+
Reveals trade-offs:
|
|
97
|
+
"What else could you do with the time/money/effort this would require?"
|
|
98
|
+
|
|
99
|
+
### The Outsider View
|
|
100
|
+
Escapes insider bias:
|
|
101
|
+
"How would you explain this problem to someone completely outside your industry?"
|
|
102
|
+
|
|
103
|
+
## Red Flags and Responses
|
|
104
|
+
|
|
105
|
+
| Red Flag | What It Might Mean | How to Probe |
|
|
106
|
+
|----------|-------------------|--------------|
|
|
107
|
+
| "Everyone knows..." | Unexamined assumption | "Help me understand—what's the evidence for this?" |
|
|
108
|
+
| "We've always done it this way" | Inertia, not strategy | "What originally drove this approach? Is that still true?" |
|
|
109
|
+
| "It's obvious that..." | Blind spot | "Walk me through why this is obvious—I want to make sure I understand" |
|
|
110
|
+
| "We just need to..." | Oversimplification | "What could go wrong with this approach?" |
|
|
111
|
+
| "ASAP" | Artificial urgency | "What specifically happens if this takes longer?" |
|
|
112
|
+
| No constraints mentioned | Hidden constraints | "What would disqualify a solution even if it technically works?" |
|
|
113
|
+
| Very specific solution stated | Solution fixation | "What problem does this solve? Are there other ways to solve it?" |
|
|
114
|
+
|
|
115
|
+
## Calibrating Question Depth
|
|
116
|
+
|
|
117
|
+
### Light Touch (1-2 questions per dimension)
|
|
118
|
+
Use when:
|
|
119
|
+
- User is experienced and already has clarity
|
|
120
|
+
- Task is straightforward
|
|
121
|
+
- Time is genuinely constrained
|
|
122
|
+
- User shows frustration
|
|
123
|
+
|
|
124
|
+
### Deep Exploration (3-5 questions per dimension)
|
|
125
|
+
Use when:
|
|
126
|
+
- High stakes decision
|
|
127
|
+
- Multiple stakeholders
|
|
128
|
+
- Technical complexity
|
|
129
|
+
- User seems uncertain
|
|
130
|
+
- Contradictions in answers
|
|
131
|
+
|
|
132
|
+
### Signs to Stop Questioning
|
|
133
|
+
- User is repeating themselves
|
|
134
|
+
- Answers are becoming terse
|
|
135
|
+
- You have enough for a clear brief
|
|
136
|
+
- User explicitly says "that's enough"
|
|
137
|
+
- Remaining questions are nice-to-know, not need-to-know
|
|
138
|
+
|
|
139
|
+
## Cultural Considerations
|
|
140
|
+
|
|
141
|
+
Some users may:
|
|
142
|
+
- View detailed questions as distrust
|
|
143
|
+
- Expect to define solutions themselves
|
|
144
|
+
- Be uncomfortable with "why" questions
|
|
145
|
+
- Prefer to give context incrementally
|
|
146
|
+
|
|
147
|
+
**Adaptive responses:**
|
|
148
|
+
- Frame questions as "helping me help you better"
|
|
149
|
+
- Acknowledge their expertise: "You know this space—help me understand..."
|
|
150
|
+
- Use "what" instead of "why" when appropriate
|
|
151
|
+
- Offer to explain why you're asking
|