opencodekit 0.15.21 → 0.16.1
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/dist/index.js +5 -7
- package/dist/template/.opencode/AGENTS.md +85 -23
- package/dist/template/.opencode/agent/build.md +88 -7
- package/dist/template/.opencode/agent/explore.md +1 -1
- package/dist/template/.opencode/agent/general.md +54 -4
- package/dist/template/.opencode/agent/looker.md +1 -1
- package/dist/template/.opencode/agent/painter.md +1 -1
- package/dist/template/.opencode/agent/plan.md +52 -0
- package/dist/template/.opencode/agent/review.md +1 -1
- package/dist/template/.opencode/agent/scout.md +3 -3
- package/dist/template/.opencode/agent/vision.md +1 -1
- package/dist/template/.opencode/command/create.md +231 -91
- package/dist/template/.opencode/command/design.md +40 -7
- package/dist/template/.opencode/command/handoff.md +22 -0
- package/dist/template/.opencode/command/init.md +49 -78
- package/dist/template/.opencode/command/plan.md +36 -16
- package/dist/template/.opencode/command/pr.md +15 -0
- package/dist/template/.opencode/command/research.md +3 -0
- package/dist/template/.opencode/command/resume.md +8 -18
- package/dist/template/.opencode/command/review-codebase.md +30 -0
- package/dist/template/.opencode/command/ship.md +199 -0
- package/dist/template/.opencode/command/start.md +316 -28
- package/dist/template/.opencode/command/status.md +24 -1
- package/dist/template/.opencode/command/ui-review.md +36 -7
- package/dist/template/.opencode/command/verify.md +307 -0
- package/dist/template/.opencode/memory/_templates/prd.md +29 -0
- package/dist/template/.opencode/memory/_templates/proposal.md +38 -0
- package/dist/template/.opencode/memory/_templates/spec.md +66 -0
- package/dist/template/.opencode/memory/_templates/tasks.md +198 -0
- package/dist/template/.opencode/memory/_templates/tech-stack.md +50 -0
- package/dist/template/.opencode/memory/project/tech-stack.md +53 -0
- package/dist/template/.opencode/memory/research/ccpm-analysis.md +334 -0
- package/dist/template/.opencode/memory/research/openspec-analysis.md +226 -0
- package/dist/template/.opencode/memory.db +0 -0
- package/dist/template/.opencode/memory.db-shm +0 -0
- package/dist/template/.opencode/memory.db-wal +0 -0
- package/dist/template/.opencode/opencode.json +18 -4
- package/dist/template/.opencode/package.json +1 -0
- package/dist/template/.opencode/plans/1770006237537-mighty-otter.md +418 -0
- package/dist/template/.opencode/plans/1770006913647-glowing-forest.md +170 -0
- package/dist/template/.opencode/plans/1770013678126-witty-planet.md +278 -0
- package/dist/template/.opencode/plugin/lib/memory-db.ts +828 -0
- package/dist/template/.opencode/plugin/memory.ts +38 -1
- package/dist/template/.opencode/skill/index-knowledge/SKILL.md +76 -31
- package/dist/template/.opencode/skill/memory-system/SKILL.md +110 -55
- package/dist/template/.opencode/skill/tool-priority/SKILL.md +2 -2
- package/dist/template/.opencode/tool/memory-get.ts +143 -0
- package/dist/template/.opencode/tool/memory-maintain.ts +167 -0
- package/dist/template/.opencode/tool/memory-migrate.ts +319 -0
- package/dist/template/.opencode/tool/memory-read.ts +17 -46
- package/dist/template/.opencode/tool/memory-search.ts +131 -28
- package/dist/template/.opencode/tool/memory-timeline.ts +105 -0
- package/dist/template/.opencode/tool/memory-update.ts +21 -26
- package/dist/template/.opencode/tool/observation.ts +112 -100
- package/dist/template/.opencode/tsconfig.json +19 -19
- package/package.json +1 -1
- package/dist/template/.opencode/command/accessibility-check.md +0 -331
- package/dist/template/.opencode/command/agent-browser.md +0 -21
- package/dist/template/.opencode/command/analyze-mockup.md +0 -423
- package/dist/template/.opencode/command/analyze-project.md +0 -295
- package/dist/template/.opencode/command/brainstorm.md +0 -373
- package/dist/template/.opencode/command/cloudflare.md +0 -70
- package/dist/template/.opencode/command/commit.md +0 -245
- package/dist/template/.opencode/command/complete-next-task.md +0 -77
- package/dist/template/.opencode/command/design-audit.md +0 -480
- package/dist/template/.opencode/command/edit-image.md +0 -242
- package/dist/template/.opencode/command/finish.md +0 -255
- package/dist/template/.opencode/command/fix-ci.md +0 -109
- package/dist/template/.opencode/command/fix-types.md +0 -104
- package/dist/template/.opencode/command/fix-ui.md +0 -117
- package/dist/template/.opencode/command/fix.md +0 -168
- package/dist/template/.opencode/command/frontend-design.md +0 -21
- package/dist/template/.opencode/command/generate-diagram.md +0 -349
- package/dist/template/.opencode/command/generate-icon.md +0 -283
- package/dist/template/.opencode/command/generate-image.md +0 -246
- package/dist/template/.opencode/command/generate-pattern.md +0 -247
- package/dist/template/.opencode/command/generate-storyboard.md +0 -250
- package/dist/template/.opencode/command/implement.md +0 -609
- package/dist/template/.opencode/command/import-plan.md +0 -406
- package/dist/template/.opencode/command/index-knowledge.md +0 -25
- package/dist/template/.opencode/command/integration-test.md +0 -424
- package/dist/template/.opencode/command/issue.md +0 -102
- package/dist/template/.opencode/command/new-feature.md +0 -651
- package/dist/template/.opencode/command/opensrc.md +0 -58
- package/dist/template/.opencode/command/quick-build.md +0 -238
- package/dist/template/.opencode/command/ralph.md +0 -41
- package/dist/template/.opencode/command/research-and-implement.md +0 -148
- package/dist/template/.opencode/command/research-ui.md +0 -466
- package/dist/template/.opencode/command/restore-image.md +0 -424
- package/dist/template/.opencode/command/revert-feature.md +0 -386
- package/dist/template/.opencode/command/skill-create.md +0 -517
- package/dist/template/.opencode/command/skill-optimize.md +0 -556
- package/dist/template/.opencode/command/summarize.md +0 -412
- package/dist/template/.opencode/command/triage.md +0 -398
- package/dist/template/.opencode/memory/_templates/README.md +0 -35
- package/dist/template/.opencode/memory/_templates/observation.md +0 -39
- package/dist/template/.opencode/memory/_templates/project/architecture.md +0 -60
- package/dist/template/.opencode/memory/_templates/project/commands.md +0 -72
- package/dist/template/.opencode/memory/_templates/project/conventions.md +0 -68
- package/dist/template/.opencode/memory/_templates/project/gotchas.md +0 -41
- package/dist/template/.opencode/memory/_templates/prompt-engineering.md +0 -333
- package/dist/template/.opencode/memory/observations/2026-01-22-decision-agents-md-prompt-engineering-improvement.md +0 -29
- package/dist/template/.opencode/memory/observations/2026-01-25-decision-agent-roles-build-orchestrates-general-e.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-01-25-decision-simplified-swarm-helper-tool-to-fix-type.md +0 -20
- package/dist/template/.opencode/memory/observations/2026-01-25-decision-use-beads-as-swarm-board-source-of-truth.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-01-25-learning-user-wants-real-swarm-coordination-guida.md +0 -15
- package/dist/template/.opencode/memory/observations/2026-01-28-decision-created-deep-research-skill-for-thorough.md +0 -29
- package/dist/template/.opencode/memory/observations/2026-01-28-decision-gh-grep-mcp-wrapper-vs-native-grep-searc.md +0 -21
- package/dist/template/.opencode/memory/observations/2026-01-28-decision-oracle-tool-optimal-usage-patterns.md +0 -32
- package/dist/template/.opencode/memory/observations/2026-01-28-learning-ampcode-deep-mode-research-integration-w.md +0 -42
- package/dist/template/.opencode/memory/observations/2026-01-28-pattern-research-delegation-pattern-explore-for-.md +0 -32
- package/dist/template/.opencode/memory/observations/2026-01-29-decision-copilot-auth-plugin-rate-limit-handling.md +0 -27
- package/dist/template/.opencode/memory/observations/2026-01-29-decision-spec-driven-approach-for-opencodekit.md +0 -21
- package/dist/template/.opencode/memory/observations/2026-01-29-learning-karpathy-llm-coding-insights-dec-2025.md +0 -44
- package/dist/template/.opencode/memory/observations/2026-01-30-decision-github-copilot-claude-routing-keep-disab.md +0 -32
- package/dist/template/.opencode/memory/observations/2026-01-30-discovery-context-management-research-critical-gap.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-01-30-discovery-kimi-k2-5-agent-swarm-architecture-patte.md +0 -45
- package/dist/template/.opencode/memory/observations/2026-01-30-pattern-swarm-tools-architecture.md +0 -28
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-copilot-auth-plugin-updated-with-baseurl.md +0 -63
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-created-dedicated-worker-agent-for-swarm.md +0 -20
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-rollback-to-v1-1-47-for-copilot-claude-r.md +0 -21
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-simplified-swarm-to-task-tool-pattern.md +0 -44
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-swarm-architecture-task-tool-over-tmux.md +0 -33
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-worker-skills-defined-for-swarm-delegati.md +0 -30
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-gpt-reasoning-config-for-github-copilot.md +0 -51
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-auth-comparison-finding.md +0 -61
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-reasoning-architecture-.md +0 -66
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-custom-tools-api.md +0 -48
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-v1-1-48-skills-as-slash-command.md +0 -21
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-swarm-system-simplified-removed-mailbox-.md +0 -30
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-v1-1-48-native-copilot-reasoning-via-pr-.md +0 -45
- package/dist/template/.opencode/memory/observations/2026-01-31-warning-cannot-add-custom-config-to-opencode-jso.md +0 -18
- package/dist/template/.opencode/memory/observations/2026-01-31-warning-copilot-claude-v1-endpoint-returns-404-c.md +0 -48
- package/dist/template/.opencode/memory/observations/2026-01-31-warning-opencode-v1-1-48-claude-thinking-block-s.md +0 -51
- package/dist/template/.opencode/memory/project/architecture.md +0 -60
- package/dist/template/.opencode/memory/project/commands.md +0 -72
- package/dist/template/.opencode/memory/project/conventions.md +0 -68
- package/dist/template/.opencode/memory/project/gotchas.md +0 -41
- package/dist/template/.opencode/skill/notebooklm/SKILL.md +0 -272
- package/dist/template/.opencode/skill/notebooklm/references/setup.md +0 -353
- package/dist/template/.opencode/tool/notebooklm.ts +0 -488
- package/dist/template/.opencode/tool/oracle.ts +0 -240
- /package/dist/template/.opencode/memory/{user.example.md → _templates/user.md} +0 -0
- /package/dist/template/.opencode/memory/{user.md → project/user.md} +0 -0
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Analyze project health, quality standards, and ready work
|
|
3
|
-
argument-hint: "[--quick|--deep]"
|
|
4
|
-
agent: build
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Analyze Project
|
|
8
|
-
|
|
9
|
-
Comprehensive project analysis with stack-specific best practices.
|
|
10
|
-
|
|
11
|
-
## Arguments
|
|
12
|
-
|
|
13
|
-
$ARGUMENTS
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Phase 1: Environment Detection
|
|
18
|
-
|
|
19
|
-
Detect project type to determine analysis strategy:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
# Check config files
|
|
23
|
-
ls -la package.json pyproject.toml Cargo.toml go.mod pom.xml build.gradle 2>/dev/null || true
|
|
24
|
-
|
|
25
|
-
# Check lock files for package manager
|
|
26
|
-
ls -la bun.lockb yarn.lock pnpm-lock.yaml package-lock.json 2>/dev/null || true
|
|
27
|
-
|
|
28
|
-
# Check for monorepo
|
|
29
|
-
ls -la pnpm-workspace.yaml lerna.json nx.json turbo.json 2>/dev/null || true
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Read the main config file to detect framework:
|
|
33
|
-
|
|
34
|
-
```typescript
|
|
35
|
-
read({ filePath: "package.json" }); // or pyproject.toml, Cargo.toml, etc.
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## Phase 2: Parallel Research & Discovery
|
|
41
|
-
|
|
42
|
-
Once stack is detected, launch parallel subagent tasks using the Task tool.
|
|
43
|
-
Run all three in parallel (single message with multiple Task calls):
|
|
44
|
-
|
|
45
|
-
```typescript
|
|
46
|
-
// Scout: Research best practices for detected stack
|
|
47
|
-
Task({
|
|
48
|
-
subagent_type: "scout",
|
|
49
|
-
description: "Best practices research",
|
|
50
|
-
prompt: `Research best practices for [DETECTED_STACK]:
|
|
51
|
-
- Code quality standards and linting rules
|
|
52
|
-
- Testing patterns and coverage expectations
|
|
53
|
-
- Project structure conventions
|
|
54
|
-
- Common anti-patterns to avoid
|
|
55
|
-
Return as actionable checklist with specific recommendations.`,
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
// Scout: Framework-specific quality standards
|
|
59
|
-
Task({
|
|
60
|
-
subagent_type: "scout",
|
|
61
|
-
description: "Quality standards research",
|
|
62
|
-
prompt: `Research quality standards for [DETECTED_FRAMEWORK]:
|
|
63
|
-
- Recommended ESLint/Biome/Ruff rules
|
|
64
|
-
- Type safety requirements
|
|
65
|
-
- Performance best practices
|
|
66
|
-
- Security checklist
|
|
67
|
-
Return as comparison criteria checklist.`,
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
// Explore: Analyze codebase architecture
|
|
71
|
-
Task({
|
|
72
|
-
subagent_type: "explore",
|
|
73
|
-
description: "Architecture analysis",
|
|
74
|
-
prompt: `Analyze this codebase architecture thoroughly:
|
|
75
|
-
- Directory structure pattern (feature-based, layer-based, etc.)
|
|
76
|
-
- Key modules and their responsibilities
|
|
77
|
-
- Entry points and data flow
|
|
78
|
-
- Test organization and coverage patterns
|
|
79
|
-
Return as detailed architecture summary with file paths.`,
|
|
80
|
-
});
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
**Fallback:** If Task tool fails or network is unavailable, use local tools:
|
|
84
|
-
|
|
85
|
-
- `memory-search` for existing project knowledge
|
|
86
|
-
- Use `glob` + `read` to explore structure
|
|
87
|
-
- Skip external research phases
|
|
88
|
-
|
|
89
|
-
---
|
|
90
|
-
|
|
91
|
-
## Phase 3: Git & Version Control Health
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
# Current state
|
|
95
|
-
git status --short
|
|
96
|
-
git branch --show-current
|
|
97
|
-
git log --oneline -5
|
|
98
|
-
|
|
99
|
-
# Commits ahead/behind
|
|
100
|
-
git rev-list --left-right --count origin/main...HEAD 2>/dev/null || true
|
|
101
|
-
|
|
102
|
-
# Recent activity
|
|
103
|
-
git log -1 --format="%h %s (%cr by %an)"
|
|
104
|
-
|
|
105
|
-
# Uncommitted changes
|
|
106
|
-
git diff --stat
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## Phase 4: Code Quality Checks
|
|
112
|
-
|
|
113
|
-
Run quality checks based on detected stack:
|
|
114
|
-
|
|
115
|
-
### For TypeScript/JavaScript:
|
|
116
|
-
|
|
117
|
-
```bash
|
|
118
|
-
# Type errors
|
|
119
|
-
npm run typecheck 2>/dev/null || npx tsc --noEmit 2>/dev/null || true
|
|
120
|
-
|
|
121
|
-
# Linting
|
|
122
|
-
npm run lint 2>/dev/null || npx biome check . 2>/dev/null || npx eslint . 2>/dev/null || true
|
|
123
|
-
|
|
124
|
-
# TODO/FIXME count
|
|
125
|
-
grep -r "TODO\|FIXME\|HACK\|XXX" src/ --include="*.ts" --include="*.tsx" 2>/dev/null | wc -l || echo "0"
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### For Python:
|
|
129
|
-
|
|
130
|
-
```bash
|
|
131
|
-
# Type checking
|
|
132
|
-
mypy . 2>/dev/null || true
|
|
133
|
-
|
|
134
|
-
# Linting
|
|
135
|
-
ruff check . 2>/dev/null || pylint **/*.py 2>/dev/null || true
|
|
136
|
-
|
|
137
|
-
# TODO count
|
|
138
|
-
grep -r "TODO\|FIXME" . --include="*.py" 2>/dev/null | wc -l || echo "0"
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
### For Rust:
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
cargo check 2>/dev/null || true
|
|
145
|
-
cargo clippy 2>/dev/null || true
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
## Phase 5: Test Health
|
|
151
|
-
|
|
152
|
-
```bash
|
|
153
|
-
# Run tests with coverage if available
|
|
154
|
-
npm test -- --coverage 2>/dev/null || \
|
|
155
|
-
bun test --coverage 2>/dev/null || \
|
|
156
|
-
pytest --cov 2>/dev/null || \
|
|
157
|
-
cargo test 2>/dev/null || \
|
|
158
|
-
go test ./... 2>/dev/null || \
|
|
159
|
-
echo "No test runner detected"
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
---
|
|
163
|
-
|
|
164
|
-
## Phase 6: Dependency & Security Health
|
|
165
|
-
|
|
166
|
-
```bash
|
|
167
|
-
# Outdated dependencies
|
|
168
|
-
npm outdated 2>/dev/null || pnpm outdated 2>/dev/null || pip list --outdated 2>/dev/null || true
|
|
169
|
-
|
|
170
|
-
# Security audit
|
|
171
|
-
npm audit 2>/dev/null || pip-audit 2>/dev/null || cargo audit 2>/dev/null || true
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
---
|
|
175
|
-
|
|
176
|
-
## Phase 7: CI/CD & Documentation Health
|
|
177
|
-
|
|
178
|
-
```bash
|
|
179
|
-
# CI status (GitHub Actions)
|
|
180
|
-
gh run list --limit 3 2>/dev/null || true
|
|
181
|
-
|
|
182
|
-
# Documentation presence
|
|
183
|
-
ls -la README.md CHANGELOG.md CONTRIBUTING.md AGENTS.md docs/ 2>/dev/null || true
|
|
184
|
-
|
|
185
|
-
# README freshness
|
|
186
|
-
git log -1 --format="%cr" -- README.md 2>/dev/null || true
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
---
|
|
190
|
-
|
|
191
|
-
## Phase 8: Task/Work Health (if Beads configured)
|
|
192
|
-
|
|
193
|
-
```bash
|
|
194
|
-
bd status 2>/dev/null || echo "Beads not configured"
|
|
195
|
-
bd ready 2>/dev/null || true
|
|
196
|
-
bd blocked 2>/dev/null || true
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
---
|
|
200
|
-
|
|
201
|
-
## Phase 9: Integrate Research Results
|
|
202
|
-
|
|
203
|
-
Task tool returns results directly - no collection needed.
|
|
204
|
-
Integrate findings from Phase 2 subagents into the report:
|
|
205
|
-
|
|
206
|
-
1. **Best practices checklist** → Compare against Phase 4 quality results
|
|
207
|
-
2. **Quality standards** → Use as criteria for Health Score calculation
|
|
208
|
-
3. **Architecture summary** → Include in report Architecture section
|
|
209
|
-
|
|
210
|
-
If subagents failed in Phase 2, use fallback data:
|
|
211
|
-
|
|
212
|
-
- Check `memory-read({ file: "project/architecture" })` for cached architecture
|
|
213
|
-
- Use `glob` + `read` to explore structure
|
|
214
|
-
- Skip best practices comparison (mark as "N/A - offline mode")
|
|
215
|
-
|
|
216
|
-
---
|
|
217
|
-
|
|
218
|
-
## Phase 10: Generate Report
|
|
219
|
-
|
|
220
|
-
Compile all findings into a comprehensive report:
|
|
221
|
-
|
|
222
|
-
```markdown
|
|
223
|
-
# Project Analysis Report
|
|
224
|
-
|
|
225
|
-
**Generated:** [DATE]
|
|
226
|
-
**Stack:** [DETECTED_STACK]
|
|
227
|
-
**Framework:** [DETECTED_FRAMEWORK]
|
|
228
|
-
|
|
229
|
-
## Health Score: X/100
|
|
230
|
-
|
|
231
|
-
| Category | Score | Status | Notes |
|
|
232
|
-
| ------------- | ----- | ------- | ----------------- |
|
|
233
|
-
| Security | X/20 | OK/Warn | X vulnerabilities |
|
|
234
|
-
| Code Quality | X/20 | OK/Warn | X lint errors |
|
|
235
|
-
| Test Coverage | X/20 | OK/Warn | X% coverage |
|
|
236
|
-
| Dependencies | X/20 | OK/Warn | X outdated |
|
|
237
|
-
| Documentation | X/20 | OK/Warn | X missing |
|
|
238
|
-
|
|
239
|
-
## Current State vs Best Practices
|
|
240
|
-
|
|
241
|
-
Based on [FRAMEWORK] best practices research:
|
|
242
|
-
|
|
243
|
-
| Practice | Expected | Actual | Status |
|
|
244
|
-
| ------------------- | ----------- | -------- | ------ |
|
|
245
|
-
| Type Safety | Strict mode | ... | ✓/✗ |
|
|
246
|
-
| Test Coverage | >80% | X% | ✓/✗ |
|
|
247
|
-
| Linting | Zero errors | X errors | ✓/✗ |
|
|
248
|
-
| Dependency Security | No vulns | X vulns | ✓/✗ |
|
|
249
|
-
|
|
250
|
-
## Architecture Summary
|
|
251
|
-
|
|
252
|
-
[From explore agent]
|
|
253
|
-
|
|
254
|
-
## Priority Recommendations
|
|
255
|
-
|
|
256
|
-
1. **[HIGH]** [Action based on findings]
|
|
257
|
-
2. **[MEDIUM]** [Action based on findings]
|
|
258
|
-
3. **[LOW]** [Action based on findings]
|
|
259
|
-
|
|
260
|
-
## Ready Work
|
|
261
|
-
|
|
262
|
-
| ID | Title | Priority | Type |
|
|
263
|
-
| --- | ----- | -------- | ---- |
|
|
264
|
-
| ... | ... | ... | ... |
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
---
|
|
268
|
-
|
|
269
|
-
## Phase 11: Save to Memory
|
|
270
|
-
|
|
271
|
-
Save report for trend tracking:
|
|
272
|
-
|
|
273
|
-
```typescript
|
|
274
|
-
memory_update({
|
|
275
|
-
file: "project/analysis-[YYYY-MM-DD]",
|
|
276
|
-
content: "[GENERATED_REPORT]",
|
|
277
|
-
mode: "replace",
|
|
278
|
-
});
|
|
279
|
-
```
|
|
280
|
-
|
|
281
|
-
---
|
|
282
|
-
|
|
283
|
-
## Output Modes
|
|
284
|
-
|
|
285
|
-
### --quick (Default)
|
|
286
|
-
|
|
287
|
-
- Phase 1, 3, 8 only
|
|
288
|
-
- ~30 seconds
|
|
289
|
-
- Basic status dashboard
|
|
290
|
-
|
|
291
|
-
### --deep
|
|
292
|
-
|
|
293
|
-
- All phases including subagent research
|
|
294
|
-
- ~3-5 minutes
|
|
295
|
-
- Full analysis with best practices comparison
|
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Brainstorm and explore ideas with structured ideation
|
|
3
|
-
argument-hint: "<topic or bead-id> [--quick]"
|
|
4
|
-
agent: plan
|
|
5
|
-
subtask: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Brainstorm: $ARGUMENTS
|
|
9
|
-
|
|
10
|
-
## Load Beads Skill
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
skill({ name: "beads" });
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Options
|
|
17
|
-
|
|
18
|
-
- `--quick`: 15-minute time box (default: 30 minutes)
|
|
19
|
-
|
|
20
|
-
## Phase 1: Load Context
|
|
21
|
-
|
|
22
|
-
**Load skill:**
|
|
23
|
-
|
|
24
|
-
```typescript
|
|
25
|
-
skill({ name: "brainstorming" });
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
**Check for bead context:**
|
|
29
|
-
|
|
30
|
-
If `$ARGUMENTS` is a bead ID:
|
|
31
|
-
|
|
32
|
-
!`bd show $ARGUMENTS`
|
|
33
|
-
|
|
34
|
-
Load constraints from `.beads/artifacts/<bead-id>/spec.md` if it exists.
|
|
35
|
-
|
|
36
|
-
**Check for prior thinking (Semantic Search):**
|
|
37
|
-
|
|
38
|
-
```typescript
|
|
39
|
-
// Search for related ideas and past brainstorms
|
|
40
|
-
memory -
|
|
41
|
-
search({
|
|
42
|
-
query: "[topic keywords]",
|
|
43
|
-
mode: "semantic",
|
|
44
|
-
limit: 5,
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
// Find related observations
|
|
48
|
-
memory -
|
|
49
|
-
search({
|
|
50
|
-
query: "[topic]",
|
|
51
|
-
mode: "semantic",
|
|
52
|
-
type: "observation",
|
|
53
|
-
limit: 3,
|
|
54
|
-
});
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Review findings for:
|
|
58
|
-
|
|
59
|
-
- Previous brainstorms on similar topics
|
|
60
|
-
- Related decisions and patterns
|
|
61
|
-
- Ideas that were considered before
|
|
62
|
-
|
|
63
|
-
If memory search fails (Ollama not running), continue without it.
|
|
64
|
-
|
|
65
|
-
## Phase 2: Set Boundaries
|
|
66
|
-
|
|
67
|
-
Before brainstorming, establish:
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
Brainstorm Session: $ARGUMENTS
|
|
71
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
72
|
-
|
|
73
|
-
Topic: [what we're exploring]
|
|
74
|
-
Goal: [what decision/outcome we need]
|
|
75
|
-
Constraints: [hard limits from spec or user]
|
|
76
|
-
Time box: [15/30 minutes]
|
|
77
|
-
|
|
78
|
-
Out of scope:
|
|
79
|
-
- [what we're NOT considering]
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Phase 3: Diverge (Generate Ideas)
|
|
83
|
-
|
|
84
|
-
**Goal:** Quantity over quality. No evaluation yet.
|
|
85
|
-
|
|
86
|
-
Generate 5-10 ideas rapidly:
|
|
87
|
-
|
|
88
|
-
```
|
|
89
|
-
Ideas:
|
|
90
|
-
━━━━━━
|
|
91
|
-
|
|
92
|
-
1. [Idea name]
|
|
93
|
-
Brief: [1-2 sentences]
|
|
94
|
-
|
|
95
|
-
2. [Idea name]
|
|
96
|
-
Brief: [1-2 sentences]
|
|
97
|
-
|
|
98
|
-
3. [Idea name]
|
|
99
|
-
Brief: [1-2 sentences]
|
|
100
|
-
|
|
101
|
-
... continue to 5-10 ideas
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
**Techniques:**
|
|
105
|
-
|
|
106
|
-
- **Inversion:** What's the opposite approach?
|
|
107
|
-
- **Analogy:** How do others solve similar problems?
|
|
108
|
-
- **Constraint removal:** What if [constraint] didn't exist?
|
|
109
|
-
- **Combination:** Can we merge two partial solutions?
|
|
110
|
-
- **Extreme:** What's the simplest? Most complex?
|
|
111
|
-
|
|
112
|
-
## Phase 4: Explore Codebase
|
|
113
|
-
|
|
114
|
-
Validate feasibility against existing code:
|
|
115
|
-
|
|
116
|
-
```typescript
|
|
117
|
-
// Find related patterns
|
|
118
|
-
grep({ pattern: "[related concept]", include: "*.ts" });
|
|
119
|
-
ast - grep({ pattern: "[code pattern]" });
|
|
120
|
-
|
|
121
|
-
// Understand existing architecture
|
|
122
|
-
lsp_lsp_document_symbols({ filePath: "<relevant file>" });
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
For each promising idea, note:
|
|
126
|
-
|
|
127
|
-
- Existing code that supports it
|
|
128
|
-
- Existing code that conflicts
|
|
129
|
-
- New code required
|
|
130
|
-
|
|
131
|
-
## Phase 5: Converge (Evaluate Ideas)
|
|
132
|
-
|
|
133
|
-
Rate each idea on 4 dimensions:
|
|
134
|
-
|
|
135
|
-
| Idea | Feasibility | Impact | Effort | Risk | Score |
|
|
136
|
-
| ---- | ----------- | ------ | ------ | ----- | ------ |
|
|
137
|
-
| 1 | H/M/L | H/M/L | S/M/L | H/M/L | [1-10] |
|
|
138
|
-
| 2 | H/M/L | H/M/L | S/M/L | H/M/L | [1-10] |
|
|
139
|
-
| ... | | | | | |
|
|
140
|
-
|
|
141
|
-
**Scoring guide:**
|
|
142
|
-
|
|
143
|
-
- **Feasibility:** Can we actually build this? (H=easy, L=very hard)
|
|
144
|
-
- **Impact:** How much value does this deliver? (H=high value)
|
|
145
|
-
- **Effort:** How much work? (S=small, L=large)
|
|
146
|
-
- **Risk:** What could go wrong? (H=high risk)
|
|
147
|
-
|
|
148
|
-
**Score formula:** (Feasibility × Impact) / (Effort × Risk)
|
|
149
|
-
|
|
150
|
-
## Phase 6: Deep Dive Top 3
|
|
151
|
-
|
|
152
|
-
For the top 3 scoring ideas:
|
|
153
|
-
|
|
154
|
-
### Idea [N]: [Name]
|
|
155
|
-
|
|
156
|
-
**Approach:**
|
|
157
|
-
[2-3 sentence description]
|
|
158
|
-
|
|
159
|
-
**How it works:**
|
|
160
|
-
|
|
161
|
-
1. [Step 1]
|
|
162
|
-
2. [Step 2]
|
|
163
|
-
3. [Step 3]
|
|
164
|
-
|
|
165
|
-
**Pros:**
|
|
166
|
-
|
|
167
|
-
- [Advantage 1]
|
|
168
|
-
- [Advantage 2]
|
|
169
|
-
|
|
170
|
-
**Cons:**
|
|
171
|
-
|
|
172
|
-
- [Disadvantage 1]
|
|
173
|
-
- [Disadvantage 2]
|
|
174
|
-
|
|
175
|
-
**Code sketch:**
|
|
176
|
-
|
|
177
|
-
```typescript
|
|
178
|
-
// Quick pseudocode or structure
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
**Open questions:**
|
|
182
|
-
|
|
183
|
-
- [Uncertainty 1]
|
|
184
|
-
- [Uncertainty 2]
|
|
185
|
-
|
|
186
|
-
## Phase 7: Prototype (Optional)
|
|
187
|
-
|
|
188
|
-
For the most promising idea, create a quick spike:
|
|
189
|
-
|
|
190
|
-
```
|
|
191
|
-
Prototype Goal:
|
|
192
|
-
━━━━━━━━━━━━━━━
|
|
193
|
-
|
|
194
|
-
Question to answer: [what are we validating?]
|
|
195
|
-
Time limit: 15 minutes
|
|
196
|
-
Success criteria: [how we know it works]
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
Create throwaway code to validate:
|
|
200
|
-
|
|
201
|
-
```bash
|
|
202
|
-
# Create spike branch
|
|
203
|
-
git checkout -b spike/brainstorm-$ARGUMENTS
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
Build minimal proof of concept. Delete or keep based on learnings.
|
|
207
|
-
|
|
208
|
-
## Phase 8: Capture Decision
|
|
209
|
-
|
|
210
|
-
Save brainstorm results:
|
|
211
|
-
|
|
212
|
-
**If bead exists:**
|
|
213
|
-
|
|
214
|
-
Write to `.beads/artifacts/<bead-id>/brainstorm.md`:
|
|
215
|
-
|
|
216
|
-
```markdown
|
|
217
|
-
# Brainstorm: [Topic]
|
|
218
|
-
|
|
219
|
-
**Date:** [date]
|
|
220
|
-
**Duration:** [N] minutes
|
|
221
|
-
**Bead:** <bead-id>
|
|
222
|
-
|
|
223
|
-
## Goal
|
|
224
|
-
|
|
225
|
-
[What we were exploring]
|
|
226
|
-
|
|
227
|
-
## Ideas Considered
|
|
228
|
-
|
|
229
|
-
| Idea | Feasibility | Impact | Effort | Risk | Score |
|
|
230
|
-
| ---- | ----------- | ------ | ------ | ---- | ----- |
|
|
231
|
-
| [1] | H | H | M | L | 8 |
|
|
232
|
-
| [2] | M | H | S | M | 6 |
|
|
233
|
-
| [3] | L | M | L | H | 2 |
|
|
234
|
-
|
|
235
|
-
## Recommendation
|
|
236
|
-
|
|
237
|
-
**Chosen approach:** [Idea N]
|
|
238
|
-
|
|
239
|
-
**Rationale:** [Why this approach]
|
|
240
|
-
|
|
241
|
-
## Next Steps
|
|
242
|
-
|
|
243
|
-
- [ ] [Action 1]
|
|
244
|
-
- [ ] [Action 2]
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
**Create observation for reusable insights:**
|
|
248
|
-
|
|
249
|
-
```typescript
|
|
250
|
-
observation({
|
|
251
|
-
type: "discovery",
|
|
252
|
-
title: "Brainstorm: [topic]",
|
|
253
|
-
content: `
|
|
254
|
-
## Key Insight
|
|
255
|
-
[What we learned]
|
|
256
|
-
|
|
257
|
-
## Approach Chosen
|
|
258
|
-
[Brief description]
|
|
259
|
-
|
|
260
|
-
## Why Others Rejected
|
|
261
|
-
[Brief notes on alternatives]
|
|
262
|
-
`,
|
|
263
|
-
concepts: "[topic keywords]",
|
|
264
|
-
bead_id: "<bead-id>",
|
|
265
|
-
});
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
## Phase 9: Create Follow-up Beads
|
|
269
|
-
|
|
270
|
-
For promising ideas that need more work:
|
|
271
|
-
|
|
272
|
-
```bash
|
|
273
|
-
bd create "[Idea name]" -t task -p 2
|
|
274
|
-
```
|
|
275
|
-
|
|
276
|
-
## Output
|
|
277
|
-
|
|
278
|
-
```markdown
|
|
279
|
-
Brainstorm Complete: $ARGUMENTS
|
|
280
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
281
|
-
|
|
282
|
-
Duration: [N] minutes
|
|
283
|
-
Ideas generated: [N]
|
|
284
|
-
Ideas evaluated: [N]
|
|
285
|
-
|
|
286
|
-
Top 3:
|
|
287
|
-
|
|
288
|
-
1. [Idea 1] - Score: [N]
|
|
289
|
-
2. [Idea 2] - Score: [N]
|
|
290
|
-
3. [Idea 3] - Score: [N]
|
|
291
|
-
|
|
292
|
-
Recommendation: [Chosen approach]
|
|
293
|
-
Confidence: [High/Medium/Low]
|
|
294
|
-
|
|
295
|
-
Artifacts:
|
|
296
|
-
|
|
297
|
-
- .beads/artifacts/<bead-id>/brainstorm.md (if bead)
|
|
298
|
-
- Observation created ✓
|
|
299
|
-
|
|
300
|
-
Follow-up beads: [N] created
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
**Use question tool for next steps:**
|
|
304
|
-
|
|
305
|
-
```typescript
|
|
306
|
-
question({
|
|
307
|
-
questions: [
|
|
308
|
-
{
|
|
309
|
-
header: "Next Step",
|
|
310
|
-
question: "What should we do next with $ARGUMENTS?",
|
|
311
|
-
options: [
|
|
312
|
-
{
|
|
313
|
-
label: "Research approach (Recommended)",
|
|
314
|
-
description: "Validate with /research",
|
|
315
|
-
},
|
|
316
|
-
{ label: "Create implementation plan", description: "Plan with /plan" },
|
|
317
|
-
{
|
|
318
|
-
label: "Explore more",
|
|
319
|
-
description: "Continue brainstorming other aspects",
|
|
320
|
-
},
|
|
321
|
-
{ label: "Done for now", description: "Save findings, revisit later" },
|
|
322
|
-
],
|
|
323
|
-
},
|
|
324
|
-
],
|
|
325
|
-
});
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
Brainstorm Complete: $ARGUMENTS
|
|
329
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
330
|
-
|
|
331
|
-
Duration: [N] minutes
|
|
332
|
-
Ideas generated: [N]
|
|
333
|
-
Ideas evaluated: [N]
|
|
334
|
-
|
|
335
|
-
Top 3:
|
|
336
|
-
|
|
337
|
-
1. [Idea 1] - Score: [N]
|
|
338
|
-
2. [Idea 2] - Score: [N]
|
|
339
|
-
3. [Idea 3] - Score: [N]
|
|
340
|
-
|
|
341
|
-
Recommendation: [Chosen approach]
|
|
342
|
-
Confidence: [High/Medium/Low]
|
|
343
|
-
|
|
344
|
-
Artifacts:
|
|
345
|
-
|
|
346
|
-
- .beads/artifacts/<bead-id>/brainstorm.md (if bead)
|
|
347
|
-
- Observation created ✓
|
|
348
|
-
|
|
349
|
-
Follow-up beads: [N] created
|
|
350
|
-
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
**Next steps:**
|
|
354
|
-
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
If ready to proceed:
|
|
358
|
-
/research <bead-id> # Validate approach
|
|
359
|
-
/plan <bead-id> # Create implementation plan
|
|
360
|
-
|
|
361
|
-
If need more exploration:
|
|
362
|
-
/brainstorm <new-aspect> # Continue ideation
|
|
363
|
-
|
|
364
|
-
```
|
|
365
|
-
|
|
366
|
-
## Anti-Patterns
|
|
367
|
-
|
|
368
|
-
- ❌ **Evaluating during divergence** - Generate first, judge later
|
|
369
|
-
- ❌ **Falling in love with first idea** - Explore alternatives
|
|
370
|
-
- ❌ **Infinite brainstorming** - Time box and decide
|
|
371
|
-
- ❌ **No decision** - Brainstorming must produce a recommendation
|
|
372
|
-
- ❌ **No capture** - Undocumented ideas are lost ideas
|
|
373
|
-
```
|