@fro.bot/systematic 1.0.0

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 (73) hide show
  1. package/README.md +158 -0
  2. package/agents/research/framework-docs-researcher.md +19 -0
  3. package/agents/review/architecture-strategist.md +23 -0
  4. package/agents/review/code-simplicity-reviewer.md +30 -0
  5. package/agents/review/pattern-recognition-specialist.md +24 -0
  6. package/agents/review/performance-oracle.md +25 -0
  7. package/agents/review/security-sentinel.md +25 -0
  8. package/commands/agent-native-audit.md +277 -0
  9. package/commands/create-agent-skill.md +8 -0
  10. package/commands/deepen-plan.md +546 -0
  11. package/commands/lfg.md +19 -0
  12. package/commands/workflows/brainstorm.md +115 -0
  13. package/commands/workflows/compound.md +202 -0
  14. package/commands/workflows/plan.md +551 -0
  15. package/commands/workflows/review.md +514 -0
  16. package/commands/workflows/work.md +363 -0
  17. package/dist/cli.js +360 -0
  18. package/dist/index-v8dhd5s2.js +194 -0
  19. package/dist/index.js +297 -0
  20. package/package.json +69 -0
  21. package/skills/agent-browser/SKILL.md +223 -0
  22. package/skills/agent-native-architecture/SKILL.md +435 -0
  23. package/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
  24. package/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
  25. package/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
  26. package/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
  27. package/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
  28. package/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
  29. package/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
  30. package/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
  31. package/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
  32. package/skills/agent-native-architecture/references/product-implications.md +443 -0
  33. package/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
  34. package/skills/agent-native-architecture/references/self-modification.md +269 -0
  35. package/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
  36. package/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
  37. package/skills/brainstorming/SKILL.md +190 -0
  38. package/skills/compound-docs/SKILL.md +510 -0
  39. package/skills/compound-docs/assets/critical-pattern-template.md +34 -0
  40. package/skills/compound-docs/assets/resolution-template.md +93 -0
  41. package/skills/compound-docs/references/yaml-schema.md +65 -0
  42. package/skills/compound-docs/schema.yaml +176 -0
  43. package/skills/create-agent-skills/SKILL.md +299 -0
  44. package/skills/create-agent-skills/references/api-security.md +226 -0
  45. package/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
  46. package/skills/create-agent-skills/references/best-practices.md +404 -0
  47. package/skills/create-agent-skills/references/common-patterns.md +595 -0
  48. package/skills/create-agent-skills/references/core-principles.md +437 -0
  49. package/skills/create-agent-skills/references/executable-code.md +175 -0
  50. package/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
  51. package/skills/create-agent-skills/references/official-spec.md +185 -0
  52. package/skills/create-agent-skills/references/recommended-structure.md +168 -0
  53. package/skills/create-agent-skills/references/skill-structure.md +372 -0
  54. package/skills/create-agent-skills/references/using-scripts.md +113 -0
  55. package/skills/create-agent-skills/references/using-templates.md +112 -0
  56. package/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
  57. package/skills/create-agent-skills/templates/router-skill.md +73 -0
  58. package/skills/create-agent-skills/templates/simple-skill.md +33 -0
  59. package/skills/create-agent-skills/workflows/add-reference.md +96 -0
  60. package/skills/create-agent-skills/workflows/add-script.md +93 -0
  61. package/skills/create-agent-skills/workflows/add-template.md +74 -0
  62. package/skills/create-agent-skills/workflows/add-workflow.md +120 -0
  63. package/skills/create-agent-skills/workflows/audit-skill.md +138 -0
  64. package/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
  65. package/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
  66. package/skills/create-agent-skills/workflows/get-guidance.md +121 -0
  67. package/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
  68. package/skills/create-agent-skills/workflows/verify-skill.md +204 -0
  69. package/skills/file-todos/SKILL.md +251 -0
  70. package/skills/file-todos/assets/todo-template.md +155 -0
  71. package/skills/git-worktree/SKILL.md +302 -0
  72. package/skills/git-worktree/scripts/worktree-manager.sh +345 -0
  73. package/skills/using-systematic/SKILL.md +94 -0
