@fro.bot/systematic 1.18.7 → 1.19.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.
- package/agents/docs/ankane-readme-writer.md +67 -0
- package/agents/review/julik-frontend-races-reviewer.md +223 -0
- package/agents/review/kieran-python-reviewer.md +135 -0
- package/agents/review/schema-drift-detector.md +156 -0
- package/agents/workflow/every-style-editor.md +66 -0
- package/commands/agent-native-audit.md +4 -2
- package/commands/changelog.md +139 -0
- package/commands/create-agent-skill.md +5 -2
- package/commands/deepen-plan.md +50 -20
- package/commands/deploy-docs.md +120 -0
- package/commands/feature-video.md +352 -0
- package/commands/generate_command.md +164 -0
- package/commands/heal-skill.md +149 -0
- package/commands/lfg.md +14 -8
- package/commands/report-bug.md +151 -0
- package/commands/reproduce-bug.md +100 -0
- package/commands/resolve_parallel.md +36 -0
- package/commands/resolve_todo_parallel.md +37 -0
- package/commands/slfg.md +33 -0
- package/commands/test-browser.md +340 -0
- package/commands/test-xcode.md +333 -0
- package/commands/triage.md +311 -0
- package/commands/workflows/brainstorm.md +6 -1
- package/commands/workflows/compound.md +16 -13
- package/commands/workflows/plan.md +49 -1
- package/commands/workflows/review.md +28 -24
- package/commands/workflows/work.md +60 -25
- package/package.json +1 -1
- package/skills/andrew-kane-gem-writer/SKILL.md +185 -0
- package/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
- package/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
- package/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
- package/skills/andrew-kane-gem-writer/references/resources.md +119 -0
- package/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
- package/skills/dhh-rails-style/SKILL.md +186 -0
- package/skills/dhh-rails-style/references/architecture.md +653 -0
- package/skills/dhh-rails-style/references/controllers.md +303 -0
- package/skills/dhh-rails-style/references/frontend.md +510 -0
- package/skills/dhh-rails-style/references/gems.md +266 -0
- package/skills/dhh-rails-style/references/models.md +359 -0
- package/skills/dhh-rails-style/references/testing.md +338 -0
- package/skills/dspy-ruby/SKILL.md +738 -0
- package/skills/dspy-ruby/assets/config-template.rb +187 -0
- package/skills/dspy-ruby/assets/module-template.rb +300 -0
- package/skills/dspy-ruby/assets/signature-template.rb +221 -0
- package/skills/dspy-ruby/references/core-concepts.md +674 -0
- package/skills/dspy-ruby/references/observability.md +366 -0
- package/skills/dspy-ruby/references/optimization.md +603 -0
- package/skills/dspy-ruby/references/providers.md +418 -0
- package/skills/dspy-ruby/references/toolsets.md +502 -0
- package/skills/every-style-editor/SKILL.md +135 -0
- package/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
- package/skills/gemini-imagegen/SKILL.md +238 -0
- package/skills/gemini-imagegen/requirements.txt +2 -0
- package/skills/gemini-imagegen/scripts/compose_images.py +157 -0
- package/skills/gemini-imagegen/scripts/edit_image.py +144 -0
- package/skills/gemini-imagegen/scripts/gemini_images.py +263 -0
- package/skills/gemini-imagegen/scripts/generate_image.py +133 -0
- package/skills/gemini-imagegen/scripts/multi_turn_chat.py +216 -0
- package/skills/rclone/SKILL.md +151 -0
- package/skills/rclone/scripts/check_setup.sh +60 -0
- package/skills/resolve-pr-parallel/SKILL.md +90 -0
- package/skills/resolve-pr-parallel/scripts/get-pr-comments +68 -0
- package/skills/resolve-pr-parallel/scripts/resolve-pr-thread +23 -0
- package/skills/setup/SKILL.md +168 -0
- package/skills/skill-creator/SKILL.md +211 -0
- package/skills/skill-creator/scripts/init_skill.py +303 -0
- package/skills/skill-creator/scripts/package_skill.py +110 -0
- package/skills/skill-creator/scripts/quick_validate.py +65 -0
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test-xcode
|
|
3
|
+
description: Build and test iOS apps on simulator using XcodeBuildMCP
|
|
4
|
+
argument-hint: '[scheme name or ''current'' to use default]'
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Xcode Test Command
|
|
9
|
+
|
|
10
|
+
<command_purpose>Build, install, and test iOS apps on the simulator using XcodeBuildMCP. Captures screenshots, logs, and verifies app behavior.</command_purpose>
|
|
11
|
+
|
|
12
|
+
## Introduction
|
|
13
|
+
|
|
14
|
+
<role>iOS QA Engineer specializing in simulator-based testing</role>
|
|
15
|
+
|
|
16
|
+
This command tests iOS/macOS apps by:
|
|
17
|
+
- Building for simulator
|
|
18
|
+
- Installing and launching the app
|
|
19
|
+
- Taking screenshots of key screens
|
|
20
|
+
- Capturing console logs for errors
|
|
21
|
+
- Supporting human verification for external flows
|
|
22
|
+
|
|
23
|
+
## Prerequisites
|
|
24
|
+
|
|
25
|
+
<requirements>
|
|
26
|
+
- Xcode installed with command-line tools
|
|
27
|
+
- XcodeBuildMCP server connected
|
|
28
|
+
- Valid Xcode project or workspace
|
|
29
|
+
- At least one iOS Simulator available
|
|
30
|
+
</requirements>
|
|
31
|
+
|
|
32
|
+
## Main Tasks
|
|
33
|
+
|
|
34
|
+
### 0. Verify XcodeBuildMCP is Installed
|
|
35
|
+
|
|
36
|
+
<check_mcp_installed>
|
|
37
|
+
|
|
38
|
+
**First, check if XcodeBuildMCP tools are available.**
|
|
39
|
+
|
|
40
|
+
Try calling:
|
|
41
|
+
```
|
|
42
|
+
mcp__xcodebuildmcp__list_simulators({})
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**If the tool is not found or errors:**
|
|
46
|
+
|
|
47
|
+
Tell the user:
|
|
48
|
+
```markdown
|
|
49
|
+
**XcodeBuildMCP not installed**
|
|
50
|
+
|
|
51
|
+
Please install the XcodeBuildMCP server first:
|
|
52
|
+
|
|
53
|
+
\`\`\`bash
|
|
54
|
+
claude mcp add XcodeBuildMCP -- npx xcodebuildmcp@latest
|
|
55
|
+
\`\`\`
|
|
56
|
+
|
|
57
|
+
Then restart OpenCode and run `/xcode-test` again.
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**Do NOT proceed** until XcodeBuildMCP is confirmed working.
|
|
61
|
+
|
|
62
|
+
</check_mcp_installed>
|
|
63
|
+
|
|
64
|
+
### 1. Discover Project and Scheme
|
|
65
|
+
|
|
66
|
+
<discover_project>
|
|
67
|
+
|
|
68
|
+
**Find available projects:**
|
|
69
|
+
```
|
|
70
|
+
mcp__xcodebuildmcp__discover_projs({})
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**List schemes for the project:**
|
|
74
|
+
```
|
|
75
|
+
mcp__xcodebuildmcp__list_schemes({ project_path: "/path/to/Project.xcodeproj" })
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**If argument provided:**
|
|
79
|
+
- Use the specified scheme name
|
|
80
|
+
- Or "current" to use the default/last-used scheme
|
|
81
|
+
|
|
82
|
+
</discover_project>
|
|
83
|
+
|
|
84
|
+
### 2. Boot Simulator
|
|
85
|
+
|
|
86
|
+
<boot_simulator>
|
|
87
|
+
|
|
88
|
+
**List available simulators:**
|
|
89
|
+
```
|
|
90
|
+
mcp__xcodebuildmcp__list_simulators({})
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**Boot preferred simulator (iPhone 15 Pro recommended):**
|
|
94
|
+
```
|
|
95
|
+
mcp__xcodebuildmcp__boot_simulator({ simulator_id: "[uuid]" })
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**Wait for simulator to be ready:**
|
|
99
|
+
Check simulator state before proceeding with installation.
|
|
100
|
+
|
|
101
|
+
</boot_simulator>
|
|
102
|
+
|
|
103
|
+
### 3. Build the App
|
|
104
|
+
|
|
105
|
+
<build_app>
|
|
106
|
+
|
|
107
|
+
**Build for iOS Simulator:**
|
|
108
|
+
```
|
|
109
|
+
mcp__xcodebuildmcp__build_ios_sim_app({
|
|
110
|
+
project_path: "/path/to/Project.xcodeproj",
|
|
111
|
+
scheme: "[scheme_name]"
|
|
112
|
+
})
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Handle build failures:**
|
|
116
|
+
- Capture build errors
|
|
117
|
+
- Create P1 todo for each build error
|
|
118
|
+
- Report to user with specific error details
|
|
119
|
+
|
|
120
|
+
**On success:**
|
|
121
|
+
- Note the built app path for installation
|
|
122
|
+
- Proceed to installation step
|
|
123
|
+
|
|
124
|
+
</build_app>
|
|
125
|
+
|
|
126
|
+
### 4. Install and Launch
|
|
127
|
+
|
|
128
|
+
<install_launch>
|
|
129
|
+
|
|
130
|
+
**Install app on simulator:**
|
|
131
|
+
```
|
|
132
|
+
mcp__xcodebuildmcp__install_app_on_simulator({
|
|
133
|
+
app_path: "/path/to/built/App.app",
|
|
134
|
+
simulator_id: "[uuid]"
|
|
135
|
+
})
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**Launch the app:**
|
|
139
|
+
```
|
|
140
|
+
mcp__xcodebuildmcp__launch_app_on_simulator({
|
|
141
|
+
bundle_id: "[app.bundle.id]",
|
|
142
|
+
simulator_id: "[uuid]"
|
|
143
|
+
})
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Start capturing logs:**
|
|
147
|
+
```
|
|
148
|
+
mcp__xcodebuildmcp__capture_sim_logs({
|
|
149
|
+
simulator_id: "[uuid]",
|
|
150
|
+
bundle_id: "[app.bundle.id]"
|
|
151
|
+
})
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
</install_launch>
|
|
155
|
+
|
|
156
|
+
### 5. Test Key Screens
|
|
157
|
+
|
|
158
|
+
<test_screens>
|
|
159
|
+
|
|
160
|
+
For each key screen in the app:
|
|
161
|
+
|
|
162
|
+
**Take screenshot:**
|
|
163
|
+
```
|
|
164
|
+
mcp__xcodebuildmcp__take_screenshot({
|
|
165
|
+
simulator_id: "[uuid]",
|
|
166
|
+
filename: "screen-[name].png"
|
|
167
|
+
})
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
**Review screenshot for:**
|
|
171
|
+
- UI elements rendered correctly
|
|
172
|
+
- No error messages visible
|
|
173
|
+
- Expected content displayed
|
|
174
|
+
- Layout looks correct
|
|
175
|
+
|
|
176
|
+
**Check logs for errors:**
|
|
177
|
+
```
|
|
178
|
+
mcp__xcodebuildmcp__get_sim_logs({ simulator_id: "[uuid]" })
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Look for:
|
|
182
|
+
- Crashes
|
|
183
|
+
- Exceptions
|
|
184
|
+
- Error-level log messages
|
|
185
|
+
- Failed network requests
|
|
186
|
+
|
|
187
|
+
</test_screens>
|
|
188
|
+
|
|
189
|
+
### 6. Human Verification (When Required)
|
|
190
|
+
|
|
191
|
+
<human_verification>
|
|
192
|
+
|
|
193
|
+
Pause for human input when testing touches:
|
|
194
|
+
|
|
195
|
+
| Flow Type | What to Ask |
|
|
196
|
+
|-----------|-------------|
|
|
197
|
+
| Sign in with Apple | "Please complete Sign in with Apple on the simulator" |
|
|
198
|
+
| Push notifications | "Send a test push and confirm it appears" |
|
|
199
|
+
| In-app purchases | "Complete a sandbox purchase" |
|
|
200
|
+
| Camera/Photos | "Grant permissions and verify camera works" |
|
|
201
|
+
| Location | "Allow location access and verify map updates" |
|
|
202
|
+
|
|
203
|
+
Use question:
|
|
204
|
+
```markdown
|
|
205
|
+
**Human Verification Needed**
|
|
206
|
+
|
|
207
|
+
This test requires [flow type]. Please:
|
|
208
|
+
1. [Action to take on simulator]
|
|
209
|
+
2. [What to verify]
|
|
210
|
+
|
|
211
|
+
Did it work correctly?
|
|
212
|
+
1. Yes - continue testing
|
|
213
|
+
2. No - describe the issue
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
</human_verification>
|
|
217
|
+
|
|
218
|
+
### 7. Handle Failures
|
|
219
|
+
|
|
220
|
+
<failure_handling>
|
|
221
|
+
|
|
222
|
+
When a test fails:
|
|
223
|
+
|
|
224
|
+
1. **Document the failure:**
|
|
225
|
+
- Take screenshot of error state
|
|
226
|
+
- Capture console logs
|
|
227
|
+
- Note reproduction steps
|
|
228
|
+
|
|
229
|
+
2. **Ask user how to proceed:**
|
|
230
|
+
```markdown
|
|
231
|
+
**Test Failed: [screen/feature]**
|
|
232
|
+
|
|
233
|
+
Issue: [description]
|
|
234
|
+
Logs: [relevant error messages]
|
|
235
|
+
|
|
236
|
+
How to proceed?
|
|
237
|
+
1. Fix now - I'll help debug and fix
|
|
238
|
+
2. Create todo - Add to todos/ for later
|
|
239
|
+
3. Skip - Continue testing other screens
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
3. **If "Fix now":**
|
|
243
|
+
- Investigate the issue in code
|
|
244
|
+
- Propose a fix
|
|
245
|
+
- Rebuild and retest
|
|
246
|
+
|
|
247
|
+
4. **If "Create todo":**
|
|
248
|
+
- Create `{id}-pending-p1-xcode-{description}.md`
|
|
249
|
+
- Continue testing
|
|
250
|
+
|
|
251
|
+
</failure_handling>
|
|
252
|
+
|
|
253
|
+
### 8. Test Summary
|
|
254
|
+
|
|
255
|
+
<test_summary>
|
|
256
|
+
|
|
257
|
+
After all tests complete, present summary:
|
|
258
|
+
|
|
259
|
+
```markdown
|
|
260
|
+
## 📱 Xcode Test Results
|
|
261
|
+
|
|
262
|
+
**Project:** [project name]
|
|
263
|
+
**Scheme:** [scheme name]
|
|
264
|
+
**Simulator:** [simulator name]
|
|
265
|
+
|
|
266
|
+
### Build: ✅ Success / ❌ Failed
|
|
267
|
+
|
|
268
|
+
### Screens Tested: [count]
|
|
269
|
+
|
|
270
|
+
| Screen | Status | Notes |
|
|
271
|
+
|--------|--------|-------|
|
|
272
|
+
| Launch | ✅ Pass | |
|
|
273
|
+
| Home | ✅ Pass | |
|
|
274
|
+
| Settings | ❌ Fail | Crash on tap |
|
|
275
|
+
| Profile | ⏭️ Skip | Requires login |
|
|
276
|
+
|
|
277
|
+
### Console Errors: [count]
|
|
278
|
+
- [List any errors found]
|
|
279
|
+
|
|
280
|
+
### Human Verifications: [count]
|
|
281
|
+
- Sign in with Apple: ✅ Confirmed
|
|
282
|
+
- Push notifications: ✅ Confirmed
|
|
283
|
+
|
|
284
|
+
### Failures: [count]
|
|
285
|
+
- Settings screen - crash on navigation
|
|
286
|
+
|
|
287
|
+
### Created Todos: [count]
|
|
288
|
+
- `006-pending-p1-xcode-settings-crash.md`
|
|
289
|
+
|
|
290
|
+
### Result: [PASS / FAIL / PARTIAL]
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
</test_summary>
|
|
294
|
+
|
|
295
|
+
### 9. Cleanup
|
|
296
|
+
|
|
297
|
+
<cleanup>
|
|
298
|
+
|
|
299
|
+
After testing:
|
|
300
|
+
|
|
301
|
+
**Stop log capture:**
|
|
302
|
+
```
|
|
303
|
+
mcp__xcodebuildmcp__stop_log_capture({ simulator_id: "[uuid]" })
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
**Optionally shut down simulator:**
|
|
307
|
+
```
|
|
308
|
+
mcp__xcodebuildmcp__shutdown_simulator({ simulator_id: "[uuid]" })
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
</cleanup>
|
|
312
|
+
|
|
313
|
+
## Quick Usage Examples
|
|
314
|
+
|
|
315
|
+
```bash
|
|
316
|
+
# Test with default scheme
|
|
317
|
+
/xcode-test
|
|
318
|
+
|
|
319
|
+
# Test specific scheme
|
|
320
|
+
/xcode-test MyApp-Debug
|
|
321
|
+
|
|
322
|
+
# Test after making changes
|
|
323
|
+
/xcode-test current
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
## Integration with /workflows:review
|
|
327
|
+
|
|
328
|
+
When reviewing PRs that touch iOS code, the `/workflows:review` command can spawn this as a subagent:
|
|
329
|
+
|
|
330
|
+
```
|
|
331
|
+
Task general-purpose("Run /xcode-test for scheme [name]. Build, install on simulator, test key screens, check for crashes.")
|
|
332
|
+
```
|
|
333
|
+
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: triage
|
|
3
|
+
description: Triage and categorize findings for the CLI todo system
|
|
4
|
+
argument-hint: '[findings list or source type]'
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
- First set the /model to Haiku
|
|
9
|
+
- Then read all pending todos in the todos/ directory
|
|
10
|
+
|
|
11
|
+
Present all findings, decisions, or issues here one by one for triage. The goal is to go through each item and decide whether to add it to the CLI todo system.
|
|
12
|
+
|
|
13
|
+
**IMPORTANT: DO NOT CODE ANYTHING DURING TRIAGE!**
|
|
14
|
+
|
|
15
|
+
This command is for:
|
|
16
|
+
|
|
17
|
+
- Triaging code review findings
|
|
18
|
+
- Processing security audit results
|
|
19
|
+
- Reviewing performance analysis
|
|
20
|
+
- Handling any other categorized findings that need tracking
|
|
21
|
+
|
|
22
|
+
## Workflow
|
|
23
|
+
|
|
24
|
+
### Step 1: Present Each Finding
|
|
25
|
+
|
|
26
|
+
For each finding, present in this format:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
---
|
|
30
|
+
Issue #X: [Brief Title]
|
|
31
|
+
|
|
32
|
+
Severity: 🔴 P1 (CRITICAL) / 🟡 P2 (IMPORTANT) / 🔵 P3 (NICE-TO-HAVE)
|
|
33
|
+
|
|
34
|
+
Category: [Security/Performance/Architecture/Bug/Feature/etc.]
|
|
35
|
+
|
|
36
|
+
Description:
|
|
37
|
+
[Detailed explanation of the issue or improvement]
|
|
38
|
+
|
|
39
|
+
Location: [file_path:line_number]
|
|
40
|
+
|
|
41
|
+
Problem Scenario:
|
|
42
|
+
[Step by step what's wrong or could happen]
|
|
43
|
+
|
|
44
|
+
Proposed Solution:
|
|
45
|
+
[How to fix it]
|
|
46
|
+
|
|
47
|
+
Estimated Effort: [Small (< 2 hours) / Medium (2-8 hours) / Large (> 8 hours)]
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
Do you want to add this to the todo list?
|
|
51
|
+
1. yes - create todo file
|
|
52
|
+
2. next - skip this item
|
|
53
|
+
3. custom - modify before creating
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Step 2: Handle User Decision
|
|
57
|
+
|
|
58
|
+
**When user says "yes":**
|
|
59
|
+
|
|
60
|
+
1. **Update existing todo file** (if it exists) or **Create new filename:**
|
|
61
|
+
|
|
62
|
+
If todo already exists (from code review):
|
|
63
|
+
|
|
64
|
+
- Rename file from `{id}-pending-{priority}-{desc}.md` → `{id}-ready-{priority}-{desc}.md`
|
|
65
|
+
- Update YAML frontmatter: `status: pending` → `status: ready`
|
|
66
|
+
- Keep issue_id, priority, and description unchanged
|
|
67
|
+
|
|
68
|
+
If creating new todo:
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
{next_id}-ready-{priority}-{brief-description}.md
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Priority mapping:
|
|
75
|
+
|
|
76
|
+
- 🔴 P1 (CRITICAL) → `p1`
|
|
77
|
+
- 🟡 P2 (IMPORTANT) → `p2`
|
|
78
|
+
- 🔵 P3 (NICE-TO-HAVE) → `p3`
|
|
79
|
+
|
|
80
|
+
Example: `042-ready-p1-transaction-boundaries.md`
|
|
81
|
+
|
|
82
|
+
2. **Update YAML frontmatter:**
|
|
83
|
+
|
|
84
|
+
```yaml
|
|
85
|
+
---
|
|
86
|
+
status: ready # IMPORTANT: Change from "pending" to "ready"
|
|
87
|
+
priority: p1 # or p2, p3 based on severity
|
|
88
|
+
issue_id: "042"
|
|
89
|
+
tags: [category, relevant-tags]
|
|
90
|
+
dependencies: []
|
|
91
|
+
---
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
3. **Populate or update the file:**
|
|
95
|
+
|
|
96
|
+
```yaml
|
|
97
|
+
# [Issue Title]
|
|
98
|
+
|
|
99
|
+
## Problem Statement
|
|
100
|
+
[Description from finding]
|
|
101
|
+
|
|
102
|
+
## Findings
|
|
103
|
+
- [Key discoveries]
|
|
104
|
+
- Location: [file_path:line_number]
|
|
105
|
+
- [Scenario details]
|
|
106
|
+
|
|
107
|
+
## Proposed Solutions
|
|
108
|
+
|
|
109
|
+
### Option 1: [Primary solution]
|
|
110
|
+
- **Pros**: [Benefits]
|
|
111
|
+
- **Cons**: [Drawbacks if any]
|
|
112
|
+
- **Effort**: [Small/Medium/Large]
|
|
113
|
+
- **Risk**: [Low/Medium/High]
|
|
114
|
+
|
|
115
|
+
## Recommended Action
|
|
116
|
+
[Filled during triage - specific action plan]
|
|
117
|
+
|
|
118
|
+
## Technical Details
|
|
119
|
+
- **Affected Files**: [List files]
|
|
120
|
+
- **Related Components**: [Components affected]
|
|
121
|
+
- **Database Changes**: [Yes/No - describe if yes]
|
|
122
|
+
|
|
123
|
+
## Resources
|
|
124
|
+
- Original finding: [Source of this issue]
|
|
125
|
+
- Related issues: [If any]
|
|
126
|
+
|
|
127
|
+
## Acceptance Criteria
|
|
128
|
+
- [ ] [Specific success criteria]
|
|
129
|
+
- [ ] Tests pass
|
|
130
|
+
- [ ] Code reviewed
|
|
131
|
+
|
|
132
|
+
## Work Log
|
|
133
|
+
|
|
134
|
+
### {date} - Approved for Work
|
|
135
|
+
**By:** Systematic Triage System
|
|
136
|
+
**Actions:**
|
|
137
|
+
- Issue approved during triage session
|
|
138
|
+
- Status changed from pending → ready
|
|
139
|
+
- Ready to be picked up and worked on
|
|
140
|
+
|
|
141
|
+
**Learnings:**
|
|
142
|
+
- [Context and insights]
|
|
143
|
+
|
|
144
|
+
## Notes
|
|
145
|
+
Source: Triage session on {date}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
4. **Confirm approval:** "✅ Approved: `{new_filename}` (Issue #{issue_id}) - Status: **ready** → Ready to work on"
|
|
149
|
+
|
|
150
|
+
**When user says "next":**
|
|
151
|
+
|
|
152
|
+
- **Delete the todo file** - Remove it from todos/ directory since it's not relevant
|
|
153
|
+
- Skip to the next item
|
|
154
|
+
- Track skipped items for summary
|
|
155
|
+
|
|
156
|
+
**When user says "custom":**
|
|
157
|
+
|
|
158
|
+
- Ask what to modify (priority, description, details)
|
|
159
|
+
- Update the information
|
|
160
|
+
- Present revised version
|
|
161
|
+
- Ask again: yes/next/custom
|
|
162
|
+
|
|
163
|
+
### Step 3: Continue Until All Processed
|
|
164
|
+
|
|
165
|
+
- Process all items one by one
|
|
166
|
+
- Track using todowrite for visibility
|
|
167
|
+
- Don't wait for approval between items - keep moving
|
|
168
|
+
|
|
169
|
+
### Step 4: Final Summary
|
|
170
|
+
|
|
171
|
+
After all items processed:
|
|
172
|
+
|
|
173
|
+
````markdown
|
|
174
|
+
## Triage Complete
|
|
175
|
+
|
|
176
|
+
**Total Items:** [X] **Todos Approved (ready):** [Y] **Skipped:** [Z]
|
|
177
|
+
|
|
178
|
+
### Approved Todos (Ready for Work):
|
|
179
|
+
|
|
180
|
+
- `042-ready-p1-transaction-boundaries.md` - Transaction boundary issue
|
|
181
|
+
- `043-ready-p2-cache-optimization.md` - Cache performance improvement ...
|
|
182
|
+
|
|
183
|
+
### Skipped Items (Deleted):
|
|
184
|
+
|
|
185
|
+
- Item #5: [reason] - Removed from todos/
|
|
186
|
+
- Item #12: [reason] - Removed from todos/
|
|
187
|
+
|
|
188
|
+
### Summary of Changes Made:
|
|
189
|
+
|
|
190
|
+
During triage, the following status updates occurred:
|
|
191
|
+
|
|
192
|
+
- **Pending → Ready:** Filenames and frontmatter updated to reflect approved status
|
|
193
|
+
- **Deleted:** Todo files for skipped findings removed from todos/ directory
|
|
194
|
+
- Each approved file now has `status: ready` in YAML frontmatter
|
|
195
|
+
|
|
196
|
+
### Next Steps:
|
|
197
|
+
|
|
198
|
+
1. View approved todos ready for work:
|
|
199
|
+
```bash
|
|
200
|
+
ls todos/*-ready-*.md
|
|
201
|
+
```
|
|
202
|
+
````
|
|
203
|
+
|
|
204
|
+
2. Start work on approved items:
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
/resolve_todo_parallel # Work on multiple approved items efficiently
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
3. Or pick individual items to work on
|
|
211
|
+
|
|
212
|
+
4. As you work, update todo status:
|
|
213
|
+
- Ready → In Progress (in your local context as you work)
|
|
214
|
+
- In Progress → Complete (rename file: ready → complete, update frontmatter)
|
|
215
|
+
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## Example Response Format
|
|
219
|
+
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
Issue #5: Missing Transaction Boundaries for Multi-Step Operations
|
|
225
|
+
|
|
226
|
+
Severity: 🔴 P1 (CRITICAL)
|
|
227
|
+
|
|
228
|
+
Category: Data Integrity / Security
|
|
229
|
+
|
|
230
|
+
Description: The google_oauth2_connected callback in GoogleOauthCallbacks concern performs multiple database operations without transaction protection. If any step fails midway, the database is left in an inconsistent state.
|
|
231
|
+
|
|
232
|
+
Location: app/controllers/concerns/google_oauth_callbacks.rb:13-50
|
|
233
|
+
|
|
234
|
+
Problem Scenario:
|
|
235
|
+
|
|
236
|
+
1. User.update succeeds (email changed)
|
|
237
|
+
2. Account.save! fails (validation error)
|
|
238
|
+
3. Result: User has changed email but no associated Account
|
|
239
|
+
4. Next login attempt fails completely
|
|
240
|
+
|
|
241
|
+
Operations Without Transaction:
|
|
242
|
+
|
|
243
|
+
- User confirmation (line 13)
|
|
244
|
+
- Waitlist removal (line 14)
|
|
245
|
+
- User profile update (line 21-23)
|
|
246
|
+
- Account creation (line 28-37)
|
|
247
|
+
- Avatar attachment (line 39-45)
|
|
248
|
+
- Journey creation (line 47)
|
|
249
|
+
|
|
250
|
+
Proposed Solution: Wrap all operations in ApplicationRecord.transaction do ... end block
|
|
251
|
+
|
|
252
|
+
Estimated Effort: Small (30 minutes)
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
Do you want to add this to the todo list?
|
|
257
|
+
|
|
258
|
+
1. yes - create todo file
|
|
259
|
+
2. next - skip this item
|
|
260
|
+
3. custom - modify before creating
|
|
261
|
+
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
## Important Implementation Details
|
|
265
|
+
|
|
266
|
+
### Status Transitions During Triage
|
|
267
|
+
|
|
268
|
+
**When "yes" is selected:**
|
|
269
|
+
1. Rename file: `{id}-pending-{priority}-{desc}.md` → `{id}-ready-{priority}-{desc}.md`
|
|
270
|
+
2. Update YAML frontmatter: `status: pending` → `status: ready`
|
|
271
|
+
3. Update Work Log with triage approval entry
|
|
272
|
+
4. Confirm: "✅ Approved: `{filename}` (Issue #{issue_id}) - Status: **ready**"
|
|
273
|
+
|
|
274
|
+
**When "next" is selected:**
|
|
275
|
+
1. Delete the todo file from todos/ directory
|
|
276
|
+
2. Skip to next item
|
|
277
|
+
3. No file remains in the system
|
|
278
|
+
|
|
279
|
+
### Progress Tracking
|
|
280
|
+
|
|
281
|
+
Every time you present a todo as a header, include:
|
|
282
|
+
- **Progress:** X/Y completed (e.g., "3/10 completed")
|
|
283
|
+
- **Estimated time remaining:** Based on how quickly you're progressing
|
|
284
|
+
- **Pacing:** Monitor time per finding and adjust estimate accordingly
|
|
285
|
+
|
|
286
|
+
Example:
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
Progress: 3/10 completed | Estimated time: ~2 minutes remaining
|
|
290
|
+
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### Do Not Code During Triage
|
|
294
|
+
|
|
295
|
+
- ✅ Present findings
|
|
296
|
+
- ✅ Make yes/next/custom decisions
|
|
297
|
+
- ✅ Update todo files (rename, frontmatter, work log)
|
|
298
|
+
- ❌ Do NOT implement fixes or write code
|
|
299
|
+
- ❌ Do NOT add detailed implementation details
|
|
300
|
+
- ❌ That's for /resolve_todo_parallel phase
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
When done give these options
|
|
304
|
+
|
|
305
|
+
```markdown
|
|
306
|
+
What would you like to do next?
|
|
307
|
+
|
|
308
|
+
1. run /resolve_todo_parallel to resolve the todos
|
|
309
|
+
2. commit the todos
|
|
310
|
+
3. nothing, go chill
|
|
311
|
+
```
|
|
@@ -78,6 +78,8 @@ Write a brainstorm document to `docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.m
|
|
|
78
78
|
|
|
79
79
|
Ensure `docs/brainstorms/` directory exists before writing.
|
|
80
80
|
|
|
81
|
+
**IMPORTANT:** Before proceeding to Phase 4, check if there are any Open Questions listed in the brainstorm document. If there are open questions, YOU MUST ask the user about each one using question before offering to proceed to planning. Move resolved questions to a "Resolved Questions" section.
|
|
82
|
+
|
|
81
83
|
### Phase 4: Handoff
|
|
82
84
|
|
|
83
85
|
Use the **question tool** to present next steps:
|
|
@@ -87,7 +89,10 @@ Use the **question tool** to present next steps:
|
|
|
87
89
|
**Options:**
|
|
88
90
|
1. **Review and refine** - Improve the document through structured self-review
|
|
89
91
|
2. **Proceed to planning** - Run `/workflows:plan` (will auto-detect this brainstorm)
|
|
90
|
-
3. **
|
|
92
|
+
3. **Ask more questions** - I have more questions to clarify before moving on
|
|
93
|
+
4. **Done for now** - Return later
|
|
94
|
+
|
|
95
|
+
**If user selects "Ask more questions":** Return to Phase 1.2 (Collaborative Dialogue) and continue asking the USER questions one at a time to further refine the design. Probe deeper - ask about edge cases, constraints, preferences, or areas not yet explored. Continue until the user is satisfied, then return to Phase 4.
|
|
91
96
|
|
|
92
97
|
**If user selects "Review and refine":**
|
|
93
98
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workflows:compound
|
|
3
3
|
description: Document a recently solved problem to compound your team's knowledge
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: '[optional: brief context about the fix]'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# /compound
|
|
@@ -142,27 +142,29 @@ Based on problem type, optionally invoke specialized agents to review the docume
|
|
|
142
142
|
|
|
143
143
|
## Common Mistakes to Avoid
|
|
144
144
|
|
|
145
|
-
| Wrong | Correct |
|
|
146
|
-
|
|
145
|
+
| ❌ Wrong | ✅ Correct |
|
|
146
|
+
|----------|-----------|
|
|
147
147
|
| Subagents write files like `context-analysis.md`, `solution-draft.md` | Subagents return text data; orchestrator writes one final file |
|
|
148
|
-
| Research and assembly run in parallel | Research completes
|
|
148
|
+
| Research and assembly run in parallel | Research completes → then assembly runs |
|
|
149
149
|
| Multiple files created during workflow | Single file: `docs/solutions/[category]/[filename].md` |
|
|
150
150
|
|
|
151
151
|
## Success Output
|
|
152
152
|
|
|
153
153
|
```
|
|
154
|
+
✓ Documentation complete
|
|
155
|
+
|
|
154
156
|
Subagent Results:
|
|
155
|
-
Context Analyzer: Identified performance_issue in brief_system
|
|
156
|
-
Solution Extractor: 3 code fixes
|
|
157
|
-
Related Docs Finder: 2 related issues
|
|
158
|
-
Prevention Strategist: Prevention strategies, test suggestions
|
|
159
|
-
Category Classifier: `performance-issues`
|
|
157
|
+
✓ Context Analyzer: Identified performance_issue in brief_system
|
|
158
|
+
✓ Solution Extractor: 3 code fixes
|
|
159
|
+
✓ Related Docs Finder: 2 related issues
|
|
160
|
+
✓ Prevention Strategist: Prevention strategies, test suggestions
|
|
161
|
+
✓ Category Classifier: `performance-issues`
|
|
160
162
|
|
|
161
163
|
Specialized Agent Reviews (Auto-Triggered):
|
|
162
|
-
performance-oracle: Validated query optimization approach
|
|
163
|
-
kieran-rails-reviewer: Code examples meet Rails standards
|
|
164
|
-
code-simplicity-reviewer: Solution is appropriately minimal
|
|
165
|
-
every-style-editor: Documentation style verified
|
|
164
|
+
✓ performance-oracle: Validated query optimization approach
|
|
165
|
+
✓ kieran-rails-reviewer: Code examples meet Rails standards
|
|
166
|
+
✓ code-simplicity-reviewer: Solution is appropriately minimal
|
|
167
|
+
✓ every-style-editor: Documentation style verified
|
|
166
168
|
|
|
167
169
|
File created:
|
|
168
170
|
- docs/solutions/performance-issues/n-plus-one-brief-generation.md
|
|
@@ -230,6 +232,7 @@ Based on problem type, these agents can enhance documentation:
|
|
|
230
232
|
### When to Invoke
|
|
231
233
|
- **Auto-triggered** (optional): Agents can run post-documentation for enhancement
|
|
232
234
|
- **Manual trigger**: User can invoke agents after /workflows:compound completes for deeper review
|
|
235
|
+
- **Customize agents**: Edit `systematic.local.md` or invoke the `setup` skill to configure which review agents are used across all workflows
|
|
233
236
|
|
|
234
237
|
## Related Commands
|
|
235
238
|
|