@fro.bot/systematic 1.21.3 → 1.22.1
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/agents/research/learnings-researcher.md +1 -1
- package/commands/ce/brainstorm.md +145 -0
- package/commands/ce/compound.md +240 -0
- package/commands/ce/plan.md +636 -0
- package/commands/ce/review.md +525 -0
- package/commands/ce/work.md +456 -0
- package/commands/create-agent-skill.md +1 -3
- package/commands/deepen-plan.md +8 -8
- package/commands/heal-skill.md +1 -3
- package/commands/lfg.md +0 -1
- package/commands/slfg.md +0 -1
- package/commands/test-xcode.md +1 -2
- package/commands/workflows/brainstorm.md +23 -7
- package/commands/workflows/compound.md +5 -235
- package/commands/workflows/plan.md +4 -619
- package/commands/workflows/review.md +5 -524
- package/commands/workflows/work.md +5 -465
- package/package.json +2 -2
- package/skills/brainstorming/SKILL.md +0 -1
- package/skills/compound-docs/SKILL.md +4 -4
- package/skills/create-agent-skills/workflows/add-workflow.md +6 -0
- package/skills/create-agent-skills/workflows/create-new-skill.md +8 -2
- package/skills/create-agent-skills/workflows/get-guidance.md +1 -1
- package/skills/document-review/SKILL.md +0 -1
- package/skills/proof/SKILL.md +185 -0
- package/skills/setup/SKILL.md +10 -4
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ce:work
|
|
3
|
+
description: Execute work plans efficiently while maintaining quality and finishing features
|
|
4
|
+
argument-hint: "[plan file, specification, or todo file path]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Work Plan Execution Command
|
|
8
|
+
|
|
9
|
+
Execute a work plan efficiently while maintaining quality and finishing features.
|
|
10
|
+
|
|
11
|
+
## Introduction
|
|
12
|
+
|
|
13
|
+
This command takes a work document (plan, specification, or todo file) and executes it systematically. The focus is on **shipping complete features** by understanding requirements quickly, following existing patterns, and maintaining quality throughout.
|
|
14
|
+
|
|
15
|
+
## Input Document
|
|
16
|
+
|
|
17
|
+
<input_document> #$ARGUMENTS </input_document>
|
|
18
|
+
|
|
19
|
+
## Execution Workflow
|
|
20
|
+
|
|
21
|
+
### Phase 1: Quick Start
|
|
22
|
+
|
|
23
|
+
1. **Read Plan and Clarify**
|
|
24
|
+
|
|
25
|
+
- Read the work document completely
|
|
26
|
+
- Review any references or links provided in the plan
|
|
27
|
+
- If anything is unclear or ambiguous, ask clarifying questions now
|
|
28
|
+
- Get user approval to proceed
|
|
29
|
+
- **Do not skip this** - better to ask questions now than build the wrong thing
|
|
30
|
+
|
|
31
|
+
2. **Setup Environment**
|
|
32
|
+
|
|
33
|
+
First, check the current branch:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
current_branch=$(git branch --show-current)
|
|
37
|
+
default_branch=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
|
|
38
|
+
|
|
39
|
+
# Fallback if remote HEAD isn't set
|
|
40
|
+
if [ -z "$default_branch" ]; then
|
|
41
|
+
default_branch=$(git rev-parse --verify origin/main >/dev/null 2>&1 && echo "main" || echo "master")
|
|
42
|
+
fi
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**If already on a feature branch** (not the default branch):
|
|
46
|
+
- Ask: "Continue working on `[current_branch]`, or create a new branch?"
|
|
47
|
+
- If continuing, proceed to step 3
|
|
48
|
+
- If creating new, follow Option A or B below
|
|
49
|
+
|
|
50
|
+
**If on the default branch**, choose how to proceed:
|
|
51
|
+
|
|
52
|
+
**Option A: Create a new branch**
|
|
53
|
+
```bash
|
|
54
|
+
git pull origin [default_branch]
|
|
55
|
+
git checkout -b feature-branch-name
|
|
56
|
+
```
|
|
57
|
+
Use a meaningful name based on the work (e.g., `feat/user-authentication`, `fix/email-validation`).
|
|
58
|
+
|
|
59
|
+
**Option B: Use a worktree (recommended for parallel development)**
|
|
60
|
+
```bash
|
|
61
|
+
skill: git-worktree
|
|
62
|
+
# The skill will create a new branch from the default branch in an isolated worktree
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Option C: Continue on the default branch**
|
|
66
|
+
- Requires explicit user confirmation
|
|
67
|
+
- Only proceed after user explicitly says "yes, commit to [default_branch]"
|
|
68
|
+
- Never commit directly to the default branch without explicit permission
|
|
69
|
+
|
|
70
|
+
**Recommendation**: Use worktree if:
|
|
71
|
+
- You want to work on multiple features simultaneously
|
|
72
|
+
- You want to keep the default branch clean while experimenting
|
|
73
|
+
- You plan to switch between branches frequently
|
|
74
|
+
|
|
75
|
+
3. **Create Todo List**
|
|
76
|
+
- Use todowrite to break plan into actionable tasks
|
|
77
|
+
- Include dependencies between tasks
|
|
78
|
+
- Prioritize based on what needs to be done first
|
|
79
|
+
- Include testing and quality check tasks
|
|
80
|
+
- Keep tasks specific and completable
|
|
81
|
+
|
|
82
|
+
### Phase 2: Execute
|
|
83
|
+
|
|
84
|
+
1. **Task Execution Loop**
|
|
85
|
+
|
|
86
|
+
For each task in priority order:
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
while (tasks remain):
|
|
90
|
+
- Mark task as in_progress in todowrite
|
|
91
|
+
- Read any referenced files from the plan
|
|
92
|
+
- Look for similar patterns in codebase
|
|
93
|
+
- Implement following existing conventions
|
|
94
|
+
- Write tests for new functionality
|
|
95
|
+
- Run System-Wide Test Check (see below)
|
|
96
|
+
- Run tests after changes
|
|
97
|
+
- Mark task as completed in todowrite
|
|
98
|
+
- Mark off the corresponding checkbox in the plan file ([ ] → [x])
|
|
99
|
+
- Evaluate for incremental commit (see below)
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**System-Wide Test Check** — Before marking a task done, pause and ask:
|
|
103
|
+
|
|
104
|
+
| Question | What to do |
|
|
105
|
+
|----------|------------|
|
|
106
|
+
| **What fires when this runs?** Callbacks, middleware, observers, event handlers — trace two levels out from your change. | Read the actual code (not docs) for callbacks on models you touch, middleware in the request chain, `after_*` hooks. |
|
|
107
|
+
| **Do my tests exercise the real chain?** If every dependency is mocked, the test proves your logic works *in isolation* — it says nothing about the interaction. | Write at least one integration test that uses real objects through the full callback/middleware chain. No mocks for the layers that interact. |
|
|
108
|
+
| **Can failure leave orphaned state?** If your code persists state (DB row, cache, file) before calling an external service, what happens when the service fails? Does retry create duplicates? | Trace the failure path with real objects. If state is created before the risky call, test that failure cleans up or that retry is idempotent. |
|
|
109
|
+
| **What other interfaces expose this?** Mixins, DSLs, alternative entry points (Agent vs Chat vs ChatMethods). | Grep for the method/behavior in related classes. If parity is needed, add it now — not as a follow-up. |
|
|
110
|
+
| **Do error strategies align across layers?** Retry middleware + application fallback + framework error handling — do they conflict or create double execution? | List the specific error classes at each layer. Verify your rescue list matches what the lower layer actually raises. |
|
|
111
|
+
|
|
112
|
+
**When to skip:** Leaf-node changes with no callbacks, no state persistence, no parallel interfaces. If the change is purely additive (new helper method, new view partial), the check takes 10 seconds and the answer is "nothing fires, skip."
|
|
113
|
+
|
|
114
|
+
**When this matters most:** Any change that touches models with callbacks, error handling with fallback/retry, or functionality exposed through multiple interfaces.
|
|
115
|
+
|
|
116
|
+
**IMPORTANT**: Always update the original plan document by checking off completed items. Use the Edit tool to change `- [ ]` to `- [x]` for each task you finish. This keeps the plan as a living document showing progress and ensures no checkboxes are left unchecked.
|
|
117
|
+
|
|
118
|
+
2. **Incremental Commits**
|
|
119
|
+
|
|
120
|
+
After completing each task, evaluate whether to create an incremental commit:
|
|
121
|
+
|
|
122
|
+
| Commit when... | Don't commit when... |
|
|
123
|
+
|----------------|---------------------|
|
|
124
|
+
| Logical unit complete (model, service, component) | Small part of a larger unit |
|
|
125
|
+
| Tests pass + meaningful progress | Tests failing |
|
|
126
|
+
| About to switch contexts (backend → frontend) | Purely scaffolding with no behavior |
|
|
127
|
+
| About to attempt risky/uncertain changes | Would need a "WIP" commit message |
|
|
128
|
+
|
|
129
|
+
**Heuristic:** "Can I write a commit message that describes a complete, valuable change? If yes, commit. If the message would be 'WIP' or 'partial X', wait."
|
|
130
|
+
|
|
131
|
+
**Commit workflow:**
|
|
132
|
+
```bash
|
|
133
|
+
# 1. Verify tests pass (use project's test command)
|
|
134
|
+
# Examples: bin/rails test, npm test, pytest, go test, etc.
|
|
135
|
+
|
|
136
|
+
# 2. Stage only files related to this logical unit (not `git add .`)
|
|
137
|
+
git add <files related to this logical unit>
|
|
138
|
+
|
|
139
|
+
# 3. Commit with conventional message
|
|
140
|
+
git commit -m "feat(scope): description of this unit"
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
**Handling merge conflicts:** If conflicts arise during rebasing or merging, resolve them immediately. Incremental commits make conflict resolution easier since each commit is small and focused.
|
|
144
|
+
|
|
145
|
+
**Note:** Incremental commits use clean conventional messages without attribution footers. The final Phase 4 commit/PR includes the full attribution.
|
|
146
|
+
|
|
147
|
+
3. **Follow Existing Patterns**
|
|
148
|
+
|
|
149
|
+
- The plan should reference similar code - read those files first
|
|
150
|
+
- Match naming conventions exactly
|
|
151
|
+
- Reuse existing components where possible
|
|
152
|
+
- Follow project coding standards (see AGENTS.md)
|
|
153
|
+
- When in doubt, grep for similar implementations
|
|
154
|
+
|
|
155
|
+
4. **Test Continuously**
|
|
156
|
+
|
|
157
|
+
- Run relevant tests after each significant change
|
|
158
|
+
- Don't wait until the end to test
|
|
159
|
+
- Fix failures immediately
|
|
160
|
+
- Add new tests for new functionality
|
|
161
|
+
- **Unit tests with mocks prove logic in isolation. Integration tests with real objects prove the layers work together.** If your change touches callbacks, middleware, or error handling — you need both.
|
|
162
|
+
|
|
163
|
+
5. **Figma Design Sync** (if applicable)
|
|
164
|
+
|
|
165
|
+
For UI work with Figma designs:
|
|
166
|
+
|
|
167
|
+
- Implement components following design specs
|
|
168
|
+
- Use figma-design-sync agent iteratively to compare
|
|
169
|
+
- Fix visual differences identified
|
|
170
|
+
- Repeat until implementation matches design
|
|
171
|
+
|
|
172
|
+
6. **Track Progress**
|
|
173
|
+
- Keep todowrite updated as you complete tasks
|
|
174
|
+
- Note any blockers or unexpected discoveries
|
|
175
|
+
- Create new tasks if scope expands
|
|
176
|
+
- Keep user informed of major milestones
|
|
177
|
+
|
|
178
|
+
### Phase 3: Quality Check
|
|
179
|
+
|
|
180
|
+
1. **Run Core Quality Checks**
|
|
181
|
+
|
|
182
|
+
Always run before submitting:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
# Run full test suite (use project's test command)
|
|
186
|
+
# Examples: bin/rails test, npm test, pytest, go test, etc.
|
|
187
|
+
|
|
188
|
+
# Run linting (per project conventions)
|
|
189
|
+
# Use linting-agent before pushing to origin
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
2. **Consider Reviewer Agents** (Optional)
|
|
193
|
+
|
|
194
|
+
Use for complex, risky, or large changes. Read agents from `systematic.local.md` frontmatter (`review_agents`). If no settings file, invoke the `setup` skill to create one.
|
|
195
|
+
|
|
196
|
+
Run configured agents in parallel with task tool. Present findings and address critical issues.
|
|
197
|
+
|
|
198
|
+
3. **Final Validation**
|
|
199
|
+
- All todowrite tasks marked completed
|
|
200
|
+
- All tests pass
|
|
201
|
+
- Linting passes
|
|
202
|
+
- Code follows existing patterns
|
|
203
|
+
- Figma designs match (if applicable)
|
|
204
|
+
- No console errors or warnings
|
|
205
|
+
|
|
206
|
+
4. **Prepare Operational Validation Plan** (REQUIRED)
|
|
207
|
+
- Add a `## Post-Deploy Monitoring & Validation` section to the PR description for every change.
|
|
208
|
+
- Include concrete:
|
|
209
|
+
- Log queries/search terms
|
|
210
|
+
- Metrics or dashboards to watch
|
|
211
|
+
- Expected healthy signals
|
|
212
|
+
- Failure signals and rollback/mitigation trigger
|
|
213
|
+
- Validation window and owner
|
|
214
|
+
- If there is truly no production/runtime impact, still include the section with: `No additional operational monitoring required` and a one-line reason.
|
|
215
|
+
|
|
216
|
+
### Phase 4: Ship It
|
|
217
|
+
|
|
218
|
+
1. **Create Commit**
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
git add .
|
|
222
|
+
git status # Review what's being committed
|
|
223
|
+
git diff --staged # Check the changes
|
|
224
|
+
|
|
225
|
+
# Commit with conventional format
|
|
226
|
+
git commit -m "$(cat <<'EOF'
|
|
227
|
+
feat(scope): description of what and why
|
|
228
|
+
|
|
229
|
+
Brief explanation if needed.
|
|
230
|
+
|
|
231
|
+
🤖 Generated with [OpenCode](https://opencode.ai)
|
|
232
|
+
|
|
233
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
234
|
+
EOF
|
|
235
|
+
)"
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
2. **Capture and Upload Screenshots for UI Changes** (REQUIRED for any UI work)
|
|
239
|
+
|
|
240
|
+
For **any** design changes, new views, or UI modifications, you MUST capture and upload screenshots:
|
|
241
|
+
|
|
242
|
+
**Step 1: Start dev server** (if not running)
|
|
243
|
+
```bash
|
|
244
|
+
bin/dev # Run in background
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
**Step 2: Capture screenshots with agent-browser CLI**
|
|
248
|
+
```bash
|
|
249
|
+
agent-browser open http://localhost:3000/[route]
|
|
250
|
+
agent-browser snapshot -i
|
|
251
|
+
agent-browser screenshot output.png
|
|
252
|
+
```
|
|
253
|
+
See the `agent-browser` skill for detailed usage.
|
|
254
|
+
|
|
255
|
+
**Step 3: Upload using imgup skill**
|
|
256
|
+
```bash
|
|
257
|
+
skill: imgup
|
|
258
|
+
# Then upload each screenshot:
|
|
259
|
+
imgup -h pixhost screenshot.png # pixhost works without API key
|
|
260
|
+
# Alternative hosts: catbox, imagebin, beeimg
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
**What to capture:**
|
|
264
|
+
- **New screens**: Screenshot of the new UI
|
|
265
|
+
- **Modified screens**: Before AND after screenshots
|
|
266
|
+
- **Design implementation**: Screenshot showing Figma design match
|
|
267
|
+
|
|
268
|
+
**IMPORTANT**: Always include uploaded image URLs in PR description. This provides visual context for reviewers and documents the change.
|
|
269
|
+
|
|
270
|
+
3. **Create Pull Request**
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
git push -u origin feature-branch-name
|
|
274
|
+
|
|
275
|
+
gh pr create --title "Feature: [Description]" --body "$(cat <<'EOF'
|
|
276
|
+
## Summary
|
|
277
|
+
- What was built
|
|
278
|
+
- Why it was needed
|
|
279
|
+
- Key decisions made
|
|
280
|
+
|
|
281
|
+
## Testing
|
|
282
|
+
- Tests added/modified
|
|
283
|
+
- Manual testing performed
|
|
284
|
+
|
|
285
|
+
## Post-Deploy Monitoring & Validation
|
|
286
|
+
- **What to monitor/search**
|
|
287
|
+
- Logs:
|
|
288
|
+
- Metrics/Dashboards:
|
|
289
|
+
- **Validation checks (queries/commands)**
|
|
290
|
+
- `command or query here`
|
|
291
|
+
- **Expected healthy behavior**
|
|
292
|
+
- Expected signal(s)
|
|
293
|
+
- **Failure signal(s) / rollback trigger**
|
|
294
|
+
- Trigger + immediate action
|
|
295
|
+
- **Validation window & owner**
|
|
296
|
+
- Window:
|
|
297
|
+
- Owner:
|
|
298
|
+
- **If no operational impact**
|
|
299
|
+
- `No additional operational monitoring required: <reason>`
|
|
300
|
+
|
|
301
|
+
## Before / After Screenshots
|
|
302
|
+
| Before | After |
|
|
303
|
+
|--------|-------|
|
|
304
|
+
|  |  |
|
|
305
|
+
|
|
306
|
+
## Figma Design
|
|
307
|
+
[Link if applicable]
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
[](https://github.com/marcusrbrown/systematic) 🤖 Generated with [OpenCode](https://opencode.ai)
|
|
312
|
+
EOF
|
|
313
|
+
)"
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
4. **Update Plan Status**
|
|
317
|
+
|
|
318
|
+
If the input document has YAML frontmatter with a `status` field, update it to `completed`:
|
|
319
|
+
```
|
|
320
|
+
status: active → status: completed
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
5. **Notify User**
|
|
324
|
+
- Summarize what was completed
|
|
325
|
+
- Link to PR
|
|
326
|
+
- Note any follow-up work needed
|
|
327
|
+
- Suggest next steps if applicable
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
## Swarm Mode (Optional)
|
|
332
|
+
|
|
333
|
+
For complex plans with multiple independent workstreams, enable swarm mode for parallel execution with coordinated agents.
|
|
334
|
+
|
|
335
|
+
### When to Use Swarm Mode
|
|
336
|
+
|
|
337
|
+
| Use Swarm Mode when... | Use Standard Mode when... |
|
|
338
|
+
|------------------------|---------------------------|
|
|
339
|
+
| Plan has 5+ independent tasks | Plan is linear/sequential |
|
|
340
|
+
| Multiple specialists needed (review + test + implement) | Single-focus work |
|
|
341
|
+
| Want maximum parallelism | Simpler mental model preferred |
|
|
342
|
+
| Large feature with clear phases | Small feature or bug fix |
|
|
343
|
+
|
|
344
|
+
### Enabling Swarm Mode
|
|
345
|
+
|
|
346
|
+
To trigger swarm execution, say:
|
|
347
|
+
|
|
348
|
+
> "Make a task list and launch an army of agent swarm subagents to build the plan"
|
|
349
|
+
|
|
350
|
+
Or explicitly request: "Use swarm mode for this work"
|
|
351
|
+
|
|
352
|
+
### Swarm Workflow
|
|
353
|
+
|
|
354
|
+
When swarm mode is enabled, the workflow changes:
|
|
355
|
+
|
|
356
|
+
**Note:** OpenCode does not yet have a native Teammate coordination API equivalent to Claude Code's Teammate API. The swarm pattern below uses task() calls for parallel execution without explicit team coordination. Use this approach for independent workstreams.
|
|
357
|
+
|
|
358
|
+
1. **Create Task List with Dependencies**
|
|
359
|
+
- Parse plan into task items
|
|
360
|
+
- Set up dependencies for sequential tasks
|
|
361
|
+
- Independent tasks have no blockers (can run in parallel)
|
|
362
|
+
|
|
363
|
+
2. **Spawn Specialized Tasks in Parallel**
|
|
364
|
+
```
|
|
365
|
+
task({
|
|
366
|
+
name: "implementer",
|
|
367
|
+
subagent_type: "general-purpose",
|
|
368
|
+
prompt: "Implement these tasks: [list]. Follow AGENTS.md patterns."
|
|
369
|
+
})
|
|
370
|
+
|
|
371
|
+
task({
|
|
372
|
+
name: "tester",
|
|
373
|
+
subagent_type: "general-purpose",
|
|
374
|
+
prompt: "Write and run tests for: [list]. Verify all pass."
|
|
375
|
+
})
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
3. **Coordinate and Monitor**
|
|
379
|
+
- Main agent monitors task completion
|
|
380
|
+
- Spawn additional workers as phases unblock
|
|
381
|
+
- Handle plan approval if required
|
|
382
|
+
|
|
383
|
+
See the `orchestrating-swarms` skill for detailed swarm patterns and best practices.
|
|
384
|
+
|
|
385
|
+
---
|
|
386
|
+
|
|
387
|
+
## Key Principles
|
|
388
|
+
|
|
389
|
+
### Start Fast, Execute Faster
|
|
390
|
+
|
|
391
|
+
- Get clarification once at the start, then execute
|
|
392
|
+
- Don't wait for perfect understanding - ask questions and move
|
|
393
|
+
- The goal is to **finish the feature**, not create perfect process
|
|
394
|
+
|
|
395
|
+
### The Plan is Your Guide
|
|
396
|
+
|
|
397
|
+
- Work documents should reference similar code and patterns
|
|
398
|
+
- Load those references and follow them
|
|
399
|
+
- Don't reinvent - match what exists
|
|
400
|
+
|
|
401
|
+
### Test As You Go
|
|
402
|
+
|
|
403
|
+
- Run tests after each change, not at the end
|
|
404
|
+
- Fix failures immediately
|
|
405
|
+
- Continuous testing prevents big surprises
|
|
406
|
+
|
|
407
|
+
### Quality is Built In
|
|
408
|
+
|
|
409
|
+
- Follow existing patterns
|
|
410
|
+
- Write tests for new code
|
|
411
|
+
- Run linting before pushing
|
|
412
|
+
- Use reviewer agents for complex/risky changes only
|
|
413
|
+
|
|
414
|
+
### Ship Complete Features
|
|
415
|
+
|
|
416
|
+
- Mark all tasks completed before moving on
|
|
417
|
+
- Don't leave features 80% done
|
|
418
|
+
- A finished feature that ships beats a perfect feature that doesn't
|
|
419
|
+
|
|
420
|
+
## Quality Checklist
|
|
421
|
+
|
|
422
|
+
Before creating PR, verify:
|
|
423
|
+
|
|
424
|
+
- [ ] All clarifying questions asked and answered
|
|
425
|
+
- [ ] All todowrite tasks marked completed
|
|
426
|
+
- [ ] Tests pass (run project's test command)
|
|
427
|
+
- [ ] Linting passes (use linting-agent)
|
|
428
|
+
- [ ] Code follows existing patterns
|
|
429
|
+
- [ ] Figma designs match implementation (if applicable)
|
|
430
|
+
- [ ] Before/after screenshots captured and uploaded (for UI changes)
|
|
431
|
+
- [ ] Commit messages follow conventional format
|
|
432
|
+
- [ ] PR description includes Post-Deploy Monitoring & Validation section (or explicit no-impact rationale)
|
|
433
|
+
- [ ] PR description includes summary, testing notes, and screenshots
|
|
434
|
+
- [ ] PR description includes Systematic badge
|
|
435
|
+
|
|
436
|
+
## When to Use Reviewer Agents
|
|
437
|
+
|
|
438
|
+
**Don't use by default.** Use reviewer agents only when:
|
|
439
|
+
|
|
440
|
+
- Large refactor affecting many files (10+)
|
|
441
|
+
- Security-sensitive changes (authentication, permissions, data access)
|
|
442
|
+
- Performance-critical code paths
|
|
443
|
+
- Complex algorithms or business logic
|
|
444
|
+
- User explicitly requests thorough review
|
|
445
|
+
|
|
446
|
+
For most features: tests + linting + following patterns is sufficient.
|
|
447
|
+
|
|
448
|
+
## Common Pitfalls to Avoid
|
|
449
|
+
|
|
450
|
+
- **Analysis paralysis** - Don't overthink, read the plan and execute
|
|
451
|
+
- **Skipping clarifying questions** - Ask now, not after building wrong thing
|
|
452
|
+
- **Ignoring plan references** - The plan has links for a reason
|
|
453
|
+
- **Testing at the end** - Test continuously or suffer later
|
|
454
|
+
- **Forgetting todowrite** - Track progress or lose track of what's done
|
|
455
|
+
- **80% done syndrome** - Finish the feature, don't move on early
|
|
456
|
+
- **Over-reviewing simple changes** - Save reviewer agents for complex work
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
name: create-agent-skill
|
|
3
3
|
description: Create or edit OpenCode skills with expert guidance on structure and best practices
|
|
4
4
|
allowed-tools: Skill(create-agent-skills)
|
|
5
|
-
argument-hint:
|
|
6
|
-
- skill description or requirements
|
|
5
|
+
argument-hint: '[skill description or requirements]'
|
|
7
6
|
disable-model-invocation: true
|
|
8
7
|
---
|
|
9
8
|
|
|
10
9
|
Invoke the create-agent-skills skill for: $ARGUMENTS
|
|
11
|
-
|
package/commands/deepen-plan.md
CHANGED
|
@@ -10,7 +10,7 @@ argument-hint: '[path to plan file]'
|
|
|
10
10
|
|
|
11
11
|
**Note: The current year is 2026.** Use this when searching for recent documentation and best practices.
|
|
12
12
|
|
|
13
|
-
This command takes an existing plan (from `/
|
|
13
|
+
This command takes an existing plan (from `/ce:plan`) and enhances each section with parallel research agents. Each major element gets its own dedicated research sub-agent to find:
|
|
14
14
|
- Best practices and industry patterns
|
|
15
15
|
- Performance optimizations
|
|
16
16
|
- UI/UX improvements (if applicable)
|
|
@@ -145,13 +145,13 @@ Task general-purpose: "Use the security-patterns skill at ~/.opencode/skills/sec
|
|
|
145
145
|
### 3. Discover and Apply Learnings/Solutions
|
|
146
146
|
|
|
147
147
|
<thinking>
|
|
148
|
-
Check for documented learnings from /
|
|
148
|
+
Check for documented learnings from /ce:compound. These are solved problems stored as markdown files. Spawn a sub-agent for each learning to check if it's relevant.
|
|
149
149
|
</thinking>
|
|
150
150
|
|
|
151
151
|
**LEARNINGS LOCATION - Check these exact folders:**
|
|
152
152
|
|
|
153
153
|
```
|
|
154
|
-
docs/solutions/ <-- PRIMARY: Project-level learnings (created by /
|
|
154
|
+
docs/solutions/ <-- PRIMARY: Project-level learnings (created by /ce:compound)
|
|
155
155
|
├── performance-issues/
|
|
156
156
|
│ └── *.md
|
|
157
157
|
├── debugging-patterns/
|
|
@@ -370,7 +370,7 @@ Wait for ALL parallel agents to complete - skills, research agents, review agent
|
|
|
370
370
|
**Collect outputs from ALL sources:**
|
|
371
371
|
|
|
372
372
|
1. **Skill-based sub-agents** - Each skill's full output (code examples, patterns, recommendations)
|
|
373
|
-
2. **Learnings/Solutions sub-agents** - Relevant documented learnings from /
|
|
373
|
+
2. **Learnings/Solutions sub-agents** - Relevant documented learnings from /ce:compound
|
|
374
374
|
3. **Research agents** - Best practices, documentation, real-world examples
|
|
375
375
|
4. **Review agents** - All feedback from every reviewer (architecture, security, performance, simplicity, etc.)
|
|
376
376
|
5. **Context7 queries** - Framework documentation and patterns
|
|
@@ -481,27 +481,27 @@ After writing the enhanced plan, use the **question tool** to present these opti
|
|
|
481
481
|
**Options:**
|
|
482
482
|
1. **View diff** - Show what was added/changed
|
|
483
483
|
2. **Run `/technical_review`** - Get feedback from reviewers on enhanced plan
|
|
484
|
-
3. **Start `/
|
|
484
|
+
3. **Start `/ce:work`** - Begin implementing this enhanced plan
|
|
485
485
|
4. **Deepen further** - Run another round of research on specific sections
|
|
486
486
|
5. **Revert** - Restore original plan (if backup exists)
|
|
487
487
|
|
|
488
488
|
Based on selection:
|
|
489
489
|
- **View diff** → Run `git diff [plan_path]` or show before/after
|
|
490
490
|
- **`/technical_review`** → Call the /technical_review command with the plan file path
|
|
491
|
-
- **`/
|
|
491
|
+
- **`/ce:work`** → Call the /ce:work command with the plan file path
|
|
492
492
|
- **Deepen further** → Ask which sections need more research, then re-run those agents
|
|
493
493
|
- **Revert** → Restore from git or backup
|
|
494
494
|
|
|
495
495
|
## Example Enhancement
|
|
496
496
|
|
|
497
|
-
**Before (from /
|
|
497
|
+
**Before (from /ce:plan):**
|
|
498
498
|
```markdown
|
|
499
499
|
## Technical Approach
|
|
500
500
|
|
|
501
501
|
Use React Query for data fetching with optimistic updates.
|
|
502
502
|
```
|
|
503
503
|
|
|
504
|
-
**After (from /
|
|
504
|
+
**After (from /deepen-plan):**
|
|
505
505
|
```markdown
|
|
506
506
|
## Technical Approach
|
|
507
507
|
|
package/commands/heal-skill.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: heal-skill
|
|
3
3
|
description: Fix incorrect SKILL.md files when a skill has wrong instructions or outdated API references
|
|
4
|
-
argument-hint:
|
|
5
|
-
- optional: specific issue to fix
|
|
4
|
+
argument-hint: '[optional: specific issue to fix]'
|
|
6
5
|
allowed-tools:
|
|
7
6
|
- Read
|
|
8
7
|
- Edit
|
|
@@ -146,4 +145,3 @@ Before completing:
|
|
|
146
145
|
- Verify git commit created if option 1 was selected
|
|
147
146
|
- Check no unintended files were modified
|
|
148
147
|
</verification>
|
|
149
|
-
|
package/commands/lfg.md
CHANGED
package/commands/slfg.md
CHANGED
package/commands/test-xcode.md
CHANGED
|
@@ -328,6 +328,5 @@ mcp__xcodebuildmcp__shutdown_simulator({ simulator_id: "[uuid]" })
|
|
|
328
328
|
When reviewing PRs that touch iOS code, the `/workflows:review` command can spawn this as a subagent:
|
|
329
329
|
|
|
330
330
|
```
|
|
331
|
-
|
|
331
|
+
task general-purpose("Run /xcode-test for scheme [name]. Build, install on simulator, test key screens, check for crashes.")
|
|
332
332
|
```
|
|
333
|
-
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workflows:brainstorm
|
|
3
3
|
description: Explore requirements and approaches through collaborative dialogue before planning implementation
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: '[feature idea or problem to explore]'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Brainstorm a Feature or Improvement
|
|
@@ -33,7 +33,7 @@ Evaluate whether brainstorming is needed based on the feature description.
|
|
|
33
33
|
- Constrained, well-defined scope
|
|
34
34
|
|
|
35
35
|
**If requirements are already clear:**
|
|
36
|
-
Use
|
|
36
|
+
Use **question tool** to suggest: "Your requirements seem detailed enough to proceed directly to planning. Should I run `/workflows:plan` instead, or would you like to explore the idea further?"
|
|
37
37
|
|
|
38
38
|
### Phase 1: Understand the Idea
|
|
39
39
|
|
|
@@ -68,7 +68,7 @@ For each approach, provide:
|
|
|
68
68
|
|
|
69
69
|
Lead with your recommendation and explain why. Apply YAGNI—prefer simpler solutions.
|
|
70
70
|
|
|
71
|
-
Use
|
|
71
|
+
Use **question tool** to ask which approach the user prefers.
|
|
72
72
|
|
|
73
73
|
### Phase 3: Capture the Design
|
|
74
74
|
|
|
@@ -82,17 +82,33 @@ Ensure `docs/brainstorms/` directory exists before writing.
|
|
|
82
82
|
|
|
83
83
|
### Phase 4: Handoff
|
|
84
84
|
|
|
85
|
-
Use
|
|
85
|
+
Use **question tool** to present next steps:
|
|
86
86
|
|
|
87
87
|
**Question:** "Brainstorm captured. What would you like to do next?"
|
|
88
88
|
|
|
89
89
|
**Options:**
|
|
90
90
|
1. **Review and refine** - Improve the document through structured self-review
|
|
91
91
|
2. **Proceed to planning** - Run `/workflows:plan` (will auto-detect this brainstorm)
|
|
92
|
-
3. **
|
|
93
|
-
4. **
|
|
92
|
+
3. **Share to Proof** - Upload to Proof for collaborative review and sharing
|
|
93
|
+
4. **Ask more questions** - I have more questions to clarify before moving on
|
|
94
|
+
5. **Done for now** - Return later
|
|
95
|
+
|
|
96
|
+
**If user selects "Share to Proof":**
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
CONTENT=$(cat docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md)
|
|
100
|
+
TITLE="Brainstorm: <topic title>"
|
|
101
|
+
RESPONSE=$(curl -s -X POST https://www.proofeditor.ai/share/markdown \
|
|
102
|
+
-H "Content-Type: application/json" \
|
|
103
|
+
-d "$(jq -n --arg title "$TITLE" --arg markdown "$CONTENT" --arg by "ai:compound" '{title: $title, markdown: $markdown, by: $by}')")
|
|
104
|
+
PROOF_URL=$(echo "$RESPONSE" | jq -r '.tokenUrl')
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Display the URL prominently: `View & collaborate in Proof: <PROOF_URL>`
|
|
108
|
+
|
|
109
|
+
If the curl fails, skip silently. Then return to the Phase 4 options.
|
|
94
110
|
|
|
95
|
-
**If user selects "Ask more questions":**
|
|
111
|
+
**If user selects "Ask more questions":** YOU (Claude) return to Phase 1.2 (Collaborative Dialogue) and continue asking the USER questions one at a time to further refine the design. The user wants YOU to probe deeper - ask about edge cases, constraints, preferences, or areas not yet explored. Continue until the user is satisfied, then return to Phase 4.
|
|
96
112
|
|
|
97
113
|
**If user selects "Review and refine":**
|
|
98
114
|
|