@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,250 @@
1
+ <overview>
2
+ How to write system prompts for prompt-native agents. The system prompt is where features live—it defines behavior, judgment criteria, and decision-making without encoding them in code.
3
+ </overview>
4
+
5
+ <principle name="features-in-prompts">
6
+ ## Features Are Prompt Sections
7
+
8
+ Each feature is a section of the system prompt that tells the agent how to behave.
9
+
10
+ **Traditional approach:** Feature = function in codebase
11
+ ```typescript
12
+ function processFeedback(message) {
13
+ const category = categorize(message);
14
+ const priority = calculatePriority(message);
15
+ await store(message, category, priority);
16
+ if (priority > 3) await notify();
17
+ }
18
+ ```
19
+
20
+ **Prompt-native approach:** Feature = section in system prompt
21
+ ```markdown
22
+ ## Feedback Processing
23
+
24
+ When someone shares feedback:
25
+ 1. Read the message to understand what they're saying
26
+ 2. Rate importance 1-5:
27
+ - 5 (Critical): Blocking issues, data loss, security
28
+ - 4 (High): Detailed bug reports, significant UX problems
29
+ - 3 (Medium): General suggestions, minor issues
30
+ - 2 (Low): Cosmetic issues, edge cases
31
+ - 1 (Minimal): Off-topic, duplicates
32
+ 3. Store using feedback.store_feedback
33
+ 4. If importance >= 4, let the channel know you're tracking it
34
+
35
+ Use your judgment. Context matters.
36
+ ```
37
+ </principle>
38
+
39
+ <structure>
40
+ ## System Prompt Structure
41
+
42
+ A well-structured prompt-native system prompt:
43
+
44
+ ```markdown
45
+ # Identity
46
+
47
+ You are [Name], [brief identity statement].
48
+
49
+ ## Core Behavior
50
+
51
+ [What you always do, regardless of specific request]
52
+
53
+ ## Feature: [Feature Name]
54
+
55
+ [When to trigger]
56
+ [What to do]
57
+ [How to decide edge cases]
58
+
59
+ ## Feature: [Another Feature]
60
+
61
+ [...]
62
+
63
+ ## Tool Usage
64
+
65
+ [Guidance on when/how to use available tools]
66
+
67
+ ## Tone and Style
68
+
69
+ [Communication guidelines]
70
+
71
+ ## What NOT to Do
72
+
73
+ [Explicit boundaries]
74
+ ```
75
+ </structure>
76
+
77
+ <principle name="guide-not-micromanage">
78
+ ## Guide, Don't Micromanage
79
+
80
+ Tell the agent what to achieve, not exactly how to do it.
81
+
82
+ **Micromanaging (bad):**
83
+ ```markdown
84
+ When creating a summary:
85
+ 1. Use exactly 3 bullet points
86
+ 2. Each bullet under 20 words
87
+ 3. Use em-dashes for sub-points
88
+ 4. Bold the first word of each bullet
89
+ 5. End with a colon if there are sub-points
90
+ ```
91
+
92
+ **Guiding (good):**
93
+ ```markdown
94
+ When creating summaries:
95
+ - Be concise but complete
96
+ - Highlight the most important points
97
+ - Use your judgment about format
98
+
99
+ The goal is clarity, not consistency.
100
+ ```
101
+
102
+ Trust the agent's intelligence. It knows how to communicate.
103
+ </principle>
104
+
105
+ <principle name="judgment-criteria">
106
+ ## Define Judgment Criteria, Not Rules
107
+
108
+ Instead of rules, provide criteria for making decisions.
109
+
110
+ **Rules (rigid):**
111
+ ```markdown
112
+ If the message contains "bug", set importance to 4.
113
+ If the message contains "crash", set importance to 5.
114
+ ```
115
+
116
+ **Judgment criteria (flexible):**
117
+ ```markdown
118
+ ## Importance Rating
119
+
120
+ Rate importance based on:
121
+ - **Impact**: How many users affected? How severe?
122
+ - **Urgency**: Is this blocking? Time-sensitive?
123
+ - **Actionability**: Can we actually fix this?
124
+ - **Evidence**: Video/screenshots vs vague description
125
+
126
+ Examples:
127
+ - "App crashes when I tap submit" → 4-5 (critical, reproducible)
128
+ - "The button color seems off" → 2 (cosmetic, non-blocking)
129
+ - "Video walkthrough with 15 timestamped issues" → 5 (high-quality evidence)
130
+ ```
131
+ </principle>
132
+
133
+ <principle name="context-windows">
134
+ ## Work With Context Windows
135
+
136
+ The agent sees: system prompt + recent messages + tool results. Design for this.
137
+
138
+ **Use conversation history:**
139
+ ```markdown
140
+ ## Message Processing
141
+
142
+ When processing messages:
143
+ 1. Check if this relates to recent conversation
144
+ 2. If someone is continuing a previous thread, maintain context
145
+ 3. Don't ask questions you already have answers to
146
+ ```
147
+
148
+ **Acknowledge agent limitations:**
149
+ ```markdown
150
+ ## Memory Limitations
151
+
152
+ You don't persist memory between restarts. Use the memory server:
153
+ - Before responding, check memory.recall for relevant context
154
+ - After important decisions, use memory.store to remember
155
+ - Store conversation threads, not individual messages
156
+ ```
157
+ </principle>
158
+
159
+ <example name="feedback-bot">
160
+ ## Example: Complete System Prompt
161
+
162
+ ```markdown
163
+ # R2-C2 Feedback Bot
164
+
165
+ You are R2-C2, Every's feedback collection assistant. You monitor Discord for feedback about the Every Reader iOS app and organize it for the team.
166
+
167
+ ## Core Behavior
168
+
169
+ - Be warm and helpful, never robotic
170
+ - Acknowledge all feedback, even if brief
171
+ - Ask clarifying questions when feedback is vague
172
+ - Never argue with feedback—collect and organize it
173
+
174
+ ## Feedback Collection
175
+
176
+ When someone shares feedback:
177
+
178
+ 1. **Acknowledge** warmly: "Thanks for this!" or "Good catch!"
179
+ 2. **Clarify** if needed: "Can you tell me more about when this happens?"
180
+ 3. **Rate importance** 1-5:
181
+ - 5: Critical (crashes, data loss, security)
182
+ - 4: High (detailed reports, significant UX issues)
183
+ - 3: Medium (suggestions, minor bugs)
184
+ - 2: Low (cosmetic, edge cases)
185
+ - 1: Minimal (off-topic, duplicates)
186
+ 4. **Store** using feedback.store_feedback
187
+ 5. **Update site** if significant feedback came in
188
+
189
+ Video walkthroughs are gold—always rate them 4-5.
190
+
191
+ ## Site Management
192
+
193
+ You maintain a public feedback site. When feedback accumulates:
194
+
195
+ 1. Sync data to site/public/content/feedback.json
196
+ 2. Update status counts and organization
197
+ 3. Commit and push to trigger deploy
198
+
199
+ The site should look professional and be easy to scan.
200
+
201
+ ## Message Deduplication
202
+
203
+ Before processing any message:
204
+ 1. Check memory.recall(key: "processed_{messageId}")
205
+ 2. Skip if already processed
206
+ 3. After processing, store the key
207
+
208
+ ## Tone
209
+
210
+ - Casual and friendly
211
+ - Brief but warm
212
+ - Technical when discussing bugs
213
+ - Never defensive
214
+
215
+ ## Don't
216
+
217
+ - Don't promise fixes or timelines
218
+ - Don't share internal discussions
219
+ - Don't ignore feedback even if it seems minor
220
+ - Don't repeat yourself—vary acknowledgments
221
+ ```
222
+ </example>
223
+
224
+ <iteration>
225
+ ## Iterating on System Prompts
226
+
227
+ Prompt-native development means rapid iteration:
228
+
229
+ 1. **Observe** agent behavior in production
230
+ 2. **Identify** gaps: "It's not rating video feedback high enough"
231
+ 3. **Add guidance**: "Video walkthroughs are gold—always rate them 4-5"
232
+ 4. **Deploy** (just edit the prompt file)
233
+ 5. **Repeat**
234
+
235
+ No code changes. No recompilation. Just prose.
236
+ </iteration>
237
+
238
+ <checklist>
239
+ ## System Prompt Checklist
240
+
241
+ - [ ] Clear identity statement
242
+ - [ ] Core behaviors that always apply
243
+ - [ ] Features as separate sections
244
+ - [ ] Judgment criteria instead of rigid rules
245
+ - [ ] Examples for ambiguous cases
246
+ - [ ] Explicit boundaries (what NOT to do)
247
+ - [ ] Tone guidance
248
+ - [ ] Tool usage guidance (when to use each)
249
+ - [ ] Memory/context handling
250
+ </checklist>
@@ -0,0 +1,190 @@
1
+ ---
2
+ name: brainstorming
3
+ description: This skill should be used before implementing features, building components, or making changes. It guides exploring user intent, approaches, and design decisions before planning. Triggers on "let's brainstorm", "help me think through", "what should we build", "explore approaches", ambiguous feature requests, or when the user's request has multiple valid interpretations that need clarification.
4
+ ---
5
+
6
+ # Brainstorming
7
+
8
+ This skill provides detailed process knowledge for effective brainstorming sessions that clarify **WHAT** to build before diving into **HOW** to build it.
9
+
10
+ ## When to Use This Skill
11
+
12
+ Brainstorming is valuable when:
13
+ - Requirements are unclear or ambiguous
14
+ - Multiple approaches could solve the problem
15
+ - Trade-offs need to be explored with the user
16
+ - The user hasn't fully articulated what they want
17
+ - The feature scope needs refinement
18
+
19
+ Brainstorming can be skipped when:
20
+ - Requirements are explicit and detailed
21
+ - The user knows exactly what they want
22
+ - The task is a straightforward bug fix or well-defined change
23
+
24
+ ## Core Process
25
+
26
+ ### Phase 0: Assess Requirement Clarity
27
+
28
+ Before diving into questions, assess whether brainstorming is needed.
29
+
30
+ **Signals that requirements are clear:**
31
+ - User provided specific acceptance criteria
32
+ - User referenced existing patterns to follow
33
+ - User described exact behavior expected
34
+ - Scope is constrained and well-defined
35
+
36
+ **Signals that brainstorming is needed:**
37
+ - User used vague terms ("make it better", "add something like")
38
+ - Multiple reasonable interpretations exist
39
+ - Trade-offs haven't been discussed
40
+ - User seems unsure about the approach
41
+
42
+ If requirements are clear, suggest: "Your requirements seem clear. Consider proceeding directly to planning or implementation."
43
+
44
+ ### Phase 1: Understand the Idea
45
+
46
+ Ask questions **one at a time** to understand the user's intent. Avoid overwhelming with multiple questions.
47
+
48
+ **Question Techniques:**
49
+
50
+ 1. **Prefer multiple choice when natural options exist**
51
+ - Good: "Should the notification be: (a) email only, (b) in-app only, or (c) both?"
52
+ - Avoid: "How should users be notified?"
53
+
54
+ 2. **Start broad, then narrow**
55
+ - First: What is the core purpose?
56
+ - Then: Who are the users?
57
+ - Finally: What constraints exist?
58
+
59
+ 3. **Validate assumptions explicitly**
60
+ - "I'm assuming users will be logged in. Is that correct?"
61
+
62
+ 4. **Ask about success criteria early**
63
+ - "How will you know this feature is working well?"
64
+
65
+ **Key Topics to Explore:**
66
+
67
+ | Topic | Example Questions |
68
+ |-------|-------------------|
69
+ | Purpose | What problem does this solve? What's the motivation? |
70
+ | Users | Who uses this? What's their context? |
71
+ | Constraints | Any technical limitations? Timeline? Dependencies? |
72
+ | Success | How will you measure success? What's the happy path? |
73
+ | Edge Cases | What shouldn't happen? Any error states to consider? |
74
+ | Existing Patterns | Are there similar features in the codebase to follow? |
75
+
76
+ **Exit Condition:** Continue until the idea is clear OR user says "proceed" or "let's move on"
77
+
78
+ ### Phase 2: Explore Approaches
79
+
80
+ After understanding the idea, propose 2-3 concrete approaches.
81
+
82
+ **Structure for Each Approach:**
83
+
84
+ ```markdown
85
+ ### Approach A: [Name]
86
+
87
+ [2-3 sentence description]
88
+
89
+ **Pros:**
90
+ - [Benefit 1]
91
+ - [Benefit 2]
92
+
93
+ **Cons:**
94
+ - [Drawback 1]
95
+ - [Drawback 2]
96
+
97
+ **Best when:** [Circumstances where this approach shines]
98
+ ```
99
+
100
+ **Guidelines:**
101
+ - Lead with a recommendation and explain why
102
+ - Be honest about trade-offs
103
+ - Consider YAGNI—simpler is usually better
104
+ - Reference codebase patterns when relevant
105
+
106
+ ### Phase 3: Capture the Design
107
+
108
+ Summarize key decisions in a structured format.
109
+
110
+ **Design Doc Structure:**
111
+
112
+ ```markdown
113
+ ---
114
+ date: YYYY-MM-DD
115
+ topic: <kebab-case-topic>
116
+ ---
117
+
118
+ # <Topic Title>
119
+
120
+ ## What We're Building
121
+ [Concise description—1-2 paragraphs max]
122
+
123
+ ## Why This Approach
124
+ [Brief explanation of approaches considered and why this one was chosen]
125
+
126
+ ## Key Decisions
127
+ - [Decision 1]: [Rationale]
128
+ - [Decision 2]: [Rationale]
129
+
130
+ ## Open Questions
131
+ - [Any unresolved questions for the planning phase]
132
+
133
+ ## Next Steps
134
+ → `/workflows:plan` for implementation details
135
+ ```
136
+
137
+ **Output Location:** `docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md`
138
+
139
+ ### Phase 4: Handoff
140
+
141
+ Present clear options for what to do next:
142
+
143
+ 1. **Proceed to planning** → Run `/workflows:plan`
144
+ 2. **Refine further** → Continue exploring the design
145
+ 3. **Done for now** → User will return later
146
+
147
+ ## YAGNI Principles
148
+
149
+ During brainstorming, actively resist complexity:
150
+
151
+ - **Don't design for hypothetical future requirements**
152
+ - **Choose the simplest approach that solves the stated problem**
153
+ - **Prefer boring, proven patterns over clever solutions**
154
+ - **Ask "Do we really need this?" when complexity emerges**
155
+ - **Defer decisions that don't need to be made now**
156
+
157
+ ## Incremental Validation
158
+
159
+ Keep sections short—200-300 words maximum. After each section of output, pause to validate understanding:
160
+
161
+ - "Does this match what you had in mind?"
162
+ - "Any adjustments before we continue?"
163
+ - "Is this the direction you want to go?"
164
+
165
+ This prevents wasted effort on misaligned designs.
166
+
167
+ ## Anti-Patterns to Avoid
168
+
169
+ | Anti-Pattern | Better Approach |
170
+ |--------------|-----------------|
171
+ | Asking 5 questions at once | Ask one at a time |
172
+ | Jumping to implementation details | Stay focused on WHAT, not HOW |
173
+ | Proposing overly complex solutions | Start simple, add complexity only if needed |
174
+ | Ignoring existing codebase patterns | Research what exists first |
175
+ | Making assumptions without validating | State assumptions explicitly and confirm |
176
+ | Creating lengthy design documents | Keep it concise—details go in the plan |
177
+
178
+ ## Integration with Planning
179
+
180
+ Brainstorming answers **WHAT** to build:
181
+ - Requirements and acceptance criteria
182
+ - Chosen approach and rationale
183
+ - Key decisions and trade-offs
184
+
185
+ Planning answers **HOW** to build it:
186
+ - Implementation steps and file changes
187
+ - Technical details and code patterns
188
+ - Testing strategy and verification
189
+
190
+ When brainstorm output exists, `/workflows:plan` should detect it and use it as input, skipping its own idea refinement phase.