opencodekit 0.8.0 → 0.9.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/dist/index.js +1 -1
- package/dist/template/.opencode/AGENTS.md +5 -6
- package/dist/template/.opencode/README.md +14 -19
- package/dist/template/.opencode/agent/build.md +4 -6
- package/dist/template/.opencode/agent/explore.md +18 -18
- package/dist/template/.opencode/agent/planner.md +4 -7
- package/dist/template/.opencode/agent/review.md +1 -2
- package/dist/template/.opencode/agent/rush.md +4 -6
- package/dist/template/.opencode/agent/scout.md +45 -38
- package/dist/template/.opencode/agent/vision.md +16 -24
- package/dist/template/.opencode/command/handoff.md +8 -12
- package/dist/template/.opencode/command/research.md +10 -10
- package/dist/template/.opencode/command/status.md +4 -6
- package/dist/template/.opencode/opencode.json +1 -23
- package/dist/template/.opencode/plugin/skill-mcp.ts +458 -0
- package/dist/template/.opencode/skill/figma/SKILL.md +214 -0
- package/dist/template/.opencode/skill/playwright/SKILL.md +187 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -750,7 +750,7 @@ var cac = (name = "") => new CAC(name);
|
|
|
750
750
|
// package.json
|
|
751
751
|
var package_default = {
|
|
752
752
|
name: "opencodekit",
|
|
753
|
-
version: "0.
|
|
753
|
+
version: "0.9.0",
|
|
754
754
|
description: "CLI tool for bootstrapping and managing OpenCodeKit projects",
|
|
755
755
|
type: "module",
|
|
756
756
|
repository: {
|
|
@@ -79,13 +79,12 @@ Specify depth when delegating to control tool call budget:
|
|
|
79
79
|
|
|
80
80
|
## Tool Priority
|
|
81
81
|
|
|
82
|
-
**
|
|
82
|
+
**LSP tools → AST tools → Built-in tools**
|
|
83
83
|
|
|
84
|
-
1. `
|
|
85
|
-
2. `
|
|
86
|
-
3. `
|
|
87
|
-
4. `
|
|
88
|
-
5. `read`, `edit`, `write` - File operations
|
|
84
|
+
1. `lsp_rename`, `lsp_code_actions`, `lsp_organize_imports` - Semantic refactoring (LSP-based)
|
|
85
|
+
2. `ast-grep` - Semantic code search/replace (AST-based)
|
|
86
|
+
3. `grep`, `glob` - Pattern matching, file discovery
|
|
87
|
+
4. `read`, `edit`, `write` - File operations
|
|
89
88
|
|
|
90
89
|
**Rule**: Always `read` before `edit` to verify content.
|
|
91
90
|
|
|
@@ -144,11 +144,9 @@ Memory (Permanent) → Beads (Multi-session) → Git (Audit Trail)
|
|
|
144
144
|
|
|
145
145
|
Plugins run automatically in every session:
|
|
146
146
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
| **compactor** | Warns at 70%, 85%, 95% context usage - prevents rushed work |
|
|
151
|
-
| **truncator** | Dynamic output truncation based on context remaining |
|
|
147
|
+
- **enforcer** - OS notification when session idles with incomplete TODOs
|
|
148
|
+
- **compactor** - Warns at 70%, 85%, 95% context usage - prevents rushed work
|
|
149
|
+
- **truncator** - Dynamic output truncation based on context remaining
|
|
152
150
|
|
|
153
151
|
**Compactor thresholds**:
|
|
154
152
|
|
|
@@ -160,13 +158,11 @@ Plugins run automatically in every session:
|
|
|
160
158
|
|
|
161
159
|
## Custom Tools
|
|
162
160
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
| **observation** | Create structured observations |
|
|
169
|
-
| **ast-grep** | Semantic code search/replace (AST-based) |
|
|
161
|
+
- **memory-read** - Load previous context, templates
|
|
162
|
+
- **memory-update** - Save learnings, handoffs
|
|
163
|
+
- **memory-search** - Search across all memory files
|
|
164
|
+
- **observation** - Create structured observations
|
|
165
|
+
- **ast-grep** - Semantic code search/replace (AST-based)
|
|
170
166
|
|
|
171
167
|
### AST-Grep Usage
|
|
172
168
|
|
|
@@ -190,7 +186,7 @@ ast-grep pattern="oldFunc($$$)" rewrite="newFunc($$$)" dryRun=true
|
|
|
190
186
|
|
|
191
187
|
## MCP Services
|
|
192
188
|
|
|
193
|
-
**Enabled by default (
|
|
189
|
+
**Enabled by default (4 total):**
|
|
194
190
|
|
|
195
191
|
1. **context7** - Up-to-date library documentation (37.6k+ libraries)
|
|
196
192
|
- Requires: CONTEXT7_API_KEY
|
|
@@ -204,18 +200,17 @@ ast-grep pattern="oldFunc($$$)" rewrite="newFunc($$$)" dryRun=true
|
|
|
204
200
|
- No API key needed (public service)
|
|
205
201
|
- GitHub: https://github.com/Shachlan/grep.app-mcp
|
|
206
202
|
|
|
207
|
-
4. **gkg** - GitLab Knowledge Graph (local codebase semantic search)
|
|
208
|
-
- No API key needed (runs locally on port 27495)
|
|
209
|
-
- Docs: https://gitlab-org.gitlab.io/rust/knowledge-graph/
|
|
210
|
-
- Install: Follow https://gitlab-org.gitlab.io/rust/knowledge-graph/getting-started/install/
|
|
211
|
-
|
|
212
203
|
**Optional (disabled by default):**
|
|
213
204
|
|
|
214
|
-
|
|
205
|
+
4. **Framelink MCP for Figma** - Extract Figma layouts and design tokens
|
|
215
206
|
- Requires: FIGMA_API_KEY
|
|
216
207
|
- GitHub: https://github.com/GLips/Figma-Context-MCP (11.9k+ stars)
|
|
217
208
|
- Enable: Set `"Framelink MCP for Figma": { "enabled": true }` in opencode.json
|
|
218
209
|
|
|
210
|
+
5. **playwright** - Browser automation for testing
|
|
211
|
+
- No API key needed
|
|
212
|
+
- Use via skill: `skill({ name: "playwright" })` then `skill_mcp()`
|
|
213
|
+
|
|
219
214
|
---
|
|
220
215
|
|
|
221
216
|
## Getting Started Examples
|
|
@@ -14,7 +14,6 @@ tools:
|
|
|
14
14
|
webfetch: true
|
|
15
15
|
websearch: true
|
|
16
16
|
codesearch: true
|
|
17
|
-
gkg*: true
|
|
18
17
|
ast-grep*: true
|
|
19
18
|
lsp*: true
|
|
20
19
|
context7*: true
|
|
@@ -47,11 +46,10 @@ Primary orchestrator. Execute-first. Autonomous task completion until resolved.
|
|
|
47
46
|
|
|
48
47
|
## Tool Priority
|
|
49
48
|
|
|
50
|
-
1. **
|
|
51
|
-
2. **
|
|
52
|
-
3. **
|
|
53
|
-
4. **
|
|
54
|
-
5. **Bash** for running tests, builds, commands
|
|
49
|
+
1. **LSP tools** for semantic refactoring (rename, code actions, organize imports)
|
|
50
|
+
2. **AST-Grep** for semantic code search/replace
|
|
51
|
+
3. **Built-in tools** for pattern matching (grep, glob, read)
|
|
52
|
+
4. **Bash** for running tests, builds, commands
|
|
55
53
|
|
|
56
54
|
### LSP Tools
|
|
57
55
|
|
|
@@ -13,7 +13,7 @@ tools:
|
|
|
13
13
|
list: true
|
|
14
14
|
todoread: false
|
|
15
15
|
todowrite: false
|
|
16
|
-
|
|
16
|
+
ast-grep*: true
|
|
17
17
|
---
|
|
18
18
|
|
|
19
19
|
# Explore Agent
|
|
@@ -25,7 +25,7 @@ File search specialist. Navigate and explore codebases efficiently.
|
|
|
25
25
|
- Finding files using glob patterns
|
|
26
26
|
- Searching code with regex patterns
|
|
27
27
|
- Reading and analyzing file contents
|
|
28
|
-
- Semantic code search with
|
|
28
|
+
- Semantic code search with AST-Grep
|
|
29
29
|
|
|
30
30
|
## Guidelines
|
|
31
31
|
|
|
@@ -37,30 +37,30 @@ File search specialist. Navigate and explore codebases efficiently.
|
|
|
37
37
|
|
|
38
38
|
## Tool Priority
|
|
39
39
|
|
|
40
|
-
**Use
|
|
40
|
+
**Use AST-Grep for semantic search, then fall back to built-in tools.**
|
|
41
41
|
|
|
42
|
-
###
|
|
42
|
+
### AST-Grep (Semantic Search)
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
`ast-grep` finds functions, classes, and patterns semantically.
|
|
45
|
+
|
|
46
|
+
**Pattern syntax:** `$NAME` = single node, `$$$` = zero or more nodes
|
|
47
|
+
|
|
48
|
+
**Examples:**
|
|
49
|
+
|
|
50
|
+
- `ast-grep pattern="function $NAME($$$) { $$$ }"` - Find all functions
|
|
51
|
+
- `ast-grep pattern="console.log($$$)"` - Find all console.log calls
|
|
52
|
+
- `ast-grep pattern="const [$S, $SET] = useState($$$)"` - Find React hooks
|
|
51
53
|
|
|
52
54
|
### Built-in Tools (Pattern Matching)
|
|
53
55
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
| `grep` | Search file contents with regex |
|
|
58
|
-
| `read` | Read specific file contents |
|
|
56
|
+
- `glob` - Find files by pattern (`**/*.ts`)
|
|
57
|
+
- `grep` - Search file contents with regex
|
|
58
|
+
- `read` - Read specific file contents
|
|
59
59
|
|
|
60
60
|
## Thoroughness Levels
|
|
61
61
|
|
|
62
|
-
**Quick**: Single
|
|
62
|
+
**Quick**: Single ast-grep or glob. Read 1-3 files. Return immediately.
|
|
63
63
|
|
|
64
|
-
**Medium**:
|
|
64
|
+
**Medium**: AST-grep + grep verification. Check 2-3 naming conventions. Read 3-5 files.
|
|
65
65
|
|
|
66
66
|
**Very Thorough**: Comprehensive search across multiple terms and locations. Build dependency map. Report with file:line references.
|
|
@@ -16,7 +16,6 @@ tools:
|
|
|
16
16
|
task: true
|
|
17
17
|
todowrite: true
|
|
18
18
|
todoread: true
|
|
19
|
-
gkg*: true
|
|
20
19
|
context7*: true
|
|
21
20
|
codesearch: true
|
|
22
21
|
gh_grep*: true
|
|
@@ -60,12 +59,10 @@ Use **Facts/Guesses/Plans** in bead notes:
|
|
|
60
59
|
|
|
61
60
|
## Agent Assignments
|
|
62
61
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
| Code review, debugging | @review |
|
|
68
|
-
| Implementation | @build |
|
|
62
|
+
- Codebase search → @explore
|
|
63
|
+
- Library docs, patterns → @scout
|
|
64
|
+
- Code review, debugging → @review
|
|
65
|
+
- Implementation → @build
|
|
69
66
|
|
|
70
67
|
**Typical chain**: research → plan → build → review
|
|
71
68
|
|
|
@@ -11,7 +11,6 @@ tools:
|
|
|
11
11
|
grep: true
|
|
12
12
|
read: true
|
|
13
13
|
list: true
|
|
14
|
-
gkg*: true
|
|
15
14
|
webfetch: true
|
|
16
15
|
websearch: true
|
|
17
16
|
context7*: true
|
|
@@ -70,7 +69,7 @@ bd create "[type]: [description]" -t bug -p [0-4] -d "[details, file:line]"
|
|
|
70
69
|
|
|
71
70
|
## Tool Priority
|
|
72
71
|
|
|
73
|
-
**Codebase**:
|
|
72
|
+
**Codebase**: grep → ast-grep → read
|
|
74
73
|
**Verification**: bash (tests, lint, type-check)
|
|
75
74
|
**History**: `git log -p`, `git blame`
|
|
76
75
|
|
|
@@ -13,7 +13,6 @@ tools:
|
|
|
13
13
|
list: true
|
|
14
14
|
webfetch: true
|
|
15
15
|
websearch: true
|
|
16
|
-
gkg*: true
|
|
17
16
|
ast-grep*: true
|
|
18
17
|
lsp*: true
|
|
19
18
|
context7*: true
|
|
@@ -46,12 +45,11 @@ Fast execute-first agent. Speed over depth. Delegate anything complex.
|
|
|
46
45
|
|
|
47
46
|
## Tool Priority
|
|
48
47
|
|
|
49
|
-
**
|
|
48
|
+
**LSP tools FIRST, then AST-Grep, then built-in tools.**
|
|
50
49
|
|
|
51
|
-
1. `
|
|
52
|
-
2. `
|
|
53
|
-
3. `
|
|
54
|
-
4. `grep`, `glob` - Text search, file patterns
|
|
50
|
+
1. `lsp_rename`, `lsp_organize_imports` - Semantic refactoring
|
|
51
|
+
2. `ast-grep` - Semantic code search/replace
|
|
52
|
+
3. `grep`, `glob` - Text search, file patterns
|
|
55
53
|
|
|
56
54
|
### LSP Tools (Fast Refactoring)
|
|
57
55
|
|
|
@@ -11,7 +11,6 @@ tools:
|
|
|
11
11
|
grep: false
|
|
12
12
|
read: false
|
|
13
13
|
list: false
|
|
14
|
-
gkg*: false
|
|
15
14
|
webfetch: true
|
|
16
15
|
websearch: true
|
|
17
16
|
context7*: true
|
|
@@ -32,62 +31,70 @@ External research: library docs, GitHub patterns, framework analysis.
|
|
|
32
31
|
- Cross-repository analysis
|
|
33
32
|
- Best practices research
|
|
34
33
|
|
|
35
|
-
##
|
|
34
|
+
## First: Classify the Request
|
|
35
|
+
|
|
36
|
+
Before searching, identify what you're dealing with.
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
- No emojis in responses
|
|
39
|
-
- Explain WHAT, WHY, HOW in deep mode
|
|
40
|
-
- Compare implementations across repositories
|
|
38
|
+
**Conceptual questions** sound like "how do I use X", "what's the best practice for Y", or "docs for Z". These need official documentation plus recent web sources. Run context7 and websearch in parallel.
|
|
41
39
|
|
|
42
|
-
|
|
40
|
+
**Implementation questions** sound like "how does X implement Y", "show me the source of Z", or "internal logic of W". These need actual source code with permalinks. Clone the repo, find the code, construct a permalink.
|
|
43
41
|
|
|
44
|
-
**
|
|
42
|
+
**Context questions** sound like "why was this changed", "history of X", or "what issues led to Y". These need git history, issues, and PRs. Search issues and PRs, check git blame, find the discussion.
|
|
45
43
|
|
|
46
|
-
**
|
|
44
|
+
**Comprehensive questions** are complex or ambiguous. Hit everything in parallel: docs, web search, GitHub code search, and source analysis.
|
|
47
45
|
|
|
48
46
|
## Quick Mode
|
|
49
47
|
|
|
50
|
-
For API lookups, syntax help, configuration guides.
|
|
48
|
+
For API lookups, syntax help, configuration guides. Triggered by: "how to", "syntax for", "API for", "docs for".
|
|
51
49
|
|
|
52
|
-
|
|
53
|
-
1. context7_resolve_library_id("library")
|
|
54
|
-
2. context7_get_library_docs(libraryID, topic)
|
|
55
|
-
3. Return: API signature + example + source link
|
|
56
|
-
```
|
|
50
|
+
Start with context7 to resolve the library ID, then query the specific topic. If context7 lacks coverage, fall back to websearch or codesearch. Return the API signature, a minimal example, and the source link.
|
|
57
51
|
|
|
58
|
-
|
|
59
|
-
**Performance**: <10 seconds
|
|
52
|
+
Run at least 2-3 tool calls in parallel. Output should be 2-3 sentences plus a code example. Target under 10 seconds.
|
|
60
53
|
|
|
61
54
|
## Deep Mode
|
|
62
55
|
|
|
63
|
-
For cross-repository analysis
|
|
56
|
+
For cross-repository analysis and pattern comparison. Triggered by: "how do others", "compare", "best practices", "production patterns".
|
|
57
|
+
|
|
58
|
+
Search GitHub for real implementations using gh_grep_searchGitHub. Vary your queries to hit different angles of the same concept. Compare 3-5 implementations from different repositories. Synthesize the common patterns and note the tradeoffs.
|
|
59
|
+
|
|
60
|
+
Run at least 4-6 tool calls in parallel. Output should include a summary, multiple code examples, tradeoffs, and a recommendation.
|
|
61
|
+
|
|
62
|
+
## Permalink Protocol
|
|
64
63
|
|
|
65
|
-
|
|
66
|
-
1. gh_grep_searchGitHub(pattern, language)
|
|
67
|
-
2. context7 for official docs
|
|
68
|
-
3. Compare 3-5 implementations
|
|
69
|
-
4. Synthesize patterns
|
|
70
|
-
```
|
|
64
|
+
Every code reference must include a GitHub permalink. Never link to a branch or tag that can change.
|
|
71
65
|
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
To construct a permalink: clone the repo with depth 1, get the commit SHA with `git rev-parse HEAD`, then build the URL as `https://github.com/owner/repo/blob/<sha>/path/to/file#L10-L20`.
|
|
67
|
+
|
|
68
|
+
When citing code, format it as the claim, then the evidence with a permalink, then the code block, then a brief explanation of why this matters.
|
|
74
69
|
|
|
75
70
|
## Tool Priority
|
|
76
71
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
72
|
+
Use context7 first for official documentation. It's fastest and most authoritative for library APIs.
|
|
73
|
+
|
|
74
|
+
Use gh_grep_searchGitHub for real GitHub code patterns. Vary your queries: search for the function name, then the configuration key, then the error message.
|
|
75
|
+
|
|
76
|
+
Use codesearch for code examples when you need broader coverage than a single repo.
|
|
77
|
+
|
|
78
|
+
Use websearch for best practices, comparisons, and recent articles. Always append the current year to avoid stale results.
|
|
79
|
+
|
|
80
|
+
Use webfetch for specific URLs: official docs, RFCs, blog posts the user shared.
|
|
81
|
+
|
|
82
|
+
## When Things Fail
|
|
83
|
+
|
|
84
|
+
If context7 doesn't find the library, clone the repo directly and read the source plus README.
|
|
85
|
+
|
|
86
|
+
If gh_grep returns nothing, broaden your query. Search for concepts instead of exact function names.
|
|
87
|
+
|
|
88
|
+
If you hit API rate limits, work from already-cloned repos in the temp directory.
|
|
89
|
+
|
|
90
|
+
If you're uncertain, say so explicitly. Propose a hypothesis but flag it as unverified.
|
|
91
|
+
|
|
92
|
+
## Guidelines
|
|
82
93
|
|
|
83
|
-
|
|
94
|
+
Cite sources with links. No emojis. Explain what the code does, why it's designed that way, and how to use it.
|
|
84
95
|
|
|
85
|
-
|
|
86
|
-
**Deep**: "how do others", "compare", "best practices", "production patterns"
|
|
96
|
+
Compare implementations across repositories when doing deep research. Note which patterns are common versus unique.
|
|
87
97
|
|
|
88
98
|
## Delegation
|
|
89
99
|
|
|
90
|
-
|
|
91
|
-
- Complex reasoning → @review
|
|
92
|
-
- Code generation → @build
|
|
93
|
-
- Architecture planning → @planner
|
|
100
|
+
If the task requires local codebase search, hand off to @explore. If it requires complex reasoning or debugging, hand off to @review. If it requires code generation, hand off to the main agent. If it requires architecture planning, hand off to @planner.
|
|
@@ -16,7 +16,6 @@ tools:
|
|
|
16
16
|
task: true
|
|
17
17
|
todowrite: true
|
|
18
18
|
todoread: true
|
|
19
|
-
gkg*: true
|
|
20
19
|
context7*: true
|
|
21
20
|
codesearch: true
|
|
22
21
|
gh_grep*: true
|
|
@@ -57,12 +56,10 @@ Comprehensive analysis with actionable recommendations.
|
|
|
57
56
|
**Use when:** Design review, accessibility audit, system consistency check
|
|
58
57
|
**Skills:** Combine multiple skills based on task:
|
|
59
58
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
| Design System | `design-system-audit` | `frontend-aesthetics` |
|
|
65
|
-
| Mockup Analysis | `mockup-to-code` | `visual-analysis` |
|
|
59
|
+
- **UI/UX Review**: Primary `ui-ux-research`, supporting `frontend-aesthetics`
|
|
60
|
+
- **Accessibility**: Primary `accessibility-audit`, supporting `visual-analysis`
|
|
61
|
+
- **Design System**: Primary `design-system-audit`, supporting `frontend-aesthetics`
|
|
62
|
+
- **Mockup Analysis**: Primary `mockup-to-code`, supporting `visual-analysis`
|
|
66
63
|
|
|
67
64
|
```
|
|
68
65
|
Load skill(s) → Systematic analysis → Structured findings → Recommendations
|
|
@@ -89,22 +86,19 @@ Load skill(s) → Systematic analysis → Structured findings → Recommendation
|
|
|
89
86
|
|
|
90
87
|
## Skill Selection Guide
|
|
91
88
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
| "Is this too AI-looking?" | `frontend-aesthetics` |
|
|
99
|
-
| "Deep UI/UX analysis" | `ui-ux-research` |
|
|
89
|
+
- "Review this mockup" → `visual-analysis`
|
|
90
|
+
- "Check accessibility" → `accessibility-audit`
|
|
91
|
+
- "Audit our design system" → `design-system-audit`
|
|
92
|
+
- "Convert this design to code" → `mockup-to-code`
|
|
93
|
+
- "Is this too AI-looking?" → `frontend-aesthetics`
|
|
94
|
+
- "Deep UI/UX analysis" → `ui-ux-research`
|
|
100
95
|
|
|
101
96
|
## Tool Priority
|
|
102
97
|
|
|
103
98
|
1. **Skills** (`use_skill`) - Load appropriate skill for the task
|
|
104
99
|
2. **Read/Glob** - Inspect existing components and styles
|
|
105
|
-
3. **
|
|
106
|
-
4. **
|
|
107
|
-
5. **Context7** - UI library documentation
|
|
100
|
+
3. **Webfetch/Websearch** - Design inspiration and references
|
|
101
|
+
4. **Context7** - UI library documentation
|
|
108
102
|
|
|
109
103
|
## Output Format
|
|
110
104
|
|
|
@@ -138,12 +132,10 @@ All analyses should follow this structure:
|
|
|
138
132
|
|
|
139
133
|
## Delegation
|
|
140
134
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
| Review implementation | @review |
|
|
146
|
-
| Plan large redesign | @planner |
|
|
135
|
+
- Implement changes → @build
|
|
136
|
+
- Research UI libraries → @scout
|
|
137
|
+
- Review implementation → @review
|
|
138
|
+
- Plan large redesign → @planner
|
|
147
139
|
|
|
148
140
|
## Anti-Patterns to Flag
|
|
149
141
|
|
|
@@ -47,12 +47,10 @@ Write `.beads/artifacts/<bead-id>/handoffs/<timestamp>.md`:
|
|
|
47
47
|
|
|
48
48
|
## Provenance
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
| Commit | [commit hash] |
|
|
55
|
-
| Clean | [yes/no] |
|
|
50
|
+
- **Repo:** [git remote URL]
|
|
51
|
+
- **Branch:** [branch name]
|
|
52
|
+
- **Commit:** [commit hash]
|
|
53
|
+
- **Clean:** [yes/no]
|
|
56
54
|
|
|
57
55
|
## Session Context
|
|
58
56
|
|
|
@@ -68,12 +66,10 @@ read_session("last", project="current")
|
|
|
68
66
|
|
|
69
67
|
## Bead State
|
|
70
68
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
| Status | [status] |
|
|
76
|
-
| Priority | [priority] |
|
|
69
|
+
- **ID:** <bead-id>
|
|
70
|
+
- **Title:** [title]
|
|
71
|
+
- **Status:** [status]
|
|
72
|
+
- **Priority:** [priority]
|
|
77
73
|
|
|
78
74
|
## Progress
|
|
79
75
|
|
|
@@ -43,11 +43,11 @@ Extract:
|
|
|
43
43
|
|
|
44
44
|
Run these **in parallel** using batch tool calls:
|
|
45
45
|
|
|
46
|
-
### Internal Codebase
|
|
46
|
+
### Internal Codebase
|
|
47
47
|
|
|
48
|
-
- `
|
|
49
|
-
- `
|
|
50
|
-
- `
|
|
48
|
+
- `grep` - Find related functions/classes by pattern
|
|
49
|
+
- `ast-grep` - Semantic code search for patterns
|
|
50
|
+
- `glob` - Map relevant directories
|
|
51
51
|
|
|
52
52
|
### External Docs (Context7)
|
|
53
53
|
|
|
@@ -68,12 +68,12 @@ Run these **in parallel** using batch tool calls:
|
|
|
68
68
|
|
|
69
69
|
For each finding:
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
**Validation checklist:**
|
|
72
|
+
|
|
73
|
+
- Within spec scope?
|
|
74
|
+
- Follows constraints?
|
|
75
|
+
- Uses allowed libs?
|
|
76
|
+
- Matches existing patterns?
|
|
77
77
|
|
|
78
78
|
**Discard anything that fails.**
|
|
79
79
|
|
|
@@ -79,12 +79,10 @@ For `bd_ls({ status: "in_progress" })`:
|
|
|
79
79
|
|
|
80
80
|
## Required Actions
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
| In Progress | `/implement <bead-id>` |
|
|
87
|
-
| Ready to finish | `/finish <bead-id>` |
|
|
82
|
+
- Missing spec → `/create`
|
|
83
|
+
- Has spec → `/start <bead-id>`
|
|
84
|
+
- In Progress → `/implement <bead-id>`
|
|
85
|
+
- Ready to finish → `/finish <bead-id>`
|
|
88
86
|
|
|
89
87
|
## Session Insights
|
|
90
88
|
|
|
@@ -72,17 +72,6 @@
|
|
|
72
72
|
"session_compact": "ctrl+k"
|
|
73
73
|
},
|
|
74
74
|
"mcp": {
|
|
75
|
-
"Framelink MCP for Figma": {
|
|
76
|
-
"command": [
|
|
77
|
-
"npx",
|
|
78
|
-
"-y",
|
|
79
|
-
"figma-developer-mcp",
|
|
80
|
-
"--figma-api-key={env:FIGMA_API_KEY}",
|
|
81
|
-
"--stdio"
|
|
82
|
-
],
|
|
83
|
-
"enabled": false,
|
|
84
|
-
"type": "local"
|
|
85
|
-
},
|
|
86
75
|
"context7": {
|
|
87
76
|
"command": [
|
|
88
77
|
"npx",
|
|
@@ -98,16 +87,6 @@
|
|
|
98
87
|
"enabled": true,
|
|
99
88
|
"type": "remote",
|
|
100
89
|
"url": "https://mcp.grep.app"
|
|
101
|
-
},
|
|
102
|
-
"gkg": {
|
|
103
|
-
"enabled": true,
|
|
104
|
-
"type": "remote",
|
|
105
|
-
"url": "http://localhost:27495/mcp"
|
|
106
|
-
},
|
|
107
|
-
"playwright": {
|
|
108
|
-
"command": ["npx", "@playwright/mcp@latest"],
|
|
109
|
-
"enabled": false,
|
|
110
|
-
"type": "local"
|
|
111
90
|
}
|
|
112
91
|
},
|
|
113
92
|
"model": "github-copilot/claude-haiku-4.5",
|
|
@@ -475,8 +454,7 @@
|
|
|
475
454
|
"tools": {
|
|
476
455
|
"beads-village*": false,
|
|
477
456
|
"context7*": true,
|
|
478
|
-
"gh_grep*": true
|
|
479
|
-
"gkg*": true
|
|
457
|
+
"gh_grep*": true
|
|
480
458
|
},
|
|
481
459
|
"tui": {
|
|
482
460
|
"diff_style": "auto",
|