clikit-plugin 0.2.45 → 0.2.46

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 (177) hide show
  1. package/AGENTS.md +69 -3
  2. package/README.md +128 -92
  3. package/command/commit.md +1 -1
  4. package/command/create.md +65 -8
  5. package/command/debug.md +1 -1
  6. package/command/design.md +183 -43
  7. package/command/handoff.md +1 -1
  8. package/command/import-plan.md +2 -2
  9. package/command/init.md +1 -1
  10. package/command/issue.md +3 -4
  11. package/command/pr.md +1 -1
  12. package/command/research.md +5 -7
  13. package/command/resume.md +1 -1
  14. package/command/ship.md +29 -32
  15. package/command/start.md +38 -27
  16. package/command/{status-beads.md → status.md} +2 -3
  17. package/command/verify.md +132 -48
  18. package/dist/.tsbuildinfo +1 -1
  19. package/dist/agents/index.d.ts +0 -0
  20. package/dist/agents/index.d.ts.map +0 -0
  21. package/dist/beads-context.test.d.ts +2 -0
  22. package/dist/beads-context.test.d.ts.map +1 -0
  23. package/dist/cli.d.ts +0 -0
  24. package/dist/cli.d.ts.map +0 -0
  25. package/dist/cli.js +5 -0
  26. package/dist/cli.test.d.ts +0 -0
  27. package/dist/cli.test.d.ts.map +0 -0
  28. package/dist/clikit.schema.json +32 -11
  29. package/dist/clilog.test.d.ts +0 -0
  30. package/dist/clilog.test.d.ts.map +0 -0
  31. package/dist/commands/index.d.ts +0 -0
  32. package/dist/commands/index.d.ts.map +0 -0
  33. package/dist/config.d.ts +15 -7
  34. package/dist/config.d.ts.map +1 -1
  35. package/dist/config.test.d.ts +0 -0
  36. package/dist/config.test.d.ts.map +0 -0
  37. package/dist/hooks/beads-context.d.ts +2 -0
  38. package/dist/hooks/beads-context.d.ts.map +1 -1
  39. package/dist/hooks/empty-message-sanitizer.d.ts +0 -0
  40. package/dist/hooks/empty-message-sanitizer.d.ts.map +0 -0
  41. package/dist/hooks/error-logger.d.ts +0 -0
  42. package/dist/hooks/error-logger.d.ts.map +0 -0
  43. package/dist/hooks/git-guard.d.ts +0 -0
  44. package/dist/hooks/git-guard.d.ts.map +0 -0
  45. package/dist/hooks/index.d.ts +0 -2
  46. package/dist/hooks/index.d.ts.map +1 -1
  47. package/dist/hooks/memory-digest.d.ts +1 -0
  48. package/dist/hooks/memory-digest.d.ts.map +1 -1
  49. package/dist/hooks/security-check.d.ts +0 -0
  50. package/dist/hooks/security-check.d.ts.map +0 -0
  51. package/dist/hooks/subagent-question-blocker.d.ts +0 -0
  52. package/dist/hooks/subagent-question-blocker.d.ts.map +0 -0
  53. package/dist/hooks/todo-beads-sync.d.ts +1 -0
  54. package/dist/hooks/todo-beads-sync.d.ts.map +1 -1
  55. package/dist/hooks/todo-enforcer.d.ts +1 -1
  56. package/dist/hooks/todo-enforcer.d.ts.map +1 -1
  57. package/dist/hooks/truncator.d.ts +0 -0
  58. package/dist/hooks/truncator.d.ts.map +0 -0
  59. package/dist/index.d.ts +0 -0
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +250 -576
  62. package/dist/skills/index.d.ts +0 -0
  63. package/dist/skills/index.d.ts.map +0 -0
  64. package/dist/tools/cass-memory.d.ts +0 -0
  65. package/dist/tools/cass-memory.d.ts.map +0 -0
  66. package/dist/tools/context-summary.d.ts +0 -0
  67. package/dist/tools/context-summary.d.ts.map +0 -0
  68. package/dist/tools/index.d.ts +0 -3
  69. package/dist/tools/index.d.ts.map +1 -1
  70. package/dist/tools/memory-db.d.ts +0 -0
  71. package/dist/tools/memory-db.d.ts.map +0 -0
  72. package/dist/tools/memory.d.ts +0 -0
  73. package/dist/tools/memory.d.ts.map +0 -0
  74. package/dist/tools/observation.d.ts +0 -0
  75. package/dist/tools/observation.d.ts.map +0 -0
  76. package/dist/types.d.ts +0 -0
  77. package/dist/types.d.ts.map +0 -0
  78. package/memory/_digest.md +1 -1
  79. package/memory/_templates/handoff.md +0 -0
  80. package/memory/_templates/plan.md +35 -0
  81. package/memory/_templates/prd.md +0 -0
  82. package/memory/_templates/research.md +0 -0
  83. package/memory/_templates/review.md +0 -0
  84. package/memory/_templates/spec.md +12 -0
  85. package/memory/beads/.gitkeep +0 -0
  86. package/memory/handoffs/.gitkeep +0 -0
  87. package/memory/memory.db +0 -0
  88. package/memory/plans/.gitkeep +0 -0
  89. package/memory/prds/.gitkeep +0 -0
  90. package/memory/research/.gitkeep +0 -0
  91. package/memory/reviews/.gitkeep +0 -0
  92. package/memory/specs/.gitkeep +0 -0
  93. package/package.json +4 -4
  94. package/skill/beads/SKILL.md +42 -43
  95. package/skill/beads/mcp.json +26 -0
  96. package/skill/beads/references/api-reference.md +64 -0
  97. package/skill/chrome-devtools/SKILL.md +22 -23
  98. package/skill/chrome-devtools/mcp.json +17 -0
  99. package/skill/chrome-devtools/references/tool-reference.md +63 -0
  100. package/skill/condition-based-waiting/SKILL.md +28 -66
  101. package/skill/deep-research/SKILL.md +34 -103
  102. package/skill/deep-research/mcp.json +21 -0
  103. package/skill/deep-research/references/lsp-ops.md +44 -0
  104. package/skill/defense-in-depth/SKILL.md +29 -69
  105. package/skill/executing-plans/SKILL.md +25 -34
  106. package/skill/finishing-a-development-branch/SKILL.md +28 -89
  107. package/skill/playwright/SKILL.md +27 -22
  108. package/skill/playwright/mcp.json +20 -0
  109. package/skill/playwright/references/tool-reference.md +64 -0
  110. package/skill/receiving-code-review/SKILL.md +16 -27
  111. package/skill/requesting-code-review/SKILL.md +22 -26
  112. package/skill/ritual-workflow/SKILL.md +22 -82
  113. package/skill/root-cause-tracing/SKILL.md +30 -54
  114. package/skill/session-management/SKILL.md +21 -40
  115. package/skill/source-code-research/SKILL.md +33 -102
  116. package/skill/source-code-research/mcp.json +13 -0
  117. package/skill/source-code-research/references/quick-ref.md +65 -0
  118. package/skill/systematic-debugging/SKILL.md +28 -41
  119. package/skill/systematic-debugging/references/patterns.md +71 -0
  120. package/skill/test-driven-development/SKILL.md +16 -40
  121. package/skill/testing-anti-patterns/SKILL.md +36 -64
  122. package/skill/testing-anti-patterns/references/decision-matrix.md +55 -0
  123. package/skill/using-git-worktrees/SKILL.md +27 -103
  124. package/skill/vercel-react-best-practices/SKILL.md +50 -139
  125. package/skill/vercel-react-best-practices/references/patterns.md +70 -0
  126. package/skill/verification-before-completion/SKILL.md +19 -37
  127. package/skill/writing-plans/SKILL.md +20 -32
  128. package/skill/writing-skills/SKILL.md +52 -41
  129. package/skill/writing-skills/references/skill-anatomy.md +210 -0
  130. package/src/agents/AGENTS.md +48 -18
  131. package/src/agents/build.md +342 -93
  132. package/src/agents/explore.md +77 -60
  133. package/src/agents/index.ts +0 -0
  134. package/src/agents/oracle.md +153 -63
  135. package/src/agents/plan.md +275 -110
  136. package/src/agents/research.md +71 -53
  137. package/src/agents/review.md +182 -61
  138. package/src/agents/vision.md +7 -5
  139. package/command/plan.md +0 -152
  140. package/command/review-codebase.md +0 -228
  141. package/command/review.md +0 -135
  142. package/command/vision.md +0 -210
  143. package/dist/hooks/swarm-enforcer.d.ts +0 -31
  144. package/dist/hooks/swarm-enforcer.d.ts.map +0 -1
  145. package/dist/tools/beads-memory-sync.d.ts +0 -17
  146. package/dist/tools/beads-memory-sync.d.ts.map +0 -1
  147. package/dist/tools/quick-research.d.ts +0 -16
  148. package/dist/tools/quick-research.d.ts.map +0 -1
  149. package/dist/tools/swarm.d.ts +0 -57
  150. package/dist/tools/swarm.d.ts.map +0 -1
  151. package/skill/accessibility-audit/SKILL.md +0 -115
  152. package/skill/beads-bridge/SKILL.md +0 -45
  153. package/skill/brainstorming/SKILL.md +0 -41
  154. package/skill/cass-village/SKILL.md +0 -217
  155. package/skill/cloudflare/SKILL.md +0 -96
  156. package/skill/design-system-audit/SKILL.md +0 -136
  157. package/skill/development-lifecycle/SKILL.md +0 -58
  158. package/skill/dispatching-parallel-agents/SKILL.md +0 -94
  159. package/skill/figma/SKILL.md +0 -34
  160. package/skill/frontend-aesthetics/SKILL.md +0 -63
  161. package/skill/gemini-large-context/SKILL.md +0 -80
  162. package/skill/mockup-to-code/SKILL.md +0 -98
  163. package/skill/mqdh/SKILL.md +0 -54
  164. package/skill/notebooklm/SKILL.md +0 -71
  165. package/skill/playwriter/SKILL.md +0 -56
  166. package/skill/polar/SKILL.md +0 -39
  167. package/skill/resend/SKILL.md +0 -85
  168. package/skill/sharing-skills/SKILL.md +0 -50
  169. package/skill/subagent-driven-development/SKILL.md +0 -69
  170. package/skill/supabase/SKILL.md +0 -80
  171. package/skill/supabase-postgres-best-practices/SKILL.md +0 -168
  172. package/skill/swarm-coordination/SKILL.md +0 -54
  173. package/skill/testing-skills-with-subagents/SKILL.md +0 -102
  174. package/skill/ui-ux-research/SKILL.md +0 -93
  175. package/skill/v0/SKILL.md +0 -67
  176. package/skill/v1-run/SKILL.md +0 -85
  177. package/skill/visual-analysis/SKILL.md +0 -113
