@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,202 @@
1
+ ---
2
+ name: workflows:compound
3
+ description: Document a recently solved problem to compound your team's knowledge
4
+ argument-hint: "[optional: brief context about the fix]"
5
+ ---
6
+
7
+ # /compound
8
+
9
+ Coordinate multiple subagents working in parallel to document a recently solved problem.
10
+
11
+ ## Purpose
12
+
13
+ Captures problem solutions while context is fresh, creating structured documentation in `docs/solutions/` with YAML frontmatter for searchability and future reference. Uses parallel subagents for maximum efficiency.
14
+
15
+ **Why "compound"?** Each documented solution compounds your team's knowledge. The first time you solve a problem takes research. Document it, and the next occurrence takes minutes. Knowledge compounds.
16
+
17
+ ## Usage
18
+
19
+ ```bash
20
+ /workflows:compound # Document the most recent fix
21
+ /workflows:compound [brief context] # Provide additional context hint
22
+ ```
23
+
24
+ ## Execution Strategy: Parallel Subagents
25
+
26
+ This command launches multiple specialized subagents IN PARALLEL to maximize efficiency:
27
+
28
+ ### 1. **Context Analyzer** (Parallel)
29
+ - Extracts conversation history
30
+ - Identifies problem type, component, symptoms
31
+ - Validates against CORA schema
32
+ - Returns: YAML frontmatter skeleton
33
+
34
+ ### 2. **Solution Extractor** (Parallel)
35
+ - Analyzes all investigation steps
36
+ - Identifies root cause
37
+ - Extracts working solution with code examples
38
+ - Returns: Solution content block
39
+
40
+ ### 3. **Related Docs Finder** (Parallel)
41
+ - Searches `docs/solutions/` for related documentation
42
+ - Identifies cross-references and links
43
+ - Finds related GitHub issues
44
+ - Returns: Links and relationships
45
+
46
+ ### 4. **Prevention Strategist** (Parallel)
47
+ - Develops prevention strategies
48
+ - Creates best practices guidance
49
+ - Generates test cases if applicable
50
+ - Returns: Prevention/testing content
51
+
52
+ ### 5. **Category Classifier** (Parallel)
53
+ - Determines optimal `docs/solutions/` category
54
+ - Validates category against schema
55
+ - Suggests filename based on slug
56
+ - Returns: Final path and filename
57
+
58
+ ### 6. **Documentation Writer** (Parallel)
59
+ - Assembles complete markdown file
60
+ - Validates YAML frontmatter
61
+ - Formats content for readability
62
+ - Creates the file in correct location
63
+
64
+ ### 7. **Optional: Specialized Agent Invocation** (Post-Documentation)
65
+ Based on problem type detected, automatically invoke applicable agents:
66
+ - **performance_issue** → `performance-oracle`
67
+ - **security_issue** → `security-sentinel`
68
+ - **database_issue** → `data-integrity-guardian`
69
+ - **test_failure** → `cora-test-reviewer`
70
+ - Any code-heavy issue → `kieran-rails-reviewer` + `code-simplicity-reviewer`
71
+
72
+ ## What It Captures
73
+
74
+ - **Problem symptom**: Exact error messages, observable behavior
75
+ - **Investigation steps tried**: What didn't work and why
76
+ - **Root cause analysis**: Technical explanation
77
+ - **Working solution**: Step-by-step fix with code examples
78
+ - **Prevention strategies**: How to avoid in future
79
+ - **Cross-references**: Links to related issues and docs
80
+
81
+ ## Preconditions
82
+
83
+ <preconditions enforcement="advisory">
84
+ <check condition="problem_solved">
85
+ Problem has been solved (not in-progress)
86
+ </check>
87
+ <check condition="solution_verified">
88
+ Solution has been verified working
89
+ </check>
90
+ <check condition="non_trivial">
91
+ Non-trivial problem (not simple typo or obvious error)
92
+ </check>
93
+ </preconditions>
94
+
95
+ ## What It Creates
96
+
97
+ **Organized documentation:**
98
+
99
+ - File: `docs/solutions/[category]/[filename].md`
100
+
101
+ **Categories auto-detected from problem:**
102
+
103
+ - build-errors/
104
+ - test-failures/
105
+ - runtime-errors/
106
+ - performance-issues/
107
+ - database-issues/
108
+ - security-issues/
109
+ - ui-bugs/
110
+ - integration-issues/
111
+ - logic-errors/
112
+
113
+ ## Success Output
114
+
115
+ ```
116
+ ✓ Parallel documentation generation complete
117
+
118
+ Primary Subagent Results:
119
+ ✓ Context Analyzer: Identified performance_issue in brief_system
120
+ ✓ Solution Extractor: Extracted 3 code fixes
121
+ ✓ Related Docs Finder: Found 2 related issues
122
+ ✓ Prevention Strategist: Generated test cases
123
+ ✓ Category Classifier: docs/solutions/performance-issues/
124
+ ✓ Documentation Writer: Created complete markdown
125
+
126
+ Specialized Agent Reviews (Auto-Triggered):
127
+ ✓ performance-oracle: Validated query optimization approach
128
+ ✓ kieran-rails-reviewer: Code examples meet Rails standards
129
+ ✓ code-simplicity-reviewer: Solution is appropriately minimal
130
+ ✓ every-style-editor: Documentation style verified
131
+
132
+ File created:
133
+ - docs/solutions/performance-issues/n-plus-one-brief-generation.md
134
+
135
+ This documentation will be searchable for future reference when similar
136
+ issues occur in the Email Processing or Brief System modules.
137
+
138
+ What's next?
139
+ 1. Continue workflow (recommended)
140
+ 2. Link related documentation
141
+ 3. Update other references
142
+ 4. View documentation
143
+ 5. Other
144
+ ```
145
+
146
+ ## The Compounding Philosophy
147
+
148
+ This creates a compounding knowledge system:
149
+
150
+ 1. First time you solve "N+1 query in brief generation" → Research (30 min)
151
+ 2. Document the solution → docs/solutions/performance-issues/n-plus-one-briefs.md (5 min)
152
+ 3. Next time similar issue occurs → Quick lookup (2 min)
153
+ 4. Knowledge compounds → Team gets smarter
154
+
155
+ The feedback loop:
156
+
157
+ ```
158
+ Build → Test → Find Issue → Research → Improve → Document → Validate → Deploy
159
+ ↑ ↓
160
+ └──────────────────────────────────────────────────────────────────────┘
161
+ ```
162
+
163
+ **Each unit of engineering work should make subsequent units of work easier—not harder.**
164
+
165
+ ## Auto-Invoke
166
+
167
+ <auto_invoke> <trigger_phrases> - "that worked" - "it's fixed" - "working now" - "problem solved" </trigger_phrases>
168
+
169
+ <manual_override> Use /workflows:compound [context] to document immediately without waiting for auto-detection. </manual_override> </auto_invoke>
170
+
171
+ ## Routes To
172
+
173
+ `compound-docs` skill
174
+
175
+ ## Applicable Specialized Agents
176
+
177
+ Based on problem type, these agents can enhance documentation:
178
+
179
+ ### Code Quality & Review
180
+ - **kieran-rails-reviewer**: Reviews code examples for Rails best practices
181
+ - **code-simplicity-reviewer**: Ensures solution code is minimal and clear
182
+ - **pattern-recognition-specialist**: Identifies anti-patterns or repeating issues
183
+
184
+ ### Specific Domain Experts
185
+ - **performance-oracle**: Analyzes performance_issue category solutions
186
+ - **security-sentinel**: Reviews security_issue solutions for vulnerabilities
187
+ - **cora-test-reviewer**: Creates test cases for prevention strategies
188
+ - **data-integrity-guardian**: Reviews database_issue migrations and queries
189
+
190
+ ### Enhancement & Documentation
191
+ - **best-practices-researcher**: Enriches solution with industry best practices
192
+ - **every-style-editor**: Reviews documentation style and clarity
193
+ - **framework-docs-researcher**: Links to Rails/gem documentation references
194
+
195
+ ### When to Invoke
196
+ - **Auto-triggered** (optional): Agents can run post-documentation for enhancement
197
+ - **Manual trigger**: User can invoke agents after /workflows:compound completes for deeper review
198
+
199
+ ## Related Commands
200
+
201
+ - `/research [topic]` - Deep investigation (searches docs/solutions/ for patterns)
202
+ - `/workflows:plan` - Planning workflow (references documented solutions)