opencodekit 0.15.1 → 0.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/template/.opencode/README.md +1 -1
  3. package/dist/template/.opencode/agent/scout.md +159 -3
  4. package/dist/template/.opencode/agent/vision.md +4 -4
  5. package/dist/template/.opencode/command/agent-browser.md +21 -0
  6. package/dist/template/.opencode/command/complete-next-task.md +77 -0
  7. package/dist/template/.opencode/command/create.md +38 -3
  8. package/dist/template/.opencode/command/design-audit.md +1 -1
  9. package/dist/template/.opencode/command/design.md +1 -1
  10. package/dist/template/.opencode/command/finish.md +8 -0
  11. package/dist/template/.opencode/command/frontend-design.md +21 -0
  12. package/dist/template/.opencode/command/index-knowledge.md +25 -0
  13. package/dist/template/.opencode/command/init.md +6 -0
  14. package/dist/template/.opencode/command/opensrc.md +58 -0
  15. package/dist/template/.opencode/command/skill-create.md +3 -3
  16. package/dist/template/.opencode/command/skill-optimize.md +2 -2
  17. package/dist/template/.opencode/command/start.md +15 -6
  18. package/dist/template/.opencode/command/ui-review.md +1 -1
  19. package/dist/template/.opencode/memory/_templates/prd.md +50 -14
  20. package/dist/template/.opencode/opencode.json +2 -1
  21. package/dist/template/.opencode/package.json +1 -1
  22. package/dist/template/.opencode/plans/1768385996691-silent-wizard.md +237 -0
  23. package/dist/template/.opencode/skill/accessibility-audit/SKILL.md +1 -1
  24. package/dist/template/.opencode/skill/agent-browser/SKILL.md +376 -0
  25. package/dist/template/.opencode/skill/design-system-audit/SKILL.md +1 -1
  26. package/dist/template/.opencode/skill/frontend-design/SKILL.md +155 -0
  27. package/dist/template/.opencode/skill/frontend-design/references/animation/motion-advanced.md +224 -0
  28. package/dist/template/.opencode/skill/frontend-design/references/animation/motion-core.md +171 -0
  29. package/dist/template/.opencode/skill/frontend-design/references/canvas/execution.md +90 -0
  30. package/dist/template/.opencode/skill/frontend-design/references/canvas/philosophy.md +94 -0
  31. package/dist/template/.opencode/skill/frontend-design/references/shadcn/accessibility.md +132 -0
  32. package/dist/template/.opencode/skill/frontend-design/references/shadcn/core-components.md +153 -0
  33. package/dist/template/.opencode/skill/frontend-design/references/shadcn/form-components.md +158 -0
  34. package/dist/template/.opencode/skill/frontend-design/references/shadcn/setup.md +69 -0
  35. package/dist/template/.opencode/skill/frontend-design/references/shadcn/theming.md +152 -0
  36. package/dist/template/.opencode/skill/frontend-design/references/tailwind/responsive.md +112 -0
  37. package/dist/template/.opencode/skill/frontend-design/references/tailwind/utilities-layout.md +134 -0
  38. package/dist/template/.opencode/skill/frontend-design/references/tailwind/utilities-styling.md +165 -0
  39. package/dist/template/.opencode/skill/frontend-design/references/tailwind/v4-config.md +147 -0
  40. package/dist/template/.opencode/skill/frontend-design/references/tailwind/v4-features.md +128 -0
  41. package/dist/template/.opencode/skill/index-knowledge/SKILL.md +358 -0
  42. package/dist/template/.opencode/skill/mockup-to-code/SKILL.md +1 -1
  43. package/dist/template/.opencode/skill/opensrc/SKILL.md +115 -0
  44. package/dist/template/.opencode/skill/opensrc/references/architecture.md +176 -0
  45. package/dist/template/.opencode/skill/opensrc/references/cli-usage.md +176 -0
  46. package/dist/template/.opencode/skill/opensrc/references/registry-support.md +137 -0
  47. package/dist/template/.opencode/skill/prd/SKILL.md +212 -0
  48. package/dist/template/.opencode/skill/prd-task/SKILL.md +128 -0
  49. package/dist/template/.opencode/skill/prd-task/references/prd-schema.json +28 -0
  50. package/dist/template/.opencode/skill/skill-creator/SKILL.md +155 -0
  51. package/dist/template/.opencode/skill/ui-ux-research/SKILL.md +1 -1
  52. package/dist/template/.opencode/skill/visual-analysis/SKILL.md +1 -1
  53. package/package.json +1 -1
  54. package/dist/template/.opencode/skill/frontend-aesthetics/SKILL.md +0 -117