package/command/design.md CHANGED
@@ -1,13 +1,19 @@
1
1
  ---
2
- description: Frontend UI/UX design with a designer's eye.
3
- agent: build
2
+ description: Design and implement UI from prompts, images, wireframes, or redesign requests. Variant exploration, iterative refinement, pixel-perfect code, accessibility first.
3
+ agent: vision
4
4
  ---
5
5
 
6
- You are the **Build Agent** with design expertise. Execute the `/design` command.
6
+ You are the **Vision Agent**. Execute the `/design` command.
7
7
 
8
- ## Your Task
8
+ ## Input Modes
9
9
 
10
- Create visually stunning, emotionally engaging frontend interfaces with a designer's eye.
10
+ | Mode | Trigger | Pipeline |
11
+ |------|---------|----------|
12
+ | **Text-to-UI** | Text description of desired UI | Explore → Variants → Pick → Implement |
13
+ | **Image-to-UI** | Screenshot or mockup attached | Analyze → Extract tokens → Variants → Implement |
14
+ | **Wireframe-to-UI** | Sketch or low-fi wireframe | Interpret structure → Add design → Implement |
15
+ | **Redesign** | "Redesign this component/page" | Audit current → Variants → Implement |
16
+ | **Review** | "Review UI quality" | Audit → Report (see Review Process below) |
11
17
 
