@every-env/compound-plugin 0.9.0 → 2.34.2
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/.claude-plugin/marketplace.json +3 -3
- package/.github/workflows/publish.yml +20 -10
- package/.releaserc.json +31 -0
- package/AGENTS.md +6 -1
- package/CHANGELOG.md +76 -0
- package/CLAUDE.md +16 -3
- package/README.md +83 -16
- package/bun.lock +977 -0
- package/docs/plans/2026-02-14-feat-auto-detect-install-and-gemini-sync-plan.md +360 -0
- package/docs/plans/2026-02-25-feat-windsurf-global-scope-support-plan.md +627 -0
- package/docs/plans/2026-03-01-feat-ce-command-aliases-backwards-compatible-deprecation-plan.md +261 -0
- package/docs/plans/2026-03-01-fix-setup-skill-non-claude-llm-fallback-plan.md +140 -0
- package/docs/plans/2026-03-03-feat-sync-claude-mcp-all-supported-providers-plan.md +639 -0
- package/docs/plans/feature_opencode-commands-as-md-and-config-merge.md +574 -0
- package/docs/solutions/adding-converter-target-providers.md +693 -0
- package/docs/solutions/plugin-versioning-requirements.md +7 -3
- package/docs/specs/windsurf.md +477 -0
- package/package.json +10 -4
- package/plans/landing-page-launchkit-refresh.md +2 -2
- package/plugins/compound-engineering/.claude-plugin/plugin.json +2 -2
- package/plugins/compound-engineering/CHANGELOG.md +82 -1
- package/plugins/compound-engineering/CLAUDE.md +14 -7
- package/plugins/compound-engineering/README.md +10 -7
- package/plugins/compound-engineering/agents/research/git-history-analyzer.md +1 -1
- package/plugins/compound-engineering/agents/research/learnings-researcher.md +1 -1
- package/plugins/compound-engineering/agents/review/code-simplicity-reviewer.md +1 -1
- package/plugins/compound-engineering/commands/ce/brainstorm.md +145 -0
- package/plugins/compound-engineering/commands/ce/compound.md +240 -0
- package/plugins/compound-engineering/commands/ce/plan.md +636 -0
- package/plugins/compound-engineering/commands/ce/review.md +525 -0
- package/plugins/compound-engineering/commands/ce/work.md +470 -0
- package/plugins/compound-engineering/commands/create-agent-skill.md +1 -1
- package/plugins/compound-engineering/commands/deepen-plan.md +6 -6
- package/plugins/compound-engineering/commands/deploy-docs.md +1 -1
- package/plugins/compound-engineering/commands/feature-video.md +15 -6
- package/plugins/compound-engineering/commands/heal-skill.md +1 -1
- package/plugins/compound-engineering/commands/lfg.md +3 -3
- package/plugins/compound-engineering/commands/slfg.md +3 -3
- package/plugins/compound-engineering/commands/test-xcode.md +2 -2
- package/plugins/compound-engineering/commands/workflows/brainstorm.md +4 -123
- package/plugins/compound-engineering/commands/workflows/compound.md +4 -234
- package/plugins/compound-engineering/commands/workflows/plan.md +4 -562
- package/plugins/compound-engineering/commands/workflows/review.md +4 -522
- package/plugins/compound-engineering/commands/workflows/work.md +4 -448
- package/plugins/compound-engineering/skills/brainstorming/SKILL.md +3 -3
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-workflow.md +6 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-new-skill.md +6 -0
- package/plugins/compound-engineering/skills/document-review/SKILL.md +1 -1
- package/plugins/compound-engineering/skills/file-todos/SKILL.md +1 -1
- package/plugins/compound-engineering/skills/git-worktree/SKILL.md +5 -5
- package/plugins/compound-engineering/skills/proof/SKILL.md +185 -0
- package/plugins/compound-engineering/skills/resolve-pr-parallel/SKILL.md +1 -1
- package/plugins/compound-engineering/skills/setup/SKILL.md +8 -2
- package/src/commands/convert.ts +101 -24
- package/src/commands/install.ts +102 -45
- package/src/commands/sync.ts +43 -62
- package/src/converters/claude-to-openclaw.ts +240 -0
- package/src/converters/claude-to-opencode.ts +12 -10
- package/src/converters/claude-to-qwen.ts +238 -0
- package/src/converters/claude-to-windsurf.ts +205 -0
- package/src/index.ts +2 -1
- package/src/parsers/claude-home.ts +55 -3
- package/src/sync/codex.ts +38 -62
- package/src/sync/commands.ts +198 -0
- package/src/sync/copilot.ts +14 -36
- package/src/sync/droid.ts +50 -9
- package/src/sync/gemini.ts +135 -0
- package/src/sync/json-config.ts +47 -0
- package/src/sync/kiro.ts +49 -0
- package/src/sync/mcp-transports.ts +19 -0
- package/src/sync/openclaw.ts +18 -0
- package/src/sync/opencode.ts +10 -30
- package/src/sync/pi.ts +12 -36
- package/src/sync/qwen.ts +66 -0
- package/src/sync/registry.ts +141 -0
- package/src/sync/skills.ts +21 -0
- package/src/sync/windsurf.ts +59 -0
- package/src/targets/index.ts +60 -1
- package/src/targets/openclaw.ts +96 -0
- package/src/targets/opencode.ts +76 -10
- package/src/targets/qwen.ts +64 -0
- package/src/targets/windsurf.ts +104 -0
- package/src/types/kiro.ts +3 -1
- package/src/types/openclaw.ts +52 -0
- package/src/types/opencode.ts +7 -8
- package/src/types/qwen.ts +51 -0
- package/src/types/windsurf.ts +35 -0
- package/src/utils/codex-agents.ts +1 -1
- package/src/utils/detect-tools.ts +37 -0
- package/src/utils/files.ts +14 -0
- package/src/utils/resolve-output.ts +50 -0
- package/src/utils/secrets.ts +24 -0
- package/src/utils/symlink.ts +4 -6
- package/tests/claude-home.test.ts +46 -0
- package/tests/cli.test.ts +180 -0
- package/tests/converter.test.ts +43 -10
- package/tests/detect-tools.test.ts +119 -0
- package/tests/openclaw-converter.test.ts +200 -0
- package/tests/opencode-writer.test.ts +142 -5
- package/tests/qwen-converter.test.ts +238 -0
- package/tests/resolve-output.test.ts +131 -0
- package/tests/sync-codex.test.ts +64 -0
- package/tests/sync-copilot.test.ts +60 -4
- package/tests/sync-droid.test.ts +44 -4
- package/tests/sync-gemini.test.ts +160 -0
- package/tests/sync-kiro.test.ts +83 -0
- package/tests/sync-openclaw.test.ts +51 -0
- package/tests/sync-qwen.test.ts +75 -0
- package/tests/sync-windsurf.test.ts +89 -0
- package/tests/windsurf-converter.test.ts +573 -0
- package/tests/windsurf-writer.test.ts +359 -0
- package/docs/css/docs.css +0 -675
- package/docs/css/style.css +0 -2886
- package/docs/index.html +0 -1046
- package/docs/js/main.js +0 -225
- package/docs/pages/agents.html +0 -649
- package/docs/pages/changelog.html +0 -534
- package/docs/pages/commands.html +0 -523
- package/docs/pages/getting-started.html +0 -582
- package/docs/pages/mcp-servers.html +0 -409
- package/docs/pages/skills.html +0 -611
|
@@ -1,454 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workflows:work
|
|
3
|
-
description:
|
|
3
|
+
description: "[DEPRECATED] Use /ce:work instead — renamed for clarity."
|
|
4
4
|
argument-hint: "[plan file, specification, or todo file path]"
|
|
5
|
+
disable-model-invocation: true
|
|
5
6
|
---
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
NOTE: /workflows:work is deprecated. Please use /ce:work instead. This alias will be removed in a future version.
|
|
8
9
|
|
|
9
|
-
|
|
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 tests after changes
|
|
96
|
-
- Mark task as completed in TodoWrite
|
|
97
|
-
- Mark off the corresponding checkbox in the plan file ([ ] → [x])
|
|
98
|
-
- Evaluate for incremental commit (see below)
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
**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.
|
|
102
|
-
|
|
103
|
-
2. **Incremental Commits**
|
|
104
|
-
|
|
105
|
-
After completing each task, evaluate whether to create an incremental commit:
|
|
106
|
-
|
|
107
|
-
| Commit when... | Don't commit when... |
|
|
108
|
-
|----------------|---------------------|
|
|
109
|
-
| Logical unit complete (model, service, component) | Small part of a larger unit |
|
|
110
|
-
| Tests pass + meaningful progress | Tests failing |
|
|
111
|
-
| About to switch contexts (backend → frontend) | Purely scaffolding with no behavior |
|
|
112
|
-
| About to attempt risky/uncertain changes | Would need a "WIP" commit message |
|
|
113
|
-
|
|
114
|
-
**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."
|
|
115
|
-
|
|
116
|
-
**Commit workflow:**
|
|
117
|
-
```bash
|
|
118
|
-
# 1. Verify tests pass (use project's test command)
|
|
119
|
-
# Examples: bin/rails test, npm test, pytest, go test, etc.
|
|
120
|
-
|
|
121
|
-
# 2. Stage only files related to this logical unit (not `git add .`)
|
|
122
|
-
git add <files related to this logical unit>
|
|
123
|
-
|
|
124
|
-
# 3. Commit with conventional message
|
|
125
|
-
git commit -m "feat(scope): description of this unit"
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
**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.
|
|
129
|
-
|
|
130
|
-
**Note:** Incremental commits use clean conventional messages without attribution footers. The final Phase 4 commit/PR includes the full attribution.
|
|
131
|
-
|
|
132
|
-
3. **Follow Existing Patterns**
|
|
133
|
-
|
|
134
|
-
- The plan should reference similar code - read those files first
|
|
135
|
-
- Match naming conventions exactly
|
|
136
|
-
- Reuse existing components where possible
|
|
137
|
-
- Follow project coding standards (see CLAUDE.md)
|
|
138
|
-
- When in doubt, grep for similar implementations
|
|
139
|
-
|
|
140
|
-
4. **Test Continuously**
|
|
141
|
-
|
|
142
|
-
- Run relevant tests after each significant change
|
|
143
|
-
- Don't wait until the end to test
|
|
144
|
-
- Fix failures immediately
|
|
145
|
-
- Add new tests for new functionality
|
|
146
|
-
|
|
147
|
-
5. **Figma Design Sync** (if applicable)
|
|
148
|
-
|
|
149
|
-
For UI work with Figma designs:
|
|
150
|
-
|
|
151
|
-
- Implement components following design specs
|
|
152
|
-
- Use figma-design-sync agent iteratively to compare
|
|
153
|
-
- Fix visual differences identified
|
|
154
|
-
- Repeat until implementation matches design
|
|
155
|
-
|
|
156
|
-
6. **Track Progress**
|
|
157
|
-
- Keep TodoWrite updated as you complete tasks
|
|
158
|
-
- Note any blockers or unexpected discoveries
|
|
159
|
-
- Create new tasks if scope expands
|
|
160
|
-
- Keep user informed of major milestones
|
|
161
|
-
|
|
162
|
-
### Phase 3: Quality Check
|
|
163
|
-
|
|
164
|
-
1. **Run Core Quality Checks**
|
|
165
|
-
|
|
166
|
-
Always run before submitting:
|
|
167
|
-
|
|
168
|
-
```bash
|
|
169
|
-
# Run full test suite (use project's test command)
|
|
170
|
-
# Examples: bin/rails test, npm test, pytest, go test, etc.
|
|
171
|
-
|
|
172
|
-
# Run linting (per CLAUDE.md)
|
|
173
|
-
# Use linting-agent before pushing to origin
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
2. **Consider Reviewer Agents** (Optional)
|
|
177
|
-
|
|
178
|
-
Use for complex, risky, or large changes. Read agents from `compound-engineering.local.md` frontmatter (`review_agents`). If no settings file, invoke the `setup` skill to create one.
|
|
179
|
-
|
|
180
|
-
Run configured agents in parallel with Task tool. Present findings and address critical issues.
|
|
181
|
-
|
|
182
|
-
3. **Final Validation**
|
|
183
|
-
- All TodoWrite tasks marked completed
|
|
184
|
-
- All tests pass
|
|
185
|
-
- Linting passes
|
|
186
|
-
- Code follows existing patterns
|
|
187
|
-
- Figma designs match (if applicable)
|
|
188
|
-
- No console errors or warnings
|
|
189
|
-
|
|
190
|
-
4. **Prepare Operational Validation Plan** (REQUIRED)
|
|
191
|
-
- Add a `## Post-Deploy Monitoring & Validation` section to the PR description for every change.
|
|
192
|
-
- Include concrete:
|
|
193
|
-
- Log queries/search terms
|
|
194
|
-
- Metrics or dashboards to watch
|
|
195
|
-
- Expected healthy signals
|
|
196
|
-
- Failure signals and rollback/mitigation trigger
|
|
197
|
-
- Validation window and owner
|
|
198
|
-
- If there is truly no production/runtime impact, still include the section with: `No additional operational monitoring required` and a one-line reason.
|
|
199
|
-
|
|
200
|
-
### Phase 4: Ship It
|
|
201
|
-
|
|
202
|
-
1. **Create Commit**
|
|
203
|
-
|
|
204
|
-
```bash
|
|
205
|
-
git add .
|
|
206
|
-
git status # Review what's being committed
|
|
207
|
-
git diff --staged # Check the changes
|
|
208
|
-
|
|
209
|
-
# Commit with conventional format
|
|
210
|
-
git commit -m "$(cat <<'EOF'
|
|
211
|
-
feat(scope): description of what and why
|
|
212
|
-
|
|
213
|
-
Brief explanation if needed.
|
|
214
|
-
|
|
215
|
-
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
|
216
|
-
|
|
217
|
-
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
218
|
-
EOF
|
|
219
|
-
)"
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
2. **Capture and Upload Screenshots for UI Changes** (REQUIRED for any UI work)
|
|
223
|
-
|
|
224
|
-
For **any** design changes, new views, or UI modifications, you MUST capture and upload screenshots:
|
|
225
|
-
|
|
226
|
-
**Step 1: Start dev server** (if not running)
|
|
227
|
-
```bash
|
|
228
|
-
bin/dev # Run in background
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
**Step 2: Capture screenshots with agent-browser CLI**
|
|
232
|
-
```bash
|
|
233
|
-
agent-browser open http://localhost:3000/[route]
|
|
234
|
-
agent-browser snapshot -i
|
|
235
|
-
agent-browser screenshot output.png
|
|
236
|
-
```
|
|
237
|
-
See the `agent-browser` skill for detailed usage.
|
|
238
|
-
|
|
239
|
-
**Step 3: Upload using imgup skill**
|
|
240
|
-
```bash
|
|
241
|
-
skill: imgup
|
|
242
|
-
# Then upload each screenshot:
|
|
243
|
-
imgup -h pixhost screenshot.png # pixhost works without API key
|
|
244
|
-
# Alternative hosts: catbox, imagebin, beeimg
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
**What to capture:**
|
|
248
|
-
- **New screens**: Screenshot of the new UI
|
|
249
|
-
- **Modified screens**: Before AND after screenshots
|
|
250
|
-
- **Design implementation**: Screenshot showing Figma design match
|
|
251
|
-
|
|
252
|
-
**IMPORTANT**: Always include uploaded image URLs in PR description. This provides visual context for reviewers and documents the change.
|
|
253
|
-
|
|
254
|
-
3. **Create Pull Request**
|
|
255
|
-
|
|
256
|
-
```bash
|
|
257
|
-
git push -u origin feature-branch-name
|
|
258
|
-
|
|
259
|
-
gh pr create --title "Feature: [Description]" --body "$(cat <<'EOF'
|
|
260
|
-
## Summary
|
|
261
|
-
- What was built
|
|
262
|
-
- Why it was needed
|
|
263
|
-
- Key decisions made
|
|
264
|
-
|
|
265
|
-
## Testing
|
|
266
|
-
- Tests added/modified
|
|
267
|
-
- Manual testing performed
|
|
268
|
-
|
|
269
|
-
## Post-Deploy Monitoring & Validation
|
|
270
|
-
- **What to monitor/search**
|
|
271
|
-
- Logs:
|
|
272
|
-
- Metrics/Dashboards:
|
|
273
|
-
- **Validation checks (queries/commands)**
|
|
274
|
-
- `command or query here`
|
|
275
|
-
- **Expected healthy behavior**
|
|
276
|
-
- Expected signal(s)
|
|
277
|
-
- **Failure signal(s) / rollback trigger**
|
|
278
|
-
- Trigger + immediate action
|
|
279
|
-
- **Validation window & owner**
|
|
280
|
-
- Window:
|
|
281
|
-
- Owner:
|
|
282
|
-
- **If no operational impact**
|
|
283
|
-
- `No additional operational monitoring required: <reason>`
|
|
284
|
-
|
|
285
|
-
## Before / After Screenshots
|
|
286
|
-
| Before | After |
|
|
287
|
-
|--------|-------|
|
|
288
|
-
|  |  |
|
|
289
|
-
|
|
290
|
-
## Figma Design
|
|
291
|
-
[Link if applicable]
|
|
292
|
-
|
|
293
|
-
---
|
|
294
|
-
|
|
295
|
-
[](https://github.com/EveryInc/compound-engineering-plugin) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
|
296
|
-
EOF
|
|
297
|
-
)"
|
|
298
|
-
```
|
|
299
|
-
|
|
300
|
-
4. **Update Plan Status**
|
|
301
|
-
|
|
302
|
-
If the input document has YAML frontmatter with a `status` field, update it to `completed`:
|
|
303
|
-
```
|
|
304
|
-
status: active → status: completed
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
5. **Notify User**
|
|
308
|
-
- Summarize what was completed
|
|
309
|
-
- Link to PR
|
|
310
|
-
- Note any follow-up work needed
|
|
311
|
-
- Suggest next steps if applicable
|
|
312
|
-
|
|
313
|
-
---
|
|
314
|
-
|
|
315
|
-
## Swarm Mode (Optional)
|
|
316
|
-
|
|
317
|
-
For complex plans with multiple independent workstreams, enable swarm mode for parallel execution with coordinated agents.
|
|
318
|
-
|
|
319
|
-
### When to Use Swarm Mode
|
|
320
|
-
|
|
321
|
-
| Use Swarm Mode when... | Use Standard Mode when... |
|
|
322
|
-
|------------------------|---------------------------|
|
|
323
|
-
| Plan has 5+ independent tasks | Plan is linear/sequential |
|
|
324
|
-
| Multiple specialists needed (review + test + implement) | Single-focus work |
|
|
325
|
-
| Want maximum parallelism | Simpler mental model preferred |
|
|
326
|
-
| Large feature with clear phases | Small feature or bug fix |
|
|
327
|
-
|
|
328
|
-
### Enabling Swarm Mode
|
|
329
|
-
|
|
330
|
-
To trigger swarm execution, say:
|
|
331
|
-
|
|
332
|
-
> "Make a Task list and launch an army of agent swarm subagents to build the plan"
|
|
333
|
-
|
|
334
|
-
Or explicitly request: "Use swarm mode for this work"
|
|
335
|
-
|
|
336
|
-
### Swarm Workflow
|
|
337
|
-
|
|
338
|
-
When swarm mode is enabled, the workflow changes:
|
|
339
|
-
|
|
340
|
-
1. **Create Team**
|
|
341
|
-
```
|
|
342
|
-
Teammate({ operation: "spawnTeam", team_name: "work-{timestamp}" })
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
2. **Create Task List with Dependencies**
|
|
346
|
-
- Parse plan into TaskCreate items
|
|
347
|
-
- Set up blockedBy relationships for sequential dependencies
|
|
348
|
-
- Independent tasks have no blockers (can run in parallel)
|
|
349
|
-
|
|
350
|
-
3. **Spawn Specialized Teammates**
|
|
351
|
-
```
|
|
352
|
-
Task({
|
|
353
|
-
team_name: "work-{timestamp}",
|
|
354
|
-
name: "implementer",
|
|
355
|
-
subagent_type: "general-purpose",
|
|
356
|
-
prompt: "Claim implementation tasks, execute, mark complete",
|
|
357
|
-
run_in_background: true
|
|
358
|
-
})
|
|
359
|
-
|
|
360
|
-
Task({
|
|
361
|
-
team_name: "work-{timestamp}",
|
|
362
|
-
name: "tester",
|
|
363
|
-
subagent_type: "general-purpose",
|
|
364
|
-
prompt: "Claim testing tasks, run tests, mark complete",
|
|
365
|
-
run_in_background: true
|
|
366
|
-
})
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
4. **Coordinate and Monitor**
|
|
370
|
-
- Team lead monitors task completion
|
|
371
|
-
- Spawn additional workers as phases unblock
|
|
372
|
-
- Handle plan approval if required
|
|
373
|
-
|
|
374
|
-
5. **Cleanup**
|
|
375
|
-
```
|
|
376
|
-
Teammate({ operation: "requestShutdown", target_agent_id: "implementer" })
|
|
377
|
-
Teammate({ operation: "requestShutdown", target_agent_id: "tester" })
|
|
378
|
-
Teammate({ operation: "cleanup" })
|
|
379
|
-
```
|
|
380
|
-
|
|
381
|
-
See the `orchestrating-swarms` skill for detailed swarm patterns and best practices.
|
|
382
|
-
|
|
383
|
-
---
|
|
384
|
-
|
|
385
|
-
## Key Principles
|
|
386
|
-
|
|
387
|
-
### Start Fast, Execute Faster
|
|
388
|
-
|
|
389
|
-
- Get clarification once at the start, then execute
|
|
390
|
-
- Don't wait for perfect understanding - ask questions and move
|
|
391
|
-
- The goal is to **finish the feature**, not create perfect process
|
|
392
|
-
|
|
393
|
-
### The Plan is Your Guide
|
|
394
|
-
|
|
395
|
-
- Work documents should reference similar code and patterns
|
|
396
|
-
- Load those references and follow them
|
|
397
|
-
- Don't reinvent - match what exists
|
|
398
|
-
|
|
399
|
-
### Test As You Go
|
|
400
|
-
|
|
401
|
-
- Run tests after each change, not at the end
|
|
402
|
-
- Fix failures immediately
|
|
403
|
-
- Continuous testing prevents big surprises
|
|
404
|
-
|
|
405
|
-
### Quality is Built In
|
|
406
|
-
|
|
407
|
-
- Follow existing patterns
|
|
408
|
-
- Write tests for new code
|
|
409
|
-
- Run linting before pushing
|
|
410
|
-
- Use reviewer agents for complex/risky changes only
|
|
411
|
-
|
|
412
|
-
### Ship Complete Features
|
|
413
|
-
|
|
414
|
-
- Mark all tasks completed before moving on
|
|
415
|
-
- Don't leave features 80% done
|
|
416
|
-
- A finished feature that ships beats a perfect feature that doesn't
|
|
417
|
-
|
|
418
|
-
## Quality Checklist
|
|
419
|
-
|
|
420
|
-
Before creating PR, verify:
|
|
421
|
-
|
|
422
|
-
- [ ] All clarifying questions asked and answered
|
|
423
|
-
- [ ] All TodoWrite tasks marked completed
|
|
424
|
-
- [ ] Tests pass (run project's test command)
|
|
425
|
-
- [ ] Linting passes (use linting-agent)
|
|
426
|
-
- [ ] Code follows existing patterns
|
|
427
|
-
- [ ] Figma designs match implementation (if applicable)
|
|
428
|
-
- [ ] Before/after screenshots captured and uploaded (for UI changes)
|
|
429
|
-
- [ ] Commit messages follow conventional format
|
|
430
|
-
- [ ] PR description includes Post-Deploy Monitoring & Validation section (or explicit no-impact rationale)
|
|
431
|
-
- [ ] PR description includes summary, testing notes, and screenshots
|
|
432
|
-
- [ ] PR description includes Compound Engineered badge
|
|
433
|
-
|
|
434
|
-
## When to Use Reviewer Agents
|
|
435
|
-
|
|
436
|
-
**Don't use by default.** Use reviewer agents only when:
|
|
437
|
-
|
|
438
|
-
- Large refactor affecting many files (10+)
|
|
439
|
-
- Security-sensitive changes (authentication, permissions, data access)
|
|
440
|
-
- Performance-critical code paths
|
|
441
|
-
- Complex algorithms or business logic
|
|
442
|
-
- User explicitly requests thorough review
|
|
443
|
-
|
|
444
|
-
For most features: tests + linting + following patterns is sufficient.
|
|
445
|
-
|
|
446
|
-
## Common Pitfalls to Avoid
|
|
447
|
-
|
|
448
|
-
- **Analysis paralysis** - Don't overthink, read the plan and execute
|
|
449
|
-
- **Skipping clarifying questions** - Ask now, not after building wrong thing
|
|
450
|
-
- **Ignoring plan references** - The plan has links for a reason
|
|
451
|
-
- **Testing at the end** - Test continuously or suffer later
|
|
452
|
-
- **Forgetting TodoWrite** - Track progress or lose track of what's done
|
|
453
|
-
- **80% done syndrome** - Finish the feature, don't move on early
|
|
454
|
-
- **Over-reviewing simple changes** - Save reviewer agents for complex work
|
|
10
|
+
/ce:work $ARGUMENTS
|
|
@@ -131,7 +131,7 @@ topic: <kebab-case-topic>
|
|
|
131
131
|
- [Any unresolved questions for the planning phase]
|
|
132
132
|
|
|
133
133
|
## Next Steps
|
|
134
|
-
→ `/
|
|
134
|
+
→ `/ce:plan` for implementation details
|
|
135
135
|
```
|
|
136
136
|
|
|
137
137
|
**Output Location:** `docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md`
|
|
@@ -140,7 +140,7 @@ topic: <kebab-case-topic>
|
|
|
140
140
|
|
|
141
141
|
Present clear options for what to do next:
|
|
142
142
|
|
|
143
|
-
1. **Proceed to planning** → Run `/
|
|
143
|
+
1. **Proceed to planning** → Run `/ce:plan`
|
|
144
144
|
2. **Refine further** → Continue exploring the design
|
|
145
145
|
3. **Done for now** → User will return later
|
|
146
146
|
|
|
@@ -187,4 +187,4 @@ Planning answers **HOW** to build it:
|
|
|
187
187
|
- Technical details and code patterns
|
|
188
188
|
- Testing strategy and verification
|
|
189
189
|
|
|
190
|
-
When brainstorm output exists, `/
|
|
190
|
+
When brainstorm output exists, `/ce:plan` should detect it and use it as input, skipping its own idea refinement phase.
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Workflow: Add a Workflow to Existing Skill
|
|
2
2
|
|
|
3
|
+
## Interaction Method
|
|
4
|
+
|
|
5
|
+
If `AskUserQuestion` is available, use it for all prompts below.
|
|
6
|
+
|
|
7
|
+
If not, present each question as a numbered list and wait for a reply before proceeding to the next step. Never skip or auto-configure.
|
|
8
|
+
|
|
3
9
|
<required_reading>
|
|
4
10
|
**Read these reference files NOW:**
|
|
5
11
|
1. references/recommended-structure.md
|
package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-new-skill.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Workflow: Create a New Skill
|
|
2
2
|
|
|
3
|
+
## Interaction Method
|
|
4
|
+
|
|
5
|
+
If `AskUserQuestion` is available, use it for all prompts below.
|
|
6
|
+
|
|
7
|
+
If not, present each question as a numbered list and wait for a reply before proceeding to the next step. For multiSelect questions, accept comma-separated numbers (e.g. `1, 3`). Never skip or auto-configure.
|
|
8
|
+
|
|
3
9
|
<required_reading>
|
|
4
10
|
**Read these reference files NOW:**
|
|
5
11
|
1. references/recommended-structure.md
|
|
@@ -36,7 +36,7 @@ Score the document against these criteria:
|
|
|
36
36
|
| **Specificity** | Concrete enough for next step (brainstorm → can plan, plan → can implement) |
|
|
37
37
|
| **YAGNI** | No hypothetical features, simplest approach chosen |
|
|
38
38
|
|
|
39
|
-
If invoked within a workflow (after `/
|
|
39
|
+
If invoked within a workflow (after `/ce:brainstorm` or `/ce:plan`), also check:
|
|
40
40
|
- **User intent fidelity** — Document reflects what was discussed, assumptions validated
|
|
41
41
|
|
|
42
42
|
## Step 4: Identify the Critical Improvement
|
|
@@ -185,7 +185,7 @@ Work logs serve as:
|
|
|
185
185
|
|
|
186
186
|
| Trigger | Flow | Tool |
|
|
187
187
|
|---------|------|------|
|
|
188
|
-
| Code review | `/
|
|
188
|
+
| Code review | `/ce:review` → Findings → `/triage` → Todos | Review agent + skill |
|
|
189
189
|
| PR comments | `/resolve_pr_parallel` → Individual fixes → Todos | gh CLI + skill |
|
|
190
190
|
| Code TODOs | `/resolve_todo_parallel` → Fixes + Complex todos | Agent + skill |
|
|
191
191
|
| Planning | Brainstorm → Create todo → Work → Complete | Skill |
|
|
@@ -38,8 +38,8 @@ git worktree add .worktrees/feature-name -b feature-name main
|
|
|
38
38
|
|
|
39
39
|
Use this skill in these scenarios:
|
|
40
40
|
|
|
41
|
-
1. **Code Review (`/
|
|
42
|
-
2. **Feature Work (`/
|
|
41
|
+
1. **Code Review (`/ce:review`)**: If NOT already on the target branch (PR branch or requested branch), offer worktree for isolated review
|
|
42
|
+
2. **Feature Work (`/ce:work`)**: Always ask if user wants parallel worktree or live branch work
|
|
43
43
|
3. **Parallel Development**: When working on multiple features simultaneously
|
|
44
44
|
4. **Cleanup**: After completing work in a worktree
|
|
45
45
|
|
|
@@ -47,7 +47,7 @@ Use this skill in these scenarios:
|
|
|
47
47
|
|
|
48
48
|
### In Claude Code Workflows
|
|
49
49
|
|
|
50
|
-
The skill is automatically called from `/
|
|
50
|
+
The skill is automatically called from `/ce:review` and `/ce:work` commands:
|
|
51
51
|
|
|
52
52
|
```
|
|
53
53
|
# For review: offers worktree if not on PR branch
|
|
@@ -204,7 +204,7 @@ bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh clean
|
|
|
204
204
|
|
|
205
205
|
## Integration with Workflows
|
|
206
206
|
|
|
207
|
-
### `/
|
|
207
|
+
### `/ce:review`
|
|
208
208
|
|
|
209
209
|
Instead of always creating a worktree:
|
|
210
210
|
|
|
@@ -217,7 +217,7 @@ Instead of always creating a worktree:
|
|
|
217
217
|
- no → proceed with PR diff on current branch
|
|
218
218
|
```
|
|
219
219
|
|
|
220
|
-
### `/
|
|
220
|
+
### `/ce:work`
|
|
221
221
|
|
|
222
222
|
Always offer choice:
|
|
223
223
|
|