@@ -0,0 +1,363 @@
1
+ ---
2
+ name: workflows: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 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:
179
+
180
+ - **code-simplicity-reviewer**: Check for unnecessary complexity
181
+ - **kieran-rails-reviewer**: Verify Rails conventions (Rails projects)
182
+ - **performance-oracle**: Check for performance issues
183
+ - **security-sentinel**: Scan for security vulnerabilities
184
+ - **cora-test-reviewer**: Review test quality (CORA projects)
185
+
186
+ Run reviewers in parallel with Task tool:
187
+
188
+ ```
189
+ Task(code-simplicity-reviewer): "Review changes for simplicity"
190
+ Task(kieran-rails-reviewer): "Check Rails conventions"
191
+ ```
192
+
193
+ Present findings to user and address critical issues.
194
+
195
+ 3. **Final Validation**
196
+ - All TodoWrite tasks marked completed
197
+ - All tests pass
198
+ - Linting passes
199
+ - Code follows existing patterns
200
+ - Figma designs match (if applicable)
201
+ - No console errors or warnings
202
+
203
+ ### Phase 4: Ship It
204
+
205
+ 1. **Create Commit**
206
+
207
+ ```bash
208
+ git add .
209
+ git status # Review what's being committed
210
+ git diff --staged # Check the changes
211
+
212
+ # Commit with conventional format
213
+ git commit -m "$(cat <<'EOF'
214
+ feat(scope): description of what and why
215
+
216
+ Brief explanation if needed.
217
+
218
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
219
+
220
+ Co-Authored-By: Claude <noreply@anthropic.com>
221
+ EOF
222
+ )"
223
+ ```
224
+
225
+ 2. **Capture and Upload Screenshots for UI Changes** (REQUIRED for any UI work)
226
+
227
+ For **any** design changes, new views, or UI modifications, you MUST capture and upload screenshots:
228
+
229
+ **Step 1: Start dev server** (if not running)
230
+ ```bash
231
+ bin/dev # Run in background
232
+ ```
233
+
234
+ **Step 2: Capture screenshots with agent-browser CLI**
235
+ ```bash
236
+ agent-browser open http://localhost:3000/[route]
237
+ agent-browser snapshot -i
238
+ agent-browser screenshot output.png
239
+ ```
240
+ See the `agent-browser` skill for detailed usage.
241
+
242
+ **Step 3: Upload using imgup skill**
243
+ ```bash
244
+ skill: imgup
245
+ # Then upload each screenshot:
246
+ imgup -h pixhost screenshot.png # pixhost works without API key
247
+ # Alternative hosts: catbox, imagebin, beeimg
248
+ ```
249
+
250
+ **What to capture:**
251
+ - **New screens**: Screenshot of the new UI
252
+ - **Modified screens**: Before AND after screenshots
253
+ - **Design implementation**: Screenshot showing Figma design match
254
+
255
+ **IMPORTANT**: Always include uploaded image URLs in PR description. This provides visual context for reviewers and documents the change.
256
+
257
+ 3. **Create Pull Request**
258
+
259
+ ```bash
260
+ git push -u origin feature-branch-name
261
+
262
+ gh pr create --title "Feature: [Description]" --body "$(cat <<'EOF'
263
+ ## Summary
264
+ - What was built
265
+ - Why it was needed
266
+ - Key decisions made
267
+
268
+ ## Testing
269
+ - Tests added/modified
270
+ - Manual testing performed
271
+
272
+ ## Before / After Screenshots
273
+ | Before | After |
274
+ |--------|-------|
275
+ | ![before](URL) | ![after](URL) |
276
+
277
+ ## Figma Design
278
+ [Link if applicable]
279
+
280
+ ---
281
+
282
+ [![Compound Engineered](https://img.shields.io/badge/Compound-Engineered-6366f1)](https://github.com/EveryInc/compound-engineering-plugin) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
283
+ EOF
284
+ )"
285
+ ```
286
+
287
+ 4. **Notify User**
288
+ - Summarize what was completed
289
+ - Link to PR
290
+ - Note any follow-up work needed
291
+ - Suggest next steps if applicable
292
+
293
+ ---
294
+
295
+ ## Key Principles
296
+
297
+ ### Start Fast, Execute Faster
298
+
299
+ - Get clarification once at the start, then execute
300
+ - Don't wait for perfect understanding - ask questions and move
301
+ - The goal is to **finish the feature**, not create perfect process
302
+
303
+ ### The Plan is Your Guide
304
+
305
+ - Work documents should reference similar code and patterns
306
+ - Load those references and follow them
307
+ - Don't reinvent - match what exists
308
+
309
+ ### Test As You Go
310
+
311
+ - Run tests after each change, not at the end
312
+ - Fix failures immediately
313
+ - Continuous testing prevents big surprises
314
+
315
+ ### Quality is Built In
316
+
317
+ - Follow existing patterns
318
+ - Write tests for new code
319
+ - Run linting before pushing
320
+ - Use reviewer agents for complex/risky changes only
321
+
322
+ ### Ship Complete Features
323
+
324
+ - Mark all tasks completed before moving on
325
+ - Don't leave features 80% done
326
+ - A finished feature that ships beats a perfect feature that doesn't
327
+
328
+ ## Quality Checklist
329
+
330
+ Before creating PR, verify:
331
+
332
+ - [ ] All clarifying questions asked and answered
333
+ - [ ] All TodoWrite tasks marked completed
334
+ - [ ] Tests pass (run project's test command)
335
+ - [ ] Linting passes (use linting-agent)
336
+ - [ ] Code follows existing patterns
337
+ - [ ] Figma designs match implementation (if applicable)
338
+ - [ ] Before/after screenshots captured and uploaded (for UI changes)
339
+ - [ ] Commit messages follow conventional format
340
+ - [ ] PR description includes summary, testing notes, and screenshots
341
+ - [ ] PR description includes Compound Engineered badge
342
+
343
+ ## When to Use Reviewer Agents
344
+
345
+ **Don't use by default.** Use reviewer agents only when:
346
+
347
+ - Large refactor affecting many files (10+)
348
+ - Security-sensitive changes (authentication, permissions, data access)
349
+ - Performance-critical code paths
350
+ - Complex algorithms or business logic
351
+ - User explicitly requests thorough review
352
+
353
+ For most features: tests + linting + following patterns is sufficient.
354
+
355
+ ## Common Pitfalls to Avoid
356
+
357
+ - **Analysis paralysis** - Don't overthink, read the plan and execute
358
+ - **Skipping clarifying questions** - Ask now, not after building wrong thing
359
+ - **Ignoring plan references** - The plan has links for a reason
360
+ - **Testing at the end** - Test continuously or suffer later
361
+ - **Forgetting TodoWrite** - Track progress or lose track of what's done
362
+ - **80% done syndrome** - Finish the feature, don't move on early
363
+ - **Over-reviewing simple changes** - Save reviewer agents for complex work