12
18
  ## What I Can Build
13
19
 
@@ -18,11 +24,166 @@ Create visually stunning, emotionally engaging frontend interfaces with a design
18
24
  | **Layout** | "Build a magazine-style blog layout" |
19
25
  | **Animation** | "Add micro-interactions to this button" |
20
26
 
21
- ## Design Thinking (Before Coding)
27
+ ## Process
22
28
 
23
- 1. **Purpose**: What problem? Who uses it?
24
- 2. **Tone**: Pick an extreme aesthetic direction
25
- 3. **Differentiation**: What makes this UNFORGETTABLE?
29
+ ### 1. Detect Input & Explore (parallel)
30
+
31
+ Classify input type, then fire immediately:
32
+
33
+ ```
34
+ Explore: "Find existing design system — CSS variables, tokens, theme config, color palette, typography. Return file paths + values."
35
+ Explore: "Find existing UI components — naming, props, composition, styling approach. Compare 2-3 components."
36
+ Explore: "Find package.json — CSS framework, component lib, icon set, fonts in use."
37
+ ```
38
+
39
+ If image attached, simultaneously extract:
40
+ - Color palette (hex + roles)
41
+ - Typography (fonts, scale, weights)
42
+ - Spacing system (base unit, rhythm)
43
+ - Component inventory
44
+ - Layout structure (grid, columns)
45
+ - Visual effects (shadows, radii, gradients)
46
+
47
+ ### 2. Variant Exploration
48
+
49
+ Present 2-3 design directions. Each variant:
50
+
51
+ ```markdown
52
+ ### Variant [A/B/C]: [Name]
53
+
54
+ **Direction:** [Aesthetic approach]
55
+ **Layout:** [Structure description]
56
+ **Colors:** [Palette strategy]
57
+ **Typography:** [Font pairing]
58
+ **Key Differentiator:** [What's memorable]
59
+ **Components:** [List with brief design notes]
60
+ ```
61
+
62
+ For image-to-UI, present:
63
+ 1. **Faithful** — Match source closely
64
+ 2. **Enhanced** — Keep structure, improve polish/a11y
65
+ 3. **Adapted** — Keep essence, fit project's design system
66
+
67
+ Wait for user selection. If user said "just do it", pick the most distinctive option that fits existing patterns.
68
+
69
+ ### 3. Resolve Design Tokens
70
+
71
+ Before coding, resolve all tokens against project's existing system:
72
+ - Colors (primary, secondary, accent, semantic)
73
+ - Typography (display font, body font, scale ratio)
74
+ - Spacing (base unit, scale)
75
+ - Radii, shadows, transitions
76
+
77
+ **Use existing tokens if they exist. Define new ones only if needed.**
78
+
79
+ ### 4. Implement
80
+
81
+ Build in this order:
82
+ 1. Tokens / theme config (if new)
83
+ 2. Layout shell (semantic HTML)
84
+ 3. Core components (atoms → molecules → organisms)
85
+ 4. Content with realistic placeholders
86
+ 5. Interactive states (hover, focus, active, disabled, loading, error, empty)
87
+ 6. Responsive (mobile-first, clamp/min/max)
88
+ 7. Accessibility (ARIA, focus, contrast, reduced motion)
89
+ 8. Motion & polish (transitions, micro-interactions)
90
+
91
+ ### 5. Self-Review
92
+
93
+ Before presenting, verify:
94
+ - [ ] Matches chosen variant direction
95
+ - [ ] Responsive at 375px, 768px, 1024px, 1440px
96
+ - [ ] WCAG AA contrast (4.5:1 text, 3:1 large text)
97
+ - [ ] All interactive states implemented
98
+ - [ ] `prefers-reduced-motion` respected
99
+ - [ ] Semantic HTML (button, nav, main, aside)
100
+ - [ ] No hardcoded values — all use tokens/variables
101
+ - [ ] Follows project's existing code conventions
102
+ - [ ] No generic AI aesthetic (Inter, purple gradients)
103
+
104
+ Fix failures before presenting.
105
+
106
+ ### 6. Iterate
107
+
108
+ When user requests changes:
109
+ 1. Scope: Token-level (global) or component-level (local)?
110
+ 2. Apply surgically — minimum file edits
111
+ 3. Propagate token changes across all affected components
112
+ 4. Re-verify changed components
113
+
114
+ ---
115
+
116
+ ## Review Process (audit mode)
117
+
118
+ When reviewing existing UI:
119
+
120
+ ### Design Quality
121
+
122
+ | Aspect | Check |
123
+ |--------|-------|
124
+ | Typography | Font choices, hierarchy, readability, line-height |
125
+ | Color | Palette consistency, contrast, semantic usage |
126
+ | Spacing | Consistent rhythm, tokens used, padding/margins |
127
+ | Layout | Grid alignment, responsive, overflow |
128
+ | Motion | Appropriate animations, reduced motion |
129
+ | Consistency | Components match existing patterns |
130
+ | Aesthetic | Distinctive direction vs generic AI slop |
131
+
132
+ ### Accessibility Audit
133
+
134
+ | Check | Standard |
135
+ |-------|----------|
136
+ | Color contrast | WCAG AA (4.5:1 text, 3:1 large text) |
137
+ | Focus indicators | Visible, styled, keyboard-navigable |
138
+ | ARIA | Labels, roles, states for interactive elements |
139
+ | Semantic HTML | Proper elements (button, nav, main, aside) |
140
+ | Touch targets | Minimum 44x44px on mobile |
141
+ | Reduced motion | `prefers-reduced-motion` media query |
142
+
143
+ ### Responsive Check
144
+
145
+ Breakpoints: 375px, 768px, 1024px, 1440px
146
+ Look for: overflow, illegible text, touch targets, layout breakage
147
+
148
+ ### Generate Report
149
+
150
+ Save to `.opencode/memory/reviews/YYYY-MM-DD-ui-review.md`:
151
+
152
+ ```markdown
153
+ ---
154
+ type: UI
155
+ date: YYYY-MM-DD
156
+ reviewer: Vision Agent
157
+ artifact: [paths reviewed]
158
+ verdict: approved | changes_required | blocked
159
+ ---
160
+
161
+ # UI Review: [Feature/Component]
162
+
163
+ ## Summary
164
+ [2-3 sentences]
165
+
166
+ ## Design Quality
167
+ | Aspect | Rating | Notes |
168
+ |--------|--------|-------|
169
+ | Typography | ✅/⚠️/❌ | [Details] |
170
+
171
+ ## Accessibility
172
+ | Check | Pass | Notes |
173
+ |-------|------|-------|
174
+ | Contrast | ✅/❌ | [Ratio] |
175
+
176
+ ## Responsive
177
+ | Breakpoint | Status | Issues |
178
+ |------------|--------|--------|
179
+ | 375px | ✅/❌ | [Issues] |
180
+
181
+ ## Required Changes
182
+ 1. [Change with file:line reference]
183
+
184
+ ## Verdict
185
+ [Why this verdict]
186
+ ```
26
187
 
