opencodekit 0.9.2 → 0.11.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 +116 -47
- package/dist/template/.opencode/agent/build.md +16 -48
- package/dist/template/.opencode/agent/explore.md +13 -34
- package/dist/template/.opencode/agent/planner.md +41 -11
- package/dist/template/.opencode/agent/review.md +2 -23
- package/dist/template/.opencode/agent/rush.md +24 -65
- package/dist/template/.opencode/agent/scout.md +5 -21
- package/dist/template/.opencode/agent/vision.md +0 -14
- package/dist/template/.opencode/command/accessibility-check.md +293 -30
- package/dist/template/.opencode/command/analyze-mockup.md +406 -20
- package/dist/template/.opencode/command/analyze-project.md +439 -30
- package/dist/template/.opencode/command/brainstorm.md +288 -5
- package/dist/template/.opencode/command/commit.md +226 -17
- package/dist/template/.opencode/command/create.md +138 -35
- package/dist/template/.opencode/command/design-audit.md +477 -29
- package/dist/template/.opencode/command/design.md +609 -6
- package/dist/template/.opencode/command/edit-image.md +223 -20
- package/dist/template/.opencode/command/finish.md +162 -71
- package/dist/template/.opencode/command/fix-ci.md +296 -24
- package/dist/template/.opencode/command/fix-types.md +345 -13
- package/dist/template/.opencode/command/fix-ui.md +293 -13
- package/dist/template/.opencode/command/fix.md +256 -9
- package/dist/template/.opencode/command/generate-diagram.md +327 -26
- package/dist/template/.opencode/command/generate-icon.md +266 -22
- package/dist/template/.opencode/command/generate-image.md +232 -12
- package/dist/template/.opencode/command/generate-pattern.md +234 -20
- package/dist/template/.opencode/command/generate-storyboard.md +231 -21
- package/dist/template/.opencode/command/handoff.md +202 -30
- package/dist/template/.opencode/command/implement.md +162 -50
- package/dist/template/.opencode/command/import-plan.md +247 -51
- package/dist/template/.opencode/command/init.md +154 -35
- package/dist/template/.opencode/command/integration-test.md +405 -24
- package/dist/template/.opencode/command/issue.md +171 -21
- package/dist/template/.opencode/command/new-feature.md +382 -54
- package/dist/template/.opencode/command/plan.md +144 -118
- package/dist/template/.opencode/command/pr.md +229 -28
- package/dist/template/.opencode/command/quick-build.md +234 -5
- package/dist/template/.opencode/command/research-and-implement.md +436 -12
- package/dist/template/.opencode/command/research-ui.md +444 -34
- package/dist/template/.opencode/command/research.md +173 -45
- package/dist/template/.opencode/command/restore-image.md +416 -22
- package/dist/template/.opencode/command/resume.md +439 -63
- package/dist/template/.opencode/command/revert-feature.md +341 -64
- package/dist/template/.opencode/command/review-codebase.md +193 -4
- package/dist/template/.opencode/command/skill-create.md +506 -14
- package/dist/template/.opencode/command/skill-optimize.md +487 -16
- package/dist/template/.opencode/command/status.md +320 -60
- package/dist/template/.opencode/command/summarize.md +374 -33
- package/dist/template/.opencode/command/triage.md +355 -0
- package/dist/template/.opencode/command/ui-review.md +292 -25
- package/dist/template/.opencode/plugin/README.md +110 -98
- package/dist/template/.opencode/plugin/compactor.ts +95 -171
- package/dist/template/.opencode/plugin/enforcer.ts +177 -127
- package/dist/template/.opencode/plugin/injector.ts +150 -0
- package/dist/template/.opencode/plugin/lib/notify.ts +86 -0
- package/dist/template/.opencode/plugin/notification.ts +57 -123
- package/dist/template/.opencode/plugin/truncator.ts +60 -166
- package/dist/template/.opencode/skill/mqdh/SKILL.md +161 -0
- package/dist/template/.opencode/skill/playwriter/SKILL.md +148 -0
- package/dist/template/.opencode/skill/v0/SKILL.md +154 -0
- package/package.json +1 -1
|
@@ -6,31 +6,67 @@ agent: build
|
|
|
6
6
|
|
|
7
7
|
# Create Task
|
|
8
8
|
|
|
9
|
-
## Phase 1:
|
|
9
|
+
## Phase 1: Check for Similar Work
|
|
10
|
+
|
|
11
|
+
Before creating, search for existing or past work:
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
memory -
|
|
15
|
+
search({ query: "[keywords from title/problem]", type: "observations" });
|
|
16
|
+
bd_ls({ status: "all", limit: 20 });
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
If similar task exists:
|
|
20
|
+
|
|
21
|
+
- Link as dependency, or
|
|
22
|
+
- Extend existing task, or
|
|
23
|
+
- Confirm this is intentionally separate
|
|
24
|
+
|
|
25
|
+
## Phase 2: Interview
|
|
10
26
|
|
|
11
27
|
**If title provided:** Use `$ARGUMENTS` as starting point.
|
|
12
28
|
|
|
13
|
-
**If no title:** Ask:
|
|
29
|
+
**If no title:** Ask in one message:
|
|
14
30
|
|
|
15
31
|
1. "What problem are we solving?"
|
|
16
32
|
2. "Bug, feature, or task?"
|
|
17
33
|
3. "What's the acceptance criteria?"
|
|
34
|
+
4. "Any constraints or 'never do X' rules?"
|
|
35
|
+
5. "Related existing code or past work?"
|
|
18
36
|
|
|
19
|
-
Keep it brief. Get: clear goal, success criteria, scope.
|
|
37
|
+
Keep it brief. Get: clear goal, success criteria, scope, constraints.
|
|
20
38
|
|
|
21
|
-
## Phase
|
|
39
|
+
## Phase 3: Classify & Estimate
|
|
22
40
|
|
|
23
41
|
Based on interview:
|
|
24
42
|
|
|
43
|
+
### Type & Priority
|
|
44
|
+
|
|
25
45
|
- **Type**: bug | feature | task | chore
|
|
26
46
|
- **Priority**: 0 (critical) to 4 (low), default 2
|
|
27
|
-
- **Complexity**: quick | deep
|
|
28
47
|
|
|
29
|
-
|
|
48
|
+
### Complexity & Estimation
|
|
49
|
+
|
|
50
|
+
| Complexity | Tool Calls | Description | Workflow |
|
|
51
|
+
| ---------- | ---------- | ---------------------------------- | ------------------- |
|
|
52
|
+
| **S** | ~10 | Single file fix, obvious solution | → /implement |
|
|
53
|
+
| **M** | ~30 | Few files, clear scope | → /implement |
|
|
54
|
+
| **L** | ~100 | Multiple files, needs research | → /research → /plan |
|
|
55
|
+
| **XL** | Decompose | Too big - break into smaller tasks | → Create sub-beads |
|
|
56
|
+
|
|
57
|
+
**Default:** M (medium)
|
|
58
|
+
|
|
59
|
+
## Phase 4: Create Bead
|
|
30
60
|
|
|
31
|
-
|
|
61
|
+
Reserve the artifacts directory:
|
|
32
62
|
|
|
33
|
-
|
|
63
|
+
```typescript
|
|
64
|
+
bd_reserve({
|
|
65
|
+
paths: [".beads/artifacts/<bead-id>/spec.md"],
|
|
66
|
+
reason: "Creating new task",
|
|
67
|
+
ttl: 600,
|
|
68
|
+
});
|
|
69
|
+
```
|
|
34
70
|
|
|
35
71
|
Propose:
|
|
36
72
|
|
|
@@ -39,8 +75,8 @@ Creating:
|
|
|
39
75
|
Title: [title]
|
|
40
76
|
Type: [type]
|
|
41
77
|
Priority: [0-4]
|
|
42
|
-
|
|
43
|
-
Role: [fe/be/mobile/devops/qa] (optional
|
|
78
|
+
Estimate: [S/M/L/XL] (~[N] tool calls)
|
|
79
|
+
Role: [fe/be/mobile/devops/qa] (optional)
|
|
44
80
|
|
|
45
81
|
Approve? (yes/modify)
|
|
46
82
|
```
|
|
@@ -53,18 +89,30 @@ bd_add({
|
|
|
53
89
|
type: "[type]",
|
|
54
90
|
pri: [priority],
|
|
55
91
|
desc: "[description]",
|
|
92
|
+
tags: ["[role]", "[estimate]"], // e.g., ["fe", "M"]
|
|
56
93
|
});
|
|
57
94
|
```
|
|
58
95
|
|
|
59
|
-
|
|
96
|
+
### Link Dependencies
|
|
97
|
+
|
|
98
|
+
If this task depends on others:
|
|
60
99
|
|
|
61
100
|
```typescript
|
|
62
|
-
bd_add({
|
|
101
|
+
bd_add({
|
|
102
|
+
title: "[title]",
|
|
103
|
+
type: "[type]",
|
|
104
|
+
pri: [priority],
|
|
105
|
+
deps: ["<blocking-bead-id>"], // Tasks that must complete first
|
|
106
|
+
});
|
|
63
107
|
```
|
|
64
108
|
|
|
65
|
-
|
|
109
|
+
### Assign to Role (optional)
|
|
110
|
+
|
|
111
|
+
```typescript
|
|
112
|
+
bd_assign({ id: "<bead-id>", role: "[fe/be/mobile/devops/qa]", notify: true });
|
|
113
|
+
```
|
|
66
114
|
|
|
67
|
-
## Phase
|
|
115
|
+
## Phase 5: Create Spec
|
|
68
116
|
|
|
69
117
|
```bash
|
|
70
118
|
mkdir -p .beads/artifacts/<bead-id>
|
|
@@ -74,12 +122,15 @@ Use the PRD template from `.opencode/memory/_templates/prd.md` as the base struc
|
|
|
74
122
|
|
|
75
123
|
Write `.beads/artifacts/<bead-id>/spec.md`:
|
|
76
124
|
|
|
125
|
+
### Standard Spec (S/M complexity)
|
|
126
|
+
|
|
77
127
|
```markdown
|
|
78
128
|
# [Title]
|
|
79
129
|
|
|
80
130
|
**Bead:** <bead-id>
|
|
81
131
|
**Created:** [date]
|
|
82
132
|
**Status:** To Do
|
|
133
|
+
**Estimate:** [S/M] (~[N] tool calls)
|
|
83
134
|
|
|
84
135
|
## Goal
|
|
85
136
|
|
|
@@ -87,50 +138,80 @@ Write `.beads/artifacts/<bead-id>/spec.md`:
|
|
|
87
138
|
|
|
88
139
|
## Scope
|
|
89
140
|
|
|
90
|
-
|
|
141
|
+
**In-Scope:**
|
|
91
142
|
|
|
92
143
|
- [What we ARE doing]
|
|
93
144
|
|
|
94
|
-
|
|
145
|
+
**Out-of-Scope:**
|
|
95
146
|
|
|
96
147
|
- [What we are NOT doing]
|
|
97
148
|
|
|
98
|
-
##
|
|
149
|
+
## Success Criteria
|
|
99
150
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
151
|
+
- [ ] [Criterion 1]
|
|
152
|
+
- Verify: `[actual command to test this]`
|
|
153
|
+
- [ ] [Criterion 2]
|
|
154
|
+
- Verify: `[actual command to test this]`
|
|
103
155
|
|
|
104
|
-
##
|
|
156
|
+
## Constraints
|
|
105
157
|
|
|
106
|
-
|
|
107
|
-
- [ ] [Specific, measurable criterion 2]
|
|
108
|
-
- [ ] [Specific, measurable criterion 3]
|
|
158
|
+
**Must:**
|
|
109
159
|
|
|
110
|
-
|
|
160
|
+
- [Required constraint]
|
|
161
|
+
|
|
162
|
+
**Never:**
|
|
111
163
|
|
|
112
|
-
- [
|
|
164
|
+
- [Anti-pattern or forbidden action]
|
|
113
165
|
|
|
114
166
|
## Notes
|
|
115
167
|
|
|
116
|
-
[Additional context
|
|
168
|
+
[Additional context]
|
|
117
169
|
```
|
|
118
170
|
|
|
119
|
-
|
|
171
|
+
### Deep Spec (L/XL complexity)
|
|
120
172
|
|
|
121
|
-
|
|
173
|
+
Add these sections:
|
|
122
174
|
|
|
123
175
|
```markdown
|
|
176
|
+
## User Flow
|
|
177
|
+
|
|
178
|
+
1. [Step 1: What user sees/does]
|
|
179
|
+
2. [Step 2]
|
|
180
|
+
3. [Step 3]
|
|
181
|
+
|
|
182
|
+
## Dependencies
|
|
183
|
+
|
|
184
|
+
- `<bead-id>` - [what it provides]
|
|
185
|
+
- [External dependency]
|
|
186
|
+
|
|
187
|
+
## Edge Cases
|
|
188
|
+
|
|
189
|
+
- [Edge case 1] → [expected behavior]
|
|
190
|
+
- [Edge case 2] → [expected behavior]
|
|
191
|
+
|
|
124
192
|
## Open Questions
|
|
125
193
|
|
|
126
194
|
- [Question for research phase]
|
|
195
|
+
- [Uncertainty to resolve]
|
|
127
196
|
|
|
128
197
|
## Technical Approach
|
|
129
198
|
|
|
130
199
|
[To be filled during /research phase]
|
|
131
200
|
```
|
|
132
201
|
|
|
133
|
-
## Phase
|
|
202
|
+
## Phase 6: Spec Quality Check
|
|
203
|
+
|
|
204
|
+
Before presenting, verify:
|
|
205
|
+
|
|
206
|
+
- [ ] **Testable criteria?** Each success criterion has a verification command
|
|
207
|
+
- [ ] **Constraints explicit?** "Must" and "Never" rules documented
|
|
208
|
+
- [ ] **Edge cases identified?** (for L/XL complexity)
|
|
209
|
+
- [ ] **Scope clear?** In/Out boundaries defined
|
|
210
|
+
- [ ] **Estimate realistic?** Based on similar past work
|
|
211
|
+
|
|
212
|
+
Fix any gaps before proceeding.
|
|
213
|
+
|
|
214
|
+
## Phase 7: Review Spec
|
|
134
215
|
|
|
135
216
|
Present the spec for approval:
|
|
136
217
|
|
|
@@ -141,15 +222,26 @@ Spec Preview:
|
|
|
141
222
|
[Show full spec.md content]
|
|
142
223
|
|
|
143
224
|
━━━━━━━━━━━━━
|
|
225
|
+
Quality check:
|
|
226
|
+
✓ Testable criteria
|
|
227
|
+
✓ Constraints explicit
|
|
228
|
+
✓ Scope clear
|
|
229
|
+
[✓/⚠] Edge cases (if L/XL)
|
|
230
|
+
|
|
144
231
|
Approve spec? (yes/modify)
|
|
145
232
|
```
|
|
146
233
|
|
|
147
234
|
**STOP and wait for human response.**
|
|
148
235
|
|
|
149
236
|
If "modify": Iterate on spec based on feedback until approved.
|
|
150
|
-
If "yes": Proceed to report.
|
|
237
|
+
If "yes": Proceed to sync and report.
|
|
238
|
+
|
|
239
|
+
## Phase 8: Sync & Report
|
|
151
240
|
|
|
152
|
-
|
|
241
|
+
```typescript
|
|
242
|
+
bd_release({ _: true });
|
|
243
|
+
bd_sync({ reason: "Created task $ARGUMENTS" });
|
|
244
|
+
```
|
|
153
245
|
|
|
154
246
|
```
|
|
155
247
|
Created: <bead-id>
|
|
@@ -157,19 +249,30 @@ Created: <bead-id>
|
|
|
157
249
|
|
|
158
250
|
Title: [title]
|
|
159
251
|
Type: [type]
|
|
160
|
-
|
|
252
|
+
Estimate: [S/M/L/XL] (~[N] tool calls)
|
|
161
253
|
|
|
162
254
|
Spec: .beads/artifacts/<bead-id>/spec.md
|
|
163
255
|
```
|
|
164
256
|
|
|
165
|
-
|
|
257
|
+
### Next Steps by Complexity
|
|
258
|
+
|
|
259
|
+
**S/M complexity:**
|
|
166
260
|
|
|
167
261
|
```
|
|
168
262
|
Next: /implement <bead-id>
|
|
169
263
|
```
|
|
170
264
|
|
|
171
|
-
**
|
|
265
|
+
**L complexity:**
|
|
172
266
|
|
|
173
267
|
```
|
|
174
268
|
Next: /research <bead-id>
|
|
175
269
|
```
|
|
270
|
+
|
|
271
|
+
**XL complexity:**
|
|
272
|
+
|
|
273
|
+
```
|
|
274
|
+
This task is too large. Break it down:
|
|
275
|
+
/create "[subtask 1]" # Then link as dependency
|
|
276
|
+
/create "[subtask 2]"
|
|
277
|
+
/create "[subtask 3]"
|
|
278
|
+
```
|