opencodekit 0.20.2 → 0.20.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.
- package/dist/index.js +1 -1
- package/dist/template/.opencode/agent/build.md +4 -0
- package/dist/template/.opencode/agent/explore.md +4 -0
- package/dist/template/.opencode/agent/general.md +4 -0
- package/dist/template/.opencode/agent/plan.md +4 -0
- package/dist/template/.opencode/agent/review.md +4 -0
- package/dist/template/.opencode/agent/scout.md +4 -0
- package/dist/template/.opencode/command/create.md +119 -25
- package/dist/template/.opencode/command/design.md +1 -2
- package/dist/template/.opencode/command/health.md +234 -0
- package/dist/template/.opencode/command/init-user.md +15 -0
- package/dist/template/.opencode/command/plan.md +3 -4
- package/dist/template/.opencode/command/pr.md +13 -0
- package/dist/template/.opencode/command/research.md +15 -3
- package/dist/template/.opencode/command/review-codebase.md +11 -1
- package/dist/template/.opencode/command/ship.md +72 -8
- package/dist/template/.opencode/command/status.md +1 -1
- package/dist/template/.opencode/command/ui-review.md +0 -1
- package/dist/template/.opencode/command/ui-slop-check.md +1 -1
- package/dist/template/.opencode/command/verify.md +11 -1
- 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 +1678 -1677
- package/dist/template/.opencode/plugin/lib/compile.ts +253 -0
- package/dist/template/.opencode/plugin/lib/index-generator.ts +170 -0
- package/dist/template/.opencode/plugin/lib/lint.ts +359 -0
- package/dist/template/.opencode/plugin/lib/memory-admin-tools.ts +42 -1
- package/dist/template/.opencode/plugin/lib/memory-db.ts +7 -0
- package/dist/template/.opencode/plugin/lib/memory-helpers.ts +30 -0
- package/dist/template/.opencode/plugin/lib/memory-hooks.ts +10 -0
- package/dist/template/.opencode/plugin/lib/memory-tools.ts +30 -1
- package/dist/template/.opencode/plugin/lib/operation-log.ts +109 -0
- package/dist/template/.opencode/plugin/lib/validate.ts +243 -0
- package/dist/template/.opencode/skill/design-taste-frontend/SKILL.md +13 -1
- package/dist/template/.opencode/skill/figma-go/SKILL.md +1 -1
- package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +13 -0
- package/dist/template/.opencode/skill/high-end-visual-design/SKILL.md +13 -0
- package/dist/template/.opencode/skill/industrial-brutalist-ui/SKILL.md +13 -0
- package/dist/template/.opencode/skill/memory-system/SKILL.md +65 -1
- package/dist/template/.opencode/skill/minimalist-ui/SKILL.md +13 -0
- package/dist/template/.opencode/skill/redesign-existing-projects/SKILL.md +13 -0
- package/dist/template/.opencode/skill/requesting-code-review/SKILL.md +48 -2
- package/dist/template/.opencode/skill/requesting-code-review/references/specialist-profiles.md +108 -0
- package/dist/template/.opencode/skill/skill-creator/SKILL.md +25 -0
- package/dist/template/.opencode/skill/stitch-design-taste/SKILL.md +13 -0
- package/dist/template/.opencode/skill/verification-before-completion/SKILL.md +46 -0
- package/package.json +1 -1
- package/dist/template/.opencode/agent/runner.md +0 -79
- package/dist/template/.opencode/command/start.md +0 -156
|
@@ -8,9 +8,9 @@ agent: build
|
|
|
8
8
|
|
|
9
9
|
Execute PRD tasks, verify each passes, run review, close the bead.
|
|
10
10
|
|
|
11
|
-
> **Workflow:** `/create` →
|
|
11
|
+
> **Workflow:** `/create` → **`/ship <id>`**
|
|
12
12
|
>
|
|
13
|
-
> Bead MUST
|
|
13
|
+
> Bead MUST have `prd.md`. If not yet claimed, `/ship` auto-claims it.
|
|
14
14
|
|
|
15
15
|
## Load Skills
|
|
16
16
|
|
|
@@ -48,19 +48,84 @@ skill({ name: "verification-before-completion" });
|
|
|
48
48
|
|
|
49
49
|
## Phase 1: Guards
|
|
50
50
|
|
|
51
|
+
### Memory Grounding
|
|
52
|
+
|
|
53
|
+
Search memory for context, prior decisions, and known issues before executing:
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
memory-search({ query: "$ARGUMENTS" });
|
|
57
|
+
memory-search({ query: "<bead title keywords>", limit: 5 });
|
|
58
|
+
memory-read({ file: "handoffs/last" });
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Use findings to avoid re-discovering known issues or repeating failed approaches.
|
|
62
|
+
|
|
63
|
+
### Bead Validation
|
|
64
|
+
|
|
51
65
|
```bash
|
|
52
66
|
br show $ARGUMENTS
|
|
53
67
|
```
|
|
54
68
|
|
|
55
69
|
Verify:
|
|
56
70
|
|
|
57
|
-
- Bead
|
|
71
|
+
- Bead is `in_progress` or unclaimed (auto-claim if needed)
|
|
58
72
|
- `.beads/artifacts/$ARGUMENTS/prd.md` exists (if not, tell user to run `/create` first)
|
|
59
73
|
|
|
60
74
|
Check what artifacts exist:
|
|
61
75
|
|
|
62
76
|
Read `.beads/artifacts/$ARGUMENTS/` to check what artifacts exist.
|
|
63
77
|
|
|
78
|
+
## Phase 1B: Auto-Claim (if not yet in_progress)
|
|
79
|
+
|
|
80
|
+
If bead status is NOT `in_progress`, auto-claim it:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
br update $ARGUMENTS --status in_progress
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Then ask about workspace:
|
|
87
|
+
|
|
88
|
+
```typescript
|
|
89
|
+
question({
|
|
90
|
+
questions: [
|
|
91
|
+
{
|
|
92
|
+
header: "Workspace",
|
|
93
|
+
question: "How do you want to set up the workspace?",
|
|
94
|
+
options: [
|
|
95
|
+
{
|
|
96
|
+
label: "Create feature branch (Recommended)",
|
|
97
|
+
description: "git checkout -b feat/<bead-id>-<title>",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
label: "Use current branch",
|
|
101
|
+
description: "Work on current branch",
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
});
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**If feature branch selected:**
|
|
110
|
+
|
|
111
|
+
Map bead type to branch prefix:
|
|
112
|
+
|
|
113
|
+
| Bead Type | Branch Prefix |
|
|
114
|
+
| --------- | ------------- |
|
|
115
|
+
| feature | feat |
|
|
116
|
+
| bug | fix |
|
|
117
|
+
| task | task |
|
|
118
|
+
| epic | epic |
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Example: feat/br-42-add-auth
|
|
122
|
+
git checkout -b $PREFIX/$BEAD_ID-$TITLE_SLUG
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**If current branch:** Continue without branch creation.
|
|
126
|
+
|
|
127
|
+
**If bead is already `in_progress`:** Skip this phase entirely.
|
|
128
|
+
|
|
64
129
|
## Phase 2: Route to Execution
|
|
65
130
|
|
|
66
131
|
| Artifact exists | Action |
|
|
@@ -333,8 +398,7 @@ Report:
|
|
|
333
398
|
|
|
334
399
|
## Related Commands
|
|
335
400
|
|
|
336
|
-
| Need | Command
|
|
337
|
-
| ----------- |
|
|
338
|
-
| Create spec | `/create`
|
|
339
|
-
|
|
|
340
|
-
| Create PR | `/pr` |
|
|
401
|
+
| Need | Command |
|
|
402
|
+
| ----------- | --------- |
|
|
403
|
+
| Create spec | `/create` |
|
|
404
|
+
| Create PR | `/pr` |
|
|
@@ -99,7 +99,7 @@ Based on gathered state, recommend ONE next step:
|
|
|
99
99
|
| State | Suggestion |
|
|
100
100
|
| ---------------------------- | ----------------------------- |
|
|
101
101
|
| Has in_progress tasks | `/ship <id>` (continue work) |
|
|
102
|
-
| Has ready tasks, none active | `/
|
|
102
|
+
| Has ready tasks, none active | `/ship <id>` (pick up work) |
|
|
103
103
|
| Uncommitted changes | Review and commit |
|
|
104
104
|
| Nothing active or ready | `/create "<desc>"` (new work) |
|
|
105
105
|
|
|
@@ -149,7 +149,17 @@ Output:
|
|
|
149
149
|
5. **Blocking issues** to fix before shipping
|
|
150
150
|
6. **Next step**: `/ship $ARGUMENTS` if ready, or list fixes needed
|
|
151
151
|
|
|
152
|
-
Record significant findings with `observation()
|
|
152
|
+
Record significant findings with `observation()`:
|
|
153
|
+
|
|
154
|
+
```typescript
|
|
155
|
+
observation({
|
|
156
|
+
type: "discovery", // or "warning", "bugfix"
|
|
157
|
+
title: "Verify: [bead-id] [key finding]",
|
|
158
|
+
narrative: "[What was found, impact, resolution]",
|
|
159
|
+
concepts: "verification, [component]",
|
|
160
|
+
confidence: "high",
|
|
161
|
+
});
|
|
162
|
+
```
|
|
153
163
|
|
|
154
164
|
## Related Commands
|
|
155
165
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|