27
188
  ## Aesthetic Directions
28
189
 
@@ -42,41 +203,20 @@ Create visually stunning, emotionally engaging frontend interfaces with a design
42
203
  ❌ Cookie-cutter layouts
43
204
  ❌ Same choices across designs
44
205
 
45
- ## Focus Areas
46
-
47
- | Element | Approach |
48
- |---------|----------|
49
- | **Typography** | Distinctive, characterful fonts |
50
- | **Color** | Dominant + sharp accents, CSS variables |
51
- | **Motion** | High-impact moments, staggered reveals |
52
- | **Layout** | Asymmetry, overlap, grid-breaking |
53
- | **Details** | Textures, gradients, shadows, grain |
54
-
55
- ## Output
56
-
57
- ```markdown
58
- ## Design: [Component]
59
-
60
- ### Aesthetic Direction
61
- **Chosen**: [Style]
62
- **Why**: [Rationale]
63
-
64
- ### Key Choices
65
- | Element | Decision | Why |
66
- |---------|----------|-----|
67
- | Typography | ... | ... |
68
- | Colors | ... | ... |
69
-
70
- ### Files Created
71
- - [path/to/file.tsx](file://...)
72
- ```
73
-
74
206
  ## Rules
75
207
 
76
- - Study existing design patterns first
77
- - Commit to BOLD aesthetic direction
78
- - Match project code conventions
79
- - Verify visual output
80
- - Document design decisions
208
+ - ALWAYS explore existing design system first
209
+ - ALWAYS present variant options before implementing
210
+ - ALWAYS extract tokens from images before coding
211
+ - ALWAYS check accessibility (non-negotiable)
212
+ - ALWAYS check responsive behavior
213
+ - ✅ ALWAYS use semantic HTML
214
+ - ✅ ALWAYS commit to a distinctive aesthetic direction
215
+ - ❌ NEVER jump to code without variant exploration
216
+ - ❌ NEVER use generic AI aesthetic (Inter, purple gradients, 3-col cards)
217
+ - ❌ NEVER hardcode colors, spacing, or fonts
218
+ - ❌ NEVER approve with accessibility failures
219
+ - ❌ NEVER skip responsive verification
220
+ - ❌ NEVER mix conflicting aesthetic directions
81
221
 
