opencodekit 0.20.2 → 0.20.4

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 (57) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/template/.opencode/agent/build.md +4 -0
  3. package/dist/template/.opencode/agent/explore.md +4 -0
  4. package/dist/template/.opencode/agent/general.md +4 -0
  5. package/dist/template/.opencode/agent/plan.md +4 -0
  6. package/dist/template/.opencode/agent/review.md +4 -0
  7. package/dist/template/.opencode/agent/scout.md +4 -0
  8. package/dist/template/.opencode/command/create.md +119 -25
  9. package/dist/template/.opencode/command/design.md +1 -2
  10. package/dist/template/.opencode/command/health.md +234 -0
  11. package/dist/template/.opencode/command/init-user.md +15 -0
  12. package/dist/template/.opencode/command/plan.md +3 -4
  13. package/dist/template/.opencode/command/pr.md +13 -0
  14. package/dist/template/.opencode/command/research.md +15 -3
  15. package/dist/template/.opencode/command/review-codebase.md +11 -1
  16. package/dist/template/.opencode/command/ship.md +72 -8
  17. package/dist/template/.opencode/command/status.md +1 -1
  18. package/dist/template/.opencode/command/ui-review.md +0 -1
  19. package/dist/template/.opencode/command/ui-slop-check.md +1 -1
  20. package/dist/template/.opencode/command/verify.md +11 -1
  21. package/dist/template/.opencode/memory.db +0 -0
  22. package/dist/template/.opencode/memory.db-shm +0 -0
  23. package/dist/template/.opencode/memory.db-wal +0 -0
  24. package/dist/template/.opencode/opencode.json +1678 -1677
  25. package/dist/template/.opencode/plugin/README.md +1 -1
  26. package/dist/template/.opencode/plugin/lib/compact.ts +194 -0
  27. package/dist/template/.opencode/plugin/lib/compile.ts +253 -0
  28. package/dist/template/.opencode/plugin/lib/db/graph.ts +253 -0
  29. package/dist/template/.opencode/plugin/lib/db/observations.ts +8 -3
  30. package/dist/template/.opencode/plugin/lib/db/schema.ts +96 -5
  31. package/dist/template/.opencode/plugin/lib/db/types.ts +73 -0
  32. package/dist/template/.opencode/plugin/lib/index-generator.ts +170 -0
  33. package/dist/template/.opencode/plugin/lib/lint.ts +359 -0
  34. package/dist/template/.opencode/plugin/lib/memory-admin-tools.ts +78 -4
  35. package/dist/template/.opencode/plugin/lib/memory-db.ts +19 -1
  36. package/dist/template/.opencode/plugin/lib/memory-helpers.ts +30 -0
  37. package/dist/template/.opencode/plugin/lib/memory-hooks.ts +10 -0
  38. package/dist/template/.opencode/plugin/lib/memory-tools.ts +167 -2
  39. package/dist/template/.opencode/plugin/lib/operation-log.ts +109 -0
  40. package/dist/template/.opencode/plugin/lib/validate.ts +243 -0
  41. package/dist/template/.opencode/plugin/memory.ts +2 -1
  42. package/dist/template/.opencode/skill/design-taste-frontend/SKILL.md +13 -1
  43. package/dist/template/.opencode/skill/figma-go/SKILL.md +1 -1
  44. package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +13 -0
  45. package/dist/template/.opencode/skill/high-end-visual-design/SKILL.md +13 -0
  46. package/dist/template/.opencode/skill/industrial-brutalist-ui/SKILL.md +13 -0
  47. package/dist/template/.opencode/skill/memory-system/SKILL.md +65 -1
  48. package/dist/template/.opencode/skill/minimalist-ui/SKILL.md +13 -0
  49. package/dist/template/.opencode/skill/redesign-existing-projects/SKILL.md +13 -0
  50. package/dist/template/.opencode/skill/requesting-code-review/SKILL.md +48 -2
  51. package/dist/template/.opencode/skill/requesting-code-review/references/specialist-profiles.md +108 -0
  52. package/dist/template/.opencode/skill/skill-creator/SKILL.md +25 -0
  53. package/dist/template/.opencode/skill/stitch-design-taste/SKILL.md +13 -0
  54. package/dist/template/.opencode/skill/verification-before-completion/SKILL.md +46 -0
  55. package/package.json +1 -1
  56. package/dist/template/.opencode/agent/runner.md +0 -79
  57. 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` → `/start <id>` → **`/ship <id>`**
11
+ > **Workflow:** `/create` → **`/ship <id>`**
12
12
  >
13
- > Bead MUST be `in_progress` with `prd.md`. Run `/start` first if not.
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 status is `in_progress` (if not, tell user to run `/start $ARGUMENTS`)
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
- | Claim task | `/start <id>` |
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 | `/start <id>` (pick up work) |
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
 
@@ -88,5 +88,4 @@ observation({
88
88
  | Need | Command |
89
89
  | -------------------- | --------- |
90
90
  | Design from scratch | `/design` |
91
- | Start implementation | `/start` |
92
91
  | Ship implementation | `/ship` |
@@ -143,4 +143,4 @@ observation({
143
143
  | ---------------------------------------- | ------------ |
144
144
  | Design from scratch | `/design` |
145
145
  | Full UI review (single screen/component) | `/ui-review` |
146
- | Implementation work | `/start` |
146
+ | Implementation work | `/ship` |
@@ -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