@@ -1,26 +1,24 @@
1
- # Task PRD Template
1
+ # Beads PRD Template
2
2
 
3
- **Task ID:** [auto-generated]
3
+ **Bead:** bd-[id]
4
4
  **Created:** [date]
5
- **Status:** To Do
5
+ **Status:** Draft
6
6
 
7
7
  ## Goal
8
8
 
9
- What exactly are we building and why does it exist in the product?
9
+ What exactly are we building and why does it exist?
10
10
 
11
11
  ## Scope
12
12
 
13
- ### In-Scope:
13
+ ### In-Scope
14
14
 
15
15
  - [List what's allowed]
16
16
 
17
- ### Out-of-Scope:
17
+ ### Out-of-Scope
18
18
 
19
19
  - [List what's explicitly off-limits]
20
20
 
21
- ## User Flow
22
-
23
- The literal step-by-step of what the user sees/does:
21
+ ## User Flow (if user-facing)
24
22
 
25
23
  1. [Step 1]
26
24
  2. [Step 2]
@@ -28,16 +26,54 @@ The literal step-by-step of what the user sees/does:
28
26
 
29
27
  ## Success Criteria
30
28
 
31
- The exact conditions under which I consider this done:
32
-
33
29
  - [ ] [Specific, measurable criteria 1]
30
+ - Verify: `[command or manual check]`
34
31
  - [ ] [Specific, measurable criteria 2]
35
- - [ ] [Specific, measurable criteria 3]
32
+ - Verify: `[command or manual check]`
33
+
34
+ ## Technical Context
35
+
36
+ ### Existing Patterns
37
+
38
+ - Pattern 1: `src/path/to/example.ts` - Why relevant
36
39
 
37
- ## Dependencies
40
+ ### Key Files
38
41
 
39
- - [List any prerequisites or blocking tasks]
42
+ - `src/relevant/file.ts` - Why relevant
43
+
44
+ ## Risks
45
+
46
+ - [Risk 1 + mitigation]
40
47
 
41
48
  ## Notes
42
49
 
43
50
  [Additional context or constraints]
51
+
52
+ ---
53
+
54
+ ## Tasks
55
+
56
+ Write tasks in a machine-convertible format for `prd-task`.
57
+
58
+ Rules:
59
+
60
+ - Each task is a `### <Title> [category]` heading.
61
+ - Provide one sentence describing the end state.
62
+ - Include `**Verification:**` with bullet steps proving it works.
63
+
64
+ ### <Task Title> [category]
65
+
66
+ <One sentence describing the end state>
67
+
68
+ **Verification:**
69
+
70
+ - [Command or check]
71
+ - [Command or check]
72
+
73
+ ### <Task Title> [category]
74
+
75
+ <One sentence describing the end state>
76
+
77
+ **Verification:**
78
+
79
+ - [Command or check]
@@ -148,7 +148,8 @@
148
148
  },
149
149
  "plugin": [
150
150
  "@tarquinen/opencode-dcp@latest",
151
- "@franlol/opencode-md-table-formatter@0.0.3"
151
+ "@franlol/opencode-md-table-formatter@0.0.3",
152
+ "opencode-copilot-auth@0.0.11"
152
153
  ],
153
154
  "provider": {
154
155
  "github-copilot": {
@@ -11,7 +11,7 @@
11
11
  "type-check": "tsc --noEmit"
12
12
  },
13
13
  "dependencies": {
14
- "@opencode-ai/plugin": "1.1.14"
14
+ "@opencode-ai/plugin": "1.1.19"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/node": "^25.0.3",
@@ -0,0 +1,237 @@
1
+ # Plan: Optimize Scout Agent for External Research
2
+
3
+ **Goal:** Enhance Scout agent prompt with missing tool integrations and workflows for optimal external research.
4
+
5
+ **Scope:** READ-ONLY external research only (no local codebase changes)
6
+
7
+ ---
8
+
9
+ ## Changes Required
10
+
11
+ ### File: `.opencode/agent/scout.md`
12
+
13
+ #### 1. Add Memory-First Protocol (after line 43, before "External research:")
14
+
15
+ ````markdown
16
+ ## Memory First
17
+
18
+ Before hitting external APIs, check past research:
19
+
20
+ ```typescript
21
+ memory - search({ query: "<topic keywords>", limit: 3 });
22
+ ```
23
+ ````
24
+
25
+ If memory returns high-confidence findings on this exact topic, synthesize and return without external calls. Only proceed to external sources if:
26
+
27
+ - No relevant memory found
28
+ - Memory findings are outdated or low-confidence
29
+ - Question requires fresher data
30
+
31
+ ````
32
+
33
+ #### 2. Add Tool Priority Section (replace/enhance "## Guidelines" around line 88)
34
+
35
+ ```markdown
36
+ ## Tool Priority (External Sources Only)
37
+
38
+ | Priority | Tool | Use Case | Speed |
39
+ |----------|------|----------|-------|
40
+ | 1 | memory-search | Past research findings | Instant |
41
+ | 2 | context7 | Official library docs | Fast |
42
+ | 3 | codesearch | Usage patterns in real code | Fast |
43
+ | 4 | gh_grep | Cross-repo deep code search | Medium |
44
+ | 5 | webfetch | Specific doc URLs, READMEs, changelogs | Medium |
45
+ | 6 | opensrc + LSP | Clone & analyze source code | Slow |
46
+ | 7 | websearch | Tutorials, blog posts, recent news | Slow |
47
+
48
+ **Rule:** Exhaust faster tools before slower ones. Run tools in parallel when independent.
49
+ ````
50
+
51
+ #### 3. Add webfetch Section (new section after Tool Priority)
52
+
53
+ ````markdown
54
+ ## webfetch Usage
55
+
56
+ Use `webfetch` for specific external URLs when you have a known target:
57
+
58
+ ```typescript
59
+ // GitHub raw files
60
+ webfetch({
61
+ url: "https://raw.githubusercontent.com/owner/repo/main/README.md",
62
+ format: "markdown",
63
+ });
64
+
65
+ // Documentation pages
66
+ webfetch({ url: "https://zod.dev/docs/guides/async", format: "markdown" });
67
+
68
+ // Release notes
69
+ webfetch({ url: "https://github.com/colinhacks/zod/releases", format: "markdown" });
70
+
71
+ // API references
72
+ webfetch({ url: "https://docs.example.com/api/authentication", format: "markdown" });
73
+ ```
74
+ ````
75
+
76
+ **When to use:**
77
+
78
+ - User provides a specific URL
79
+ - context7 returns a doc link worth fetching
80
+ - Need CHANGELOG or release notes
81
+ - GitHub README has details not in context7
82
+
83
+ ````
84
+
85
+ #### 4. Add Source Code Deep Dive Section (new section, expand on existing clone guidance)
86
+
87
+ ```markdown
88
+ ## Source Code Deep Dive
89
+
90
+ When documentation is insufficient, analyze actual source code.
91
+
92
+ ### Step 1: Load the Skill
93
+ ```typescript
94
+ skill({ name: "source-code-research" })
95
+ ````
96
+
97
+ ### Step 2: Clone the Package
98
+
99
+ ```bash
100
+ npx opensrc <package> # npm (auto-detects version)
101
+ npx opensrc <package>@<version> # specific version
102
+ npx opensrc pypi:<package> # Python
103
+ npx opensrc <owner>/<repo> # GitHub repo
104
+ ```
105
+
106
+ ### Step 3: Navigate with LSP
107
+
108
+ After cloning, source lands in `opensrc/repos/github.com/<owner>/<repo>/`. Use LSP:
109
+
110
+ ```typescript
111
+ // Get file structure
112
+ lsp({
113
+ operation: "documentSymbol",
114
+ filePath: "opensrc/repos/.../src/index.ts",
115
+ line: 1,
116
+ character: 1,
117
+ });
118
+
119
+ // Jump to definition
120
+ lsp({
121
+ operation: "goToDefinition",
122
+ filePath: "opensrc/repos/.../src/types.ts",
123
+ line: 42,
124
+ character: 10,
125
+ });
126
+
127
+ // Find all usages
128
+ lsp({
129
+ operation: "findReferences",
130
+ filePath: "opensrc/repos/.../src/core.ts",
131
+ line: 100,
132
+ character: 5,
133
+ });
134
+ ```
135
+
136
+ ### Step 4: Search Within Clone
137
+
138
+ ```typescript
139
+ // Find specific patterns
140
+ grep({ pattern: "async.*refine", path: "opensrc/", include: "*.ts" });
141
+
142
+ // Check tests for usage examples
143
+ glob({ pattern: "opensrc/**/test/**/*.ts" });
144
+ glob({ pattern: "opensrc/**/*.test.ts" });
145
+ ```
146
+
147
+ ### Step 5: Construct Permalinks
148
+
149
+ Build GitHub permalinks from cloned code:
150
+
151
+ ```
152
+ https://github.com/<owner>/<repo>/blob/<sha>/path/to/file.ts#L42-L56
153
+ ```
154
+
155
+ Get SHA from `opensrc/sources.json` or the cloned repo.
156
+
157
+ ````
158
+
159
+ #### 5. Update Fallback Chain in "When Things Fail" Section (enhance existing)
160
+
161
+ ```markdown
162
+ ## When Things Fail
163
+
164
+ ### Fallback Chain
165
+ ````
166
+
167
+ context7 fails → try codesearch for patterns
168
+ codesearch empty → try gh_grep with broader query
169
+ gh_grep empty → webfetch specific doc URLs if known
170
+ still stuck → opensrc clone + LSP analysis
171
+ last resort → websearch for tutorials/blogs
172
+
173
+ ```
174
+
175
+ ### Specific Failures
176
+
177
+ **context7 doesn't find library:**
178
+ 1. Try `codesearch({ query: "<library> <function> example" })`
179
+ 2. Try `gh_grep_searchGitHub({ query: "import.*from.*<library>" })`
180
+ 3. Clone with `npx opensrc <library>` and read source
181
+
182
+ **gh_grep returns nothing:**
183
+ - Broaden query: search concepts, not exact function names
184
+ - Try different language filters
185
+ - Search for error messages or config patterns
186
+
187
+ **opensrc clone fails:**
188
+ - Check if package exists on npm/pypi/crates
189
+ - Try GitHub URL directly: `npx opensrc owner/repo`
190
+ - Fall back to `webfetch` on raw GitHub files
191
+
192
+ **API rate limits:**
193
+ - Work from already-cloned repos in `opensrc/`
194
+ - Use `memory-search` to find cached findings
195
+ - Reduce parallel calls, go sequential
196
+ ```
197
+
198
+ ---
199
+
200
+ ## Summary of Additions
201
+
202
+ | Addition | Lines | Purpose |
203
+ | ----------------------- | ----- | ----------------------------------------- |
204
+ | Memory-First Protocol | ~15 | Check past research before external calls |
205
+ | Tool Priority Table | ~15 | Clear hierarchy for tool selection |
206
+ | webfetch Section | ~25 | Document missing tool usage |
207
+ | Source Code Deep Dive | ~50 | Full opensrc + LSP workflow |
208
+ | Enhanced Fallback Chain | ~30 | Clear failure recovery paths |
209
+
210
+ **Total additions:** ~135 lines
211
+
212
+ ---
213
+
214
+ ## Files to Modify
215
+
216
+ 1. `.opencode/agent/scout.md` - Add sections above
217
+
218
+ ---
219
+
220
+ ## Verification
221
+
222
+ After implementation:
223
+
224
+ 1. Test Quick Mode: `@scout how to use zod .refine()`
225
+ 2. Test Deep Mode: `@scout how do production apps handle zod async validation`
226
+ 3. Test Source Dive: `@scout show me zod's internal parse implementation`
227
+ 4. Verify memory check appears in scout's first actions
228
+ 5. Verify webfetch used when given specific URLs
229
+
230
+ ---
231
+
232
+ ## Out of Scope
233
+
234
+ - Local codebase access (that's Explore agent)
235
+ - File modifications outside `.beads/artifacts/`
236
+ - Question tool (subagent constraint)
237
+ - New MCP integrations (uses existing tools)
@@ -181,5 +181,5 @@ Save audit reports to `.opencode/memory/design/accessibility/`
181
181
 
182
182
  | Need | Skill |
183
183
  | -------------- | --------------------- |
184
- | Design quality | `frontend-aesthetics` |
184
+ | Design quality | `frontend-design` |
185
185
  | UI research | `ui-ux-research` |