82
222
  What do you want me to design?
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Save state for session break. Auto-gathers context and writes handoff immediately.
2
+ description: Pause gracefully auto-captures branch, commits, open tasks, and next steps into a handoff doc so any session can resume cold.
3
3
  agent: build
4
4
  ---
5
5
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Import external planning data (Jira, Notion, Linear, etc.)
2
+ description: Import tasks from Jira, Notion, Linear, or raw markdown/JSON and convert them into tracked Beads issues with a ready-to-execute plan.
3
3
  agent: plan
4
4
  ---
5
5
 
@@ -131,7 +131,7 @@ mcp__beads_village__add(
131
131
 
132
132
  1. Review and fill gaps
133
133
  2. Get user approval on plan
134
- 3. `/implement` to start execution
134
+ 3. `/start` to begin execution
135
135
  ```
136
136
 
137
137
  ## Field Mapping Reference
package/command/init.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Initialize CliKit and craft a high-quality AGENTS.md for this project.
2
+ description: Bootstrap CliKit in any project — installs plugin, scaffolds memory dirs, and writes a concise high-signal AGENTS.md tailored to the codebase.
3
3
  agent: build
4
4
  ---
5
5
 
package/command/issue.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Quick issue creation in beads village.
2
+ description: Instantly capture any task, bug, or idea as a tracked Beads issue with priority and tags — no full spec needed.
3
3
  agent: build
4
4
  ---
5
5
 
@@ -88,9 +88,8 @@ mcp__beads_village__add(
88
88
  **Tags:** [tags]
89
89
 
90
90
  ### Next Steps
91
- - Claim with `/implement`
92
- - Add to plan with `/plan`
93
- - View all with `/status-beads`
91
+ - Start with `/start` (after `/create` generates a plan)
92
+ - View all with `/status`
94
93
  ```
95
94
 
96
95
  ## Advanced Options
package/command/pr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Create pull request with comprehensive description.
2
+ description: Generate a complete PR description from git diff — summary, file changes, test evidence, linked spec/plan — then create it via gh.
3
3
  agent: build
4
4
  ---
5
5
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Deep exploration and research before planning.
2
+ description: Deep-dive any library, API, or pattern — web search, official docs, and real GitHub examples synthesized into a saved research report.
3
3
  agent: research
4
4
  subtask: true
5
5
  ---
@@ -93,11 +93,9 @@ bead_id: [optional]
93
93
  ```
94
94
 
95
95
  ## Tools to Use
96
- - `web_search` — General web search
97
- - `read_web_page` — Read specific URLs
98
- - `mcp__context7__*`Library documentation
99
- - `mcp__exa__*`Code examples, recent content
100
- - `mcp__gh_grep__searchGitHub` — Real-world code patterns
101
- - `web_search` + source links — Cross-check and evidence gathering
96
+ - `websearch` — general web search
97
+ - `webfetch` — fetch and read specific URLs
98
+ - `context7_resolve-library-id` + `context7_query-docs` official library documentation
99
+ - `grep_searchGitHub`real-world code patterns from public repos
102
100
 
103
101
  Identify the research questions from the user's request or the active spec, then begin research immediately.
package/command/resume.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Resume from handoff. Auto-loads state and starts working immediately.
2
+ description: Pick up exactly where you left off — loads the latest handoff, detects drift, and starts executing without any warm-up questions.
3
3
  agent: build
4
4
  ---
5
5
 
package/command/ship.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Ship completed work. Enforce verify gate, create PR, and cleanup.
2
+ description: Finalize work commit, create PR, and clean up. Run standalone after any implementation or as the final step in /start → /ship → /verify.
3
3
  agent: build
4
4
  ---
5
5
 
@@ -7,21 +7,26 @@ You are the **Build Agent**. Execute the `/ship` command.
7
7
 
8
8
  ## Your Task
9
9
 
10
- Finalize and ship the current work only after `/verify` passes with a ship-ready verdict.
10
+ Close and ship completed work. Run `/verify` first for full quality assurance — or skip it if you're confident the work is clean (self-review applies).
11
+
12
+ **Standalone use:** Run `/ship` at any time to commit and create a PR for current changes.
13
+ **In workflow:** After `/start` finishes all packets, run `/verify` then `/ship`.
11
14
 
12
15
  ## Process
13
16
 
14
- ### 1. Enforce Verify Gate (Mandatory)
17
+ ### 1. Pre-Ship Verification (recommended)
18
+
19
+ Run `/verify` for full quality assurance before shipping.
20
+
21
+ - If `/verify` returns `SHIP_READY` → continue
22
+ - If `CHANGES_REQUIRED` → fix issues, then re-run `/verify`
23
+ - If `BLOCKED` → escalate to user
24
+
25
+ **Skipping `/verify`**: acceptable for quick/obvious fixes — self-review applies (step 2).
15
26
 
16
- Run `/verify` first and require:
17
- - Overall Verdict: `PASS`
18
- - Ship Recommendation: `SHIP_READY`
19
- - No `Critical` or `High` findings
27
+ ### 2. Confirm execution state
20
28
 
21
- If `/verify` returns `FAIL`, `CHANGES_REQUIRED`, or `BLOCKED`:
22
- - Stop shipping
23
- - Present required fixes
24
- - Ask user whether to fix now
29
+ - Ensure active packets are verified and closed in Beads
25
30
 
26
31
  ### 2. Final Self-Review
27
32
 
@@ -31,14 +36,7 @@ Before creating PR:
31
36
  - Confirm no debug artifacts (`console.log`, `TODO`, temporary hacks)
32
37
  - Confirm changes stay within planned file impact
33
38
 
34
- ### 3. Optional Formal Review
35
-
36
- If requested, run `/review` and apply verdict:
37
- - `approved` → continue
38
- - `changes_required` → stop and fix first
39
- - `blocked` → escalate to user
40
-
41
- ### 4. Git Preparation
39
+ ### 3. Git Preparation
42
40
 
43
41
  ```bash
44
42
  # Ensure clean understanding of local state
@@ -51,14 +49,14 @@ git add <explicit-file-list>
51
49
  git commit -m "type(scope): description"
52
50
  ```
53
51
 
54
- ### 5. Create PR
52
+ ### 4. Create PR
55
53
 
56
54
  Use `/pr` flow:
57
55
  - Generate complete PR description
58
56
  - Link spec, plan, verify, and review artifacts
59
57
  - Create PR via `gh pr create`
60
58
 
61
- ### 6. Post-Ship Cleanup
59
+ ### 5. Post-Ship Cleanup
62
60
 
63
61
  - Update bead/task status
64
62
  - Create handoff note if needed
@@ -67,11 +65,12 @@ Use `/pr` flow:
67
65
  ## Ship Checklist
68
66
 
69
67
  ```
70
- Verify Gate:
71
- - [ ] /verify executed
72
- - [ ] Overall Verdict = PASS
73
- - [ ] Ship Recommendation = SHIP_READY
74
- - [ ] No Critical/High findings
68
+ Verification:
69
+ - [ ] /verify run (recommended) — or self-review applied
70
+
71
+ Execution State:
72
+ - [ ] Active packets verified
73
+ - [ ] Beads task state updated
75
74
 
76
75
  Pre-PR:
77
76
  - [ ] Self-review completed
@@ -90,12 +89,10 @@ Post-Ship:
90
89
 
91
90
  ## Rules
92
91
 
93
- - ✅ ALWAYS run `/verify` before shipping
94
- - ✅ ALWAYS block ship when verify is not ship-ready
95
92
  - ✅ ALWAYS stage explicit files only
96
- - ✅ ALWAYS include verification artifacts in PR
97
- - NEVER ship with failing gates
98
- - ❌ NEVER bypass verify verdict
93
+ - ✅ ALWAYS do self-review before shipping
94
+ - STRONGLY RECOMMENDED: run `/verify` before `/ship` for non-trivial changes
95
+ - ❌ NEVER ship with known failing gates
99
96
  - ❌ NEVER use `git add -A` or `git add .`
100
97
 
101
- Now, enforcing verify gate before ship...
98
+ Now, closing completed work...
package/command/start.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Begin implementing from an existing plan. Pick up next task and start coding.
2
+ description: Execute a plan packet by packet — implement, verify, and close. Works standalone or as part of /create → /start flow.
3
3
  agent: build
4
4
  ---
5
5
 
@@ -7,7 +7,11 @@ You are the **Build Agent**. Execute the `/start` command.
7
7
 
8
8
  ## Your Task
9
9
 
10
- Begin implementation from an existing plan. Pick up the next available task and start coding.
10
+ Execute the plan: claim the next packet, implement it, verify it, and close it.
11
+
12
+ **Standalone use:** You can run `/start` directly if you already have a plan in `.opencode/memory/plans/` or describe what to implement and the agent will create a minimal plan inline.
13
+
14
+ **In workflow:** `/start` picks up after `/create` which produces both spec and plan.
11
15
 
12
16
  ## Process
13
17
 
@@ -16,62 +20,69 @@ Begin implementation from an existing plan. Pick up the next available task and
16
20
  Look for plans in `.opencode/memory/plans/`. If multiple exist, ask the user which one.
17
21
 
18
22
  If no plan exists:
19
- - Suggest running `/plan` first
23
+ - **If user described a task inline**: create a minimal single-packet plan on the fly and proceed
24
+ - **Otherwise**: suggest running `/create` first to produce a full spec + plan
20
25
  - Check for specs in `.opencode/memory/specs/`
21
26
 
22
27
  ### 2. Load Context
23
28
 
24
29
  - Read `plan.md` — get task list, file impact, dependencies
25
30
  - Read `spec.md` — understand requirements and acceptance criteria
26
- - Read latest `handoff.md` (if exists) — resume from previous session
31
+ - Read latest handoff in `.opencode/memory/handoffs/` (if exists) — resume from previous session
27
32
  - Check bead status via `mcp__beads_village__ls()`
28
33
 
29
- ### 3. Determine Next Task
34
+ ### 3. Determine Next Packet
30
35
 
31
- Find the first task that is:
32
- - Status: `not_started`
33
- - All dependencies are `done`
34
- - Not blocked
36
+ Find the first task / packet that is executable:
37
+ - dependencies satisfied
38
+ - within Beads ready state
39
+ - not blocked
35
40
 
36
41
  If resuming from handoff, pick up `in_progress` tasks first.
37
42
 
38
- ### 4. Create Todos
43
+ ### 4. Execute Packet
44
+
45
+ - Reserve packet files via `mcp__beads_village__reserve()`
46
+ - Follow `files_in_scope` strictly
47
+ - Implement only the active packet
48
+
49
+ ### 5. Verify Before Done (execution-loop verify)
39
50
 
40
- Break the task into detailed, trackable todos using the TodoWrite tool.
51
+ Run per-packet verification:
52
+ - `lsp_diagnostics`
53
+ - packet verification commands
54
+ - lint/build when relevant
41
55
 
42
- ### 5. Begin Implementation
56
+ This is a **per-packet** check. For the full pre-ship gate, run `/verify` after all packets are done.
43
57
 
44
- - Reserve files via `mcp__beads_village__reserve()`
45
- - Follow the plan's file impact strictly
46
- - Implement incrementally — edit, verify, mark complete, repeat
58
+ If verification fails twice, stop and escalate.
47
59
 
48
- ### 6. Verify Each Task
60
+ ### 6. Close Packet
49
61
 
50
- After completing each task:
51
- - Run targeted checks (typecheck, tests, lint)
52
- - Verify acceptance criteria
53
- - Mark task as `done` in plan
54
- - Move to next task
62
+ - Mark Beads task done
63
+ - Report evidence
64
+ - Continue only if another ready packet exists and the user asked to keep going
55
65
 
56
66
  ## Quick Start Checklist
57
67
 
58
68
  ```
59
- 1. ✅ Plan exists and is approved
69
+ 1. ✅ Plan exists and is approved (created by /create)
60
70
  2. ✅ Context loaded (spec, plan, handoff)
61
71
  3. ✅ Next task identified
62
- 4. ✅ Todos created
72
+ 4. ✅ Packet selected
63
73
  5. ✅ Files reserved
64
- 6. 🔄 Implementation in progress
74
+ 6. 🔄 Execute + verify loop in progress
65
75
  ```
66
76
 
67
77
  ## Rules
68
78
 
69
79
  - ✅ ALWAYS load plan and spec before starting
70
80
  - ✅ ALWAYS check for existing handoff to resume
71
- - ✅ ALWAYS create todos before coding
72
- - ✅ ALWAYS verify each task before moving on
81
+ - ✅ ALWAYS execute one packet at a time
82
+ - ✅ ALWAYS verify before marking packet done
73
83
  - ✅ ALWAYS respect file impact boundaries
74
84
  - ❌ NEVER skip verification gates
75
85
  - ❌ NEVER implement without an approved plan
86
+ - ❌ If no plan exists, suggest `/create` — NOT `/plan`
76
87
 
77
- Now, let me find your plan and start implementing...
88
+ Now, run the next packet.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Current state overview of workspace and beads.
2
+ description: Instant workspace snapshot active Beads tasks, ready work, git state, and all memory artifacts in one view.
3
3
  agent: build
4
4
  ---
5
5
 
@@ -95,7 +95,6 @@ Look for:
95
95
  | Start new feature | `/create` |
96
96
  | Begin implementing | `/start` |
97
97
  | Resume paused work | `/resume` |
98
- | Review changes | `/review` |
99
98
  | Ship & merge | `/ship` |
100
99
  | Commit changes | `/commit` |
101
100
 
@@ -114,7 +113,7 @@ Look for:
114
113
  |------|------|
115
114
  | Beads | `mcp__beads_village__status()` |
116
115
  | Tasks | `mcp__beads_village__ls()` |
117
- | Ready tasks | `mcp__beads_village__ready()` |
116
+ | Ready tasks | `mcp__beads_village__ls(status="ready")` |
118
117
  | Reservations | `mcp__beads_village__reservations()` |
119
118
  | Messages | `mcp__beads_village__inbox()` |
120
119
  | Git | `git status`, `git log` |