@fro.bot/systematic 1.12.0 → 1.14.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/README.md +19 -5
- package/agents/design/design-implementation-reviewer.md +19 -1
- package/agents/design/design-iterator.md +31 -1
- package/agents/design/figma-design-sync.md +192 -0
- package/agents/research/best-practices-researcher.md +17 -1
- package/agents/research/framework-docs-researcher.md +19 -2
- package/agents/research/git-history-analyzer.md +60 -0
- package/agents/research/learnings-researcher.md +266 -0
- package/agents/research/repo-research-analyst.md +136 -0
- package/agents/review/agent-native-reviewer.md +263 -0
- package/agents/review/architecture-strategist.md +19 -2
- package/agents/review/code-simplicity-reviewer.md +18 -2
- package/agents/review/data-integrity-guardian.md +87 -0
- package/agents/review/data-migration-expert.md +114 -0
- package/agents/review/deployment-verification-agent.md +176 -0
- package/agents/review/dhh-rails-reviewer.md +68 -0
- package/agents/review/kieran-rails-reviewer.md +117 -0
- package/agents/review/kieran-typescript-reviewer.md +126 -0
- package/agents/review/pattern-recognition-specialist.md +19 -3
- package/agents/review/performance-oracle.md +31 -2
- package/agents/review/security-sentinel.md +25 -2
- package/agents/workflow/bug-reproduction-validator.md +18 -1
- package/agents/workflow/lint.md +19 -0
- package/agents/workflow/pr-comment-resolver.md +86 -0
- package/agents/workflow/spec-flow-analyzer.md +24 -1
- package/commands/agent-native-audit.md +1 -1
- package/commands/deepen-plan.md +20 -50
- package/commands/lfg.md +5 -9
- package/commands/workflows/brainstorm.md +17 -8
- package/commands/workflows/compound.md +95 -60
- package/commands/workflows/plan.md +22 -24
- package/commands/workflows/review.md +43 -32
- package/commands/workflows/work.md +91 -19
- package/dist/cli.js +1 -1
- package/dist/{index-0ftaxvrt.js → index-bky4p9gw.js} +6 -6
- package/dist/index.js +1 -1
- package/dist/lib/manifest.d.ts +14 -0
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ Evaluate whether brainstorming is needed based on the feature description.
|
|
|
33
33
|
- Constrained, well-defined scope
|
|
34
34
|
|
|
35
35
|
**If requirements are already clear:**
|
|
36
|
-
Use **
|
|
36
|
+
Use the **question tool** to suggest: "Your requirements seem detailed enough to proceed directly to planning. Should I run `/workflows:plan` instead, or would you like to explore the idea further?"
|
|
37
37
|
|
|
38
38
|
### Phase 1: Understand the Idea
|
|
39
39
|
|
|
@@ -41,13 +41,13 @@ Use **AskUserQuestion tool** to suggest: "Your requirements seem detailed enough
|
|
|
41
41
|
|
|
42
42
|
Run a quick repo scan to understand existing patterns:
|
|
43
43
|
|
|
44
|
-
-
|
|
44
|
+
- task repo-research-analyst("Understand existing patterns related to: <feature_description>")
|
|
45
45
|
|
|
46
|
-
Focus on: similar features, established patterns,
|
|
46
|
+
Focus on: similar features, established patterns, AGENTS.md guidance.
|
|
47
47
|
|
|
48
48
|
#### 1.2 Collaborative Dialogue
|
|
49
49
|
|
|
50
|
-
Use the **
|
|
50
|
+
Use the **question tool** to ask questions **one at a time**.
|
|
51
51
|
|
|
52
52
|
**Guidelines (see `brainstorming` skill for detailed techniques):**
|
|
53
53
|
- Prefer multiple choice when natural options exist
|
|
@@ -68,7 +68,7 @@ For each approach, provide:
|
|
|
68
68
|
|
|
69
69
|
Lead with your recommendation and explain why. Apply YAGNI—prefer simpler solutions.
|
|
70
70
|
|
|
71
|
-
Use **
|
|
71
|
+
Use the **question tool** to ask which approach the user prefers.
|
|
72
72
|
|
|
73
73
|
### Phase 3: Capture the Design
|
|
74
74
|
|
|
@@ -80,15 +80,24 @@ Ensure `docs/brainstorms/` directory exists before writing.
|
|
|
80
80
|
|
|
81
81
|
### Phase 4: Handoff
|
|
82
82
|
|
|
83
|
-
Use **
|
|
83
|
+
Use the **question tool** to present next steps:
|
|
84
84
|
|
|
85
85
|
**Question:** "Brainstorm captured. What would you like to do next?"
|
|
86
86
|
|
|
87
87
|
**Options:**
|
|
88
|
-
1. **
|
|
89
|
-
2. **
|
|
88
|
+
1. **Review and refine** - Improve the document through structured self-review
|
|
89
|
+
2. **Proceed to planning** - Run `/workflows:plan` (will auto-detect this brainstorm)
|
|
90
90
|
3. **Done for now** - Return later
|
|
91
91
|
|
|
92
|
+
**If user selects "Review and refine":**
|
|
93
|
+
|
|
94
|
+
Load the `document-review` skill and apply it to the brainstorm document.
|
|
95
|
+
|
|
96
|
+
When document-review returns "Review complete", present next steps:
|
|
97
|
+
|
|
98
|
+
1. **Move to planning** - Continue to `/workflows:plan` with this document
|
|
99
|
+
2. **Done for now** - Brainstorming complete. To start planning later: `/workflows:plan [document-path]`
|
|
100
|
+
|
|
92
101
|
## Output Summary
|
|
93
102
|
|
|
94
103
|
When complete, display:
|
|
@@ -21,53 +21,83 @@ Captures problem solutions while context is fresh, creating structured documenta
|
|
|
21
21
|
/workflows:compound [brief context] # Provide additional context hint
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
## Execution Strategy:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
24
|
+
## Execution Strategy: Two-Phase Orchestration
|
|
25
|
+
|
|
26
|
+
<critical_requirement>
|
|
27
|
+
**Only ONE file gets written - the final documentation.**
|
|
28
|
+
|
|
29
|
+
Phase 1 subagents return TEXT DATA to the orchestrator. They must NOT use Write, Edit, or create any files. Only the orchestrator (Phase 2) writes the final documentation file.
|
|
30
|
+
</critical_requirement>
|
|
31
|
+
|
|
32
|
+
### Phase 1: Parallel Research
|
|
33
|
+
|
|
34
|
+
<parallel_tasks>
|
|
35
|
+
|
|
36
|
+
Launch these subagents IN PARALLEL. Each returns text data to the orchestrator.
|
|
37
|
+
|
|
38
|
+
#### 1. **Context Analyzer**
|
|
39
|
+
- Extracts conversation history
|
|
40
|
+
- Identifies problem type, component, symptoms
|
|
41
|
+
- Validates against schema
|
|
42
|
+
- Returns: YAML frontmatter skeleton
|
|
43
|
+
|
|
44
|
+
#### 2. **Solution Extractor**
|
|
45
|
+
- Analyzes all investigation steps
|
|
46
|
+
- Identifies root cause
|
|
47
|
+
- Extracts working solution with code examples
|
|
48
|
+
- Returns: Solution content block
|
|
49
|
+
|
|
50
|
+
#### 3. **Related Docs Finder**
|
|
51
|
+
- Searches `docs/solutions/` for related documentation
|
|
52
|
+
- Identifies cross-references and links
|
|
53
|
+
- Finds related GitHub issues
|
|
54
|
+
- Returns: Links and relationships
|
|
55
|
+
|
|
56
|
+
#### 4. **Prevention Strategist**
|
|
57
|
+
- Develops prevention strategies
|
|
58
|
+
- Creates best practices guidance
|
|
59
|
+
- Generates test cases if applicable
|
|
60
|
+
- Returns: Prevention/testing content
|
|
61
|
+
|
|
62
|
+
#### 5. **Category Classifier**
|
|
63
|
+
- Determines optimal `docs/solutions/` category
|
|
64
|
+
- Validates category against schema
|
|
65
|
+
- Suggests filename based on slug
|
|
66
|
+
- Returns: Final path and filename
|
|
67
|
+
|
|
68
|
+
</parallel_tasks>
|
|
69
|
+
|
|
70
|
+
### Phase 2: Assembly & Write
|
|
71
|
+
|
|
72
|
+
<sequential_tasks>
|
|
73
|
+
|
|
74
|
+
**WAIT for all Phase 1 subagents to complete before proceeding.**
|
|
75
|
+
|
|
76
|
+
The orchestrating agent (main conversation) performs these steps:
|
|
77
|
+
|
|
78
|
+
1. Collect all text results from Phase 1 subagents
|
|
79
|
+
2. Assemble complete markdown file from the collected pieces
|
|
80
|
+
3. Validate YAML frontmatter against schema
|
|
81
|
+
4. Create directory if needed: `mkdir -p docs/solutions/[category]/`
|
|
82
|
+
5. Write the SINGLE final file: `docs/solutions/[category]/[filename].md`
|
|
83
|
+
|
|
84
|
+
</sequential_tasks>
|
|
85
|
+
|
|
86
|
+
### Phase 3: Optional Enhancement
|
|
87
|
+
|
|
88
|
+
**WAIT for Phase 2 to complete before proceeding.**
|
|
89
|
+
|
|
90
|
+
<parallel_tasks>
|
|
91
|
+
|
|
92
|
+
Based on problem type, optionally invoke specialized agents to review the documentation:
|
|
93
|
+
|
|
94
|
+
- **performance_issue** → `performance-oracle`
|
|
95
|
+
- **security_issue** → `security-sentinel`
|
|
96
|
+
- **database_issue** → `data-integrity-guardian`
|
|
97
|
+
- **test_failure** → `cora-test-reviewer`
|
|
98
|
+
- Any code-heavy issue → `kieran-rails-reviewer` + `code-simplicity-reviewer`
|
|
99
|
+
|
|
100
|
+
</parallel_tasks>
|
|
71
101
|
|
|
72
102
|
## What It Captures
|
|
73
103
|
|
|
@@ -110,24 +140,29 @@ This command launches multiple specialized subagents IN PARALLEL to maximize eff
|
|
|
110
140
|
- integration-issues/
|
|
111
141
|
- logic-errors/
|
|
112
142
|
|
|
143
|
+
## Common Mistakes to Avoid
|
|
144
|
+
|
|
145
|
+
| Wrong | Correct |
|
|
146
|
+
|----------|-----------:|
|
|
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, then assembly runs |
|
|
149
|
+
| Multiple files created during workflow | Single file: `docs/solutions/[category]/[filename].md` |
|
|
150
|
+
|
|
113
151
|
## Success Output
|
|
114
152
|
|
|
115
153
|
```
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
✓ Prevention Strategist: Generated test cases
|
|
123
|
-
✓ Category Classifier: docs/solutions/performance-issues/
|
|
124
|
-
✓ Documentation Writer: Created complete markdown
|
|
154
|
+
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`
|
|
125
160
|
|
|
126
161
|
Specialized Agent Reviews (Auto-Triggered):
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
|
131
166
|
|
|
132
167
|
File created:
|
|
133
168
|
- docs/solutions/performance-issues/n-plus-one-brief-generation.md
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workflows:plan
|
|
3
3
|
description: Transform feature descriptions into well-structured project plans following conventions
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: '[feature description, bug report, or improvement idea]'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Create a plan for a new feature or bug fix
|
|
@@ -43,11 +43,11 @@ ls -la docs/brainstorms/*.md 2>/dev/null | head -10
|
|
|
43
43
|
5. Use brainstorm decisions as input to the research phase
|
|
44
44
|
|
|
45
45
|
**If multiple brainstorms could match:**
|
|
46
|
-
Use **
|
|
46
|
+
Use **question tool** to ask which brainstorm to use, or whether to proceed without one.
|
|
47
47
|
|
|
48
48
|
**If no brainstorm found (or not relevant), run idea refinement:**
|
|
49
49
|
|
|
50
|
-
Refine the idea through collaborative dialogue using the **
|
|
50
|
+
Refine the idea through collaborative dialogue using the **question tool**:
|
|
51
51
|
|
|
52
52
|
- Ask questions one at a time to understand the idea fully
|
|
53
53
|
- Prefer multiple choice questions when natural options exist
|
|
@@ -74,11 +74,11 @@ First, I need to understand the project's conventions, existing patterns, and an
|
|
|
74
74
|
|
|
75
75
|
Run these agents **in parallel** to gather local context:
|
|
76
76
|
|
|
77
|
-
-
|
|
78
|
-
-
|
|
77
|
+
- task repo-research-analyst(feature_description)
|
|
78
|
+
- task learnings-researcher(feature_description)
|
|
79
79
|
|
|
80
80
|
**What to look for:**
|
|
81
|
-
- **Repo research:** existing patterns,
|
|
81
|
+
- **Repo research:** existing patterns, AGENTS.md guidance, technology familiarity, pattern consistency
|
|
82
82
|
- **Learnings:** documented solutions in `docs/solutions/` that might apply (gotchas, patterns, lessons learned)
|
|
83
83
|
|
|
84
84
|
These findings inform the next step.
|
|
@@ -89,7 +89,7 @@ Based on signals from Step 0 and findings from Step 1, decide on external resear
|
|
|
89
89
|
|
|
90
90
|
**High-risk topics → always research.** Security, payments, external APIs, data privacy. The cost of missing something is too high. This takes precedence over speed signals.
|
|
91
91
|
|
|
92
|
-
**Strong local context → skip external research.** Codebase has good patterns,
|
|
92
|
+
**Strong local context → skip external research.** Codebase has good patterns, AGENTS.md has guidance, user knows what they want. External research adds little value.
|
|
93
93
|
|
|
94
94
|
**Uncertainty or unfamiliar territory → research.** User is exploring, codebase has no examples, new technology. External perspective is valuable.
|
|
95
95
|
|
|
@@ -105,8 +105,8 @@ Examples:
|
|
|
105
105
|
|
|
106
106
|
Run these agents in parallel:
|
|
107
107
|
|
|
108
|
-
-
|
|
109
|
-
-
|
|
108
|
+
- task best-practices-researcher(feature_description)
|
|
109
|
+
- task framework-docs-researcher(feature_description)
|
|
110
110
|
|
|
111
111
|
### 1.6. Consolidate Research
|
|
112
112
|
|
|
@@ -116,7 +116,7 @@ After all research steps complete, consolidate findings:
|
|
|
116
116
|
- **Include relevant institutional learnings** from `docs/solutions/` (key insights, gotchas to avoid)
|
|
117
117
|
- Note external documentation URLs and best practices (if external research was done)
|
|
118
118
|
- List related issues or PRs discovered
|
|
119
|
-
- Capture
|
|
119
|
+
- Capture AGENTS.md conventions
|
|
120
120
|
|
|
121
121
|
**Optional validation:** Briefly summarize findings and ask if anything looks off or missing before proceeding to planning.
|
|
122
122
|
|
|
@@ -150,7 +150,7 @@ Think like a product manager - what would make this issue clear and actionable?
|
|
|
150
150
|
|
|
151
151
|
After planning the issue structure, run SpecFlow Analyzer to validate and refine the feature specification:
|
|
152
152
|
|
|
153
|
-
-
|
|
153
|
+
- task spec-flow-analyzer(feature_description, research_findings)
|
|
154
154
|
|
|
155
155
|
**SpecFlow Analyzer Output:**
|
|
156
156
|
|
|
@@ -491,38 +491,36 @@ Examples:
|
|
|
491
491
|
|
|
492
492
|
## Post-Generation Options
|
|
493
493
|
|
|
494
|
-
After writing the plan file, use the **
|
|
494
|
+
After writing the plan file, use the **question tool** to present these options:
|
|
495
495
|
|
|
496
496
|
**Question:** "Plan ready at `docs/plans/YYYY-MM-DD-<type>-<name>-plan.md`. What would you like to do next?"
|
|
497
497
|
|
|
498
498
|
**Options:**
|
|
499
499
|
1. **Open plan in editor** - Open the plan file for review
|
|
500
500
|
2. **Run `/deepen-plan`** - Enhance each section with parallel research agents (best practices, performance, UI)
|
|
501
|
-
3. **Run `/
|
|
502
|
-
4. **
|
|
503
|
-
5. **Start `/workflows:work
|
|
501
|
+
3. **Run `/technical_review`** - Technical feedback from code-focused reviewers (DHH, Kieran, Simplicity)
|
|
502
|
+
4. **Review and refine** - Improve the document through structured self-review
|
|
503
|
+
5. **Start `/workflows:work`** - Begin implementing this plan locally
|
|
504
504
|
6. **Create Issue** - Create issue in project tracker (GitHub/Linear)
|
|
505
|
-
7. **Simplify** - Reduce detail level
|
|
506
505
|
|
|
507
506
|
Based on selection:
|
|
508
507
|
- **Open plan in editor** → Run `open docs/plans/<plan_filename>.md` to open the file in the user's default editor
|
|
509
508
|
- **`/deepen-plan`** → Call the /deepen-plan command with the plan file path to enhance with research
|
|
510
|
-
- **`/
|
|
509
|
+
- **`/technical_review`** → Call the /technical_review command with the plan file path
|
|
510
|
+
- **Review and refine** → Load `document-review` skill.
|
|
511
511
|
- **`/workflows:work`** → Call the /workflows:work command with the plan file path
|
|
512
|
-
- **`/workflows:work` on remote** → Run `/workflows:work docs/plans/<plan_filename>.md &` to start work in background for Claude Code web
|
|
513
512
|
- **Create Issue** → See "Issue Creation" section below
|
|
514
|
-
- **Simplify** → Ask "What should I simplify?" then regenerate simpler version
|
|
515
513
|
- **Other** (automatically provided) → Accept free text for rework or specific changes
|
|
516
514
|
|
|
517
515
|
**Note:** If running `/workflows:plan` with ultrathink enabled, automatically run `/deepen-plan` after plan creation for maximum depth and grounding.
|
|
518
516
|
|
|
519
|
-
Loop back to options after Simplify or Other changes until user selects `/workflows:work` or `/
|
|
517
|
+
Loop back to options after Simplify or Other changes until user selects `/workflows:work` or `/technical_review`.
|
|
520
518
|
|
|
521
519
|
## Issue Creation
|
|
522
520
|
|
|
523
|
-
When user selects "Create Issue", detect their project tracker from
|
|
521
|
+
When user selects "Create Issue", detect their project tracker from AGENTS.md:
|
|
524
522
|
|
|
525
|
-
1. **Check for tracker preference** in user's
|
|
523
|
+
1. **Check for tracker preference** in user's AGENTS.md (global or project):
|
|
526
524
|
- Look for `project_tracker: github` or `project_tracker: linear`
|
|
527
525
|
- Or look for mentions of "GitHub Issues" or "Linear" in their workflow section
|
|
528
526
|
|
|
@@ -542,10 +540,10 @@ When user selects "Create Issue", detect their project tracker from CLAUDE.md:
|
|
|
542
540
|
|
|
543
541
|
4. **If no tracker configured:**
|
|
544
542
|
Ask user: "Which project tracker do you use? (GitHub/Linear/Other)"
|
|
545
|
-
- Suggest adding `project_tracker: github` or `project_tracker: linear` to their
|
|
543
|
+
- Suggest adding `project_tracker: github` or `project_tracker: linear` to their AGENTS.md
|
|
546
544
|
|
|
547
545
|
5. **After creation:**
|
|
548
546
|
- Display the issue URL
|
|
549
|
-
- Ask if they want to proceed to `/workflows:work` or `/
|
|
547
|
+
- Ask if they want to proceed to `/workflows:work` or `/technical_review`
|
|
550
548
|
|
|
551
549
|
NEVER CODE! Just research and write the plan.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: workflows:review
|
|
3
3
|
description: Perform exhaustive code reviews using multi-agent analysis, ultra-thinking, and worktrees
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: '[PR number, GitHub URL, branch name, or latest]'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Review Command
|
|
@@ -31,7 +31,7 @@ argument-hint: "[PR number, GitHub URL, branch name, or latest]"
|
|
|
31
31
|
First, I need to determine the review target type and set up the code for analysis.
|
|
32
32
|
</thinking>
|
|
33
33
|
|
|
34
|
-
#### Immediate Actions
|
|
34
|
+
#### Immediate Actions
|
|
35
35
|
|
|
36
36
|
<task_list>
|
|
37
37
|
|
|
@@ -48,29 +48,38 @@ Ensure that the code is ready for analysis (either in worktree or on current bra
|
|
|
48
48
|
|
|
49
49
|
</task_list>
|
|
50
50
|
|
|
51
|
-
####
|
|
51
|
+
#### Protected Artifacts
|
|
52
|
+
|
|
53
|
+
<protected_artifacts>
|
|
54
|
+
The following paths are systematic pipeline artifacts and must never be flagged for deletion, removal, or gitignore by any review agent:
|
|
55
|
+
|
|
56
|
+
- `docs/plans/*.md` — Plan files created by `/workflows:plan`. These are living documents that track implementation progress (checkboxes are checked off by `/workflows:work`).
|
|
57
|
+
- `docs/solutions/*.md` — Solution documents created during the pipeline.
|
|
58
|
+
|
|
59
|
+
If a review agent flags any file in these directories for cleanup or removal, discard that finding during synthesis. Do not create a todo for it.
|
|
60
|
+
</protected_artifacts>
|
|
61
|
+
|
|
62
|
+
#### Parallel Agents to review the PR
|
|
52
63
|
|
|
53
64
|
<parallel_tasks>
|
|
54
65
|
|
|
55
66
|
Run ALL or most of these agents at the same time:
|
|
56
67
|
|
|
57
|
-
1.
|
|
58
|
-
2.
|
|
59
|
-
3.
|
|
60
|
-
4.
|
|
61
|
-
5.
|
|
62
|
-
6.
|
|
63
|
-
7.
|
|
64
|
-
8.
|
|
65
|
-
9.
|
|
66
|
-
10.
|
|
67
|
-
11.
|
|
68
|
-
12. Task data-integrity-guardian(PR content)
|
|
69
|
-
13. Task agent-native-reviewer(PR content) - Verify new features are agent-accessible
|
|
68
|
+
1. task kieran-rails-reviewer(PR content) - If Rails project
|
|
69
|
+
2. task dhh-rails-reviewer(PR title) - If Rails project
|
|
70
|
+
3. task kieran-typescript-reviewer(PR content) - If TypeScript project
|
|
71
|
+
4. task git-history-analyzer(PR content)
|
|
72
|
+
5. task pattern-recognition-specialist(PR content)
|
|
73
|
+
6. task architecture-strategist(PR content)
|
|
74
|
+
7. task security-sentinel(PR content)
|
|
75
|
+
8. task performance-oracle(PR content)
|
|
76
|
+
9. task data-integrity-guardian(PR content)
|
|
77
|
+
10. task agent-native-reviewer(PR content) - Verify new features are agent-accessible
|
|
78
|
+
11. task code-simplicity-reviewer(PR content)
|
|
70
79
|
|
|
71
80
|
</parallel_tasks>
|
|
72
81
|
|
|
73
|
-
#### Conditional Agents (Run if applicable)
|
|
82
|
+
#### Conditional Agents (Run if applicable)
|
|
74
83
|
|
|
75
84
|
<conditional_agents>
|
|
76
85
|
|
|
@@ -78,8 +87,8 @@ These agents are run ONLY when the PR matches specific criteria. Check the PR fi
|
|
|
78
87
|
|
|
79
88
|
**If PR contains database migrations (db/migrate/*.rb files) or data backfills:**
|
|
80
89
|
|
|
81
|
-
14.
|
|
82
|
-
15.
|
|
90
|
+
14. task data-migration-expert(PR content) - Validates ID mappings match production, checks for swapped values, verifies rollback safety
|
|
91
|
+
15. task deployment-verification-agent(PR content) - Creates Go/No-Go deployment checklist with SQL verification queries
|
|
83
92
|
|
|
84
93
|
**When to run migration agents:**
|
|
85
94
|
- PR includes files matching `db/migrate/*.rb`
|
|
@@ -191,7 +200,7 @@ Complete system context map with component interactions
|
|
|
191
200
|
|
|
192
201
|
### 4. Simplification and Minimalism Review
|
|
193
202
|
|
|
194
|
-
Run the
|
|
203
|
+
Run the task code-simplicity-reviewer() to see if we can simplify the code.
|
|
195
204
|
|
|
196
205
|
### 5. Findings Synthesis and Todo Creation Using file-todos Skill
|
|
197
206
|
|
|
@@ -207,6 +216,7 @@ Remove duplicates, prioritize by severity and impact.
|
|
|
207
216
|
<synthesis_tasks>
|
|
208
217
|
|
|
209
218
|
- [ ] Collect findings from all parallel agents
|
|
219
|
+
- [ ] Discard any findings that recommend deleting or gitignoring files in `docs/plans/` or `docs/solutions/` (see Protected Artifacts above)
|
|
210
220
|
- [ ] Categorize by type: security, performance, architecture, quality, etc.
|
|
211
221
|
- [ ] Assign severity levels: 🔴 CRITICAL (P1), 🟡 IMPORTANT (P2), 🔵 NICE-TO-HAVE (P3)
|
|
212
222
|
- [ ] Remove duplicate or overlapping findings
|
|
@@ -222,18 +232,18 @@ Remove duplicates, prioritize by severity and impact.
|
|
|
222
232
|
|
|
223
233
|
**Option A: Direct File Creation (Fast)**
|
|
224
234
|
|
|
225
|
-
- Create todo files directly using
|
|
235
|
+
- Create todo files directly using write tool
|
|
226
236
|
- All findings in parallel for speed
|
|
227
|
-
- Use standard template from `.
|
|
237
|
+
- Use standard template from `.opencode/skills/file-todos/assets/todo-template.md`
|
|
228
238
|
- Follow naming convention: `{issue_id}-pending-{priority}-{description}.md`
|
|
229
239
|
|
|
230
240
|
**Option B: Sub-Agents in Parallel (Recommended for Scale)** For large PRs with 15+ findings, use sub-agents to create finding files in parallel:
|
|
231
241
|
|
|
232
242
|
```bash
|
|
233
243
|
# Launch multiple finding-creator agents in parallel
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
244
|
+
task() - Create todos for first finding
|
|
245
|
+
task() - Create todos for second finding
|
|
246
|
+
task() - Create todos for third finding
|
|
237
247
|
etc. for each finding.
|
|
238
248
|
```
|
|
239
249
|
|
|
@@ -272,7 +282,7 @@ Sub-agents can:
|
|
|
272
282
|
|
|
273
283
|
The skill provides:
|
|
274
284
|
|
|
275
|
-
- Template location: `.
|
|
285
|
+
- Template location: `.opencode/skills/file-todos/assets/todo-template.md`
|
|
276
286
|
- Naming convention: `{issue_id}-{status}-{priority}-{description}.md`
|
|
277
287
|
- YAML frontmatter structure: status, priority, issue_id, tags, dependencies
|
|
278
288
|
- All required sections: Problem Statement, Findings, Solutions, etc.
|
|
@@ -292,7 +302,7 @@ Sub-agents can:
|
|
|
292
302
|
004-pending-p3-unused-parameter.md
|
|
293
303
|
```
|
|
294
304
|
|
|
295
|
-
5. Follow template structure from file-todos skill: `.
|
|
305
|
+
5. Follow template structure from file-todos skill: `.opencode/skills/file-todos/assets/todo-template.md`
|
|
296
306
|
|
|
297
307
|
**Todo File Structure (from template):**
|
|
298
308
|
|
|
@@ -400,7 +410,7 @@ After creating all todo files, present comprehensive summary:
|
|
|
400
410
|
- Update Work Log as you work
|
|
401
411
|
- Commit todos: `git add todos/ && git commit -m "refactor: add code review findings"`
|
|
402
412
|
|
|
403
|
-
### Severity Breakdown
|
|
413
|
+
### Severity Breakdown
|
|
404
414
|
|
|
405
415
|
**🔴 P1 (Critical - Blocks Merge):**
|
|
406
416
|
|
|
@@ -468,12 +478,12 @@ After presenting the Summary Report, offer appropriate testing based on project
|
|
|
468
478
|
|
|
469
479
|
</offer_testing>
|
|
470
480
|
|
|
471
|
-
#### If User Accepts Web Testing
|
|
481
|
+
#### If User Accepts Web Testing
|
|
472
482
|
|
|
473
483
|
Spawn a subagent to run browser tests (preserves main context):
|
|
474
484
|
|
|
475
485
|
```
|
|
476
|
-
|
|
486
|
+
task general-purpose("Run /test-browser for PR #[number]. Test all affected pages, check for console errors, handle failures by creating todos and fixing.")
|
|
477
487
|
```
|
|
478
488
|
|
|
479
489
|
The subagent will:
|
|
@@ -487,12 +497,12 @@ The subagent will:
|
|
|
487
497
|
|
|
488
498
|
**Standalone:** `/test-browser [PR number]`
|
|
489
499
|
|
|
490
|
-
#### If User Accepts iOS Testing
|
|
500
|
+
#### If User Accepts iOS Testing
|
|
491
501
|
|
|
492
502
|
Spawn a subagent to run Xcode tests (preserves main context):
|
|
493
503
|
|
|
494
504
|
```
|
|
495
|
-
|
|
505
|
+
task general-purpose("Run /xcode-test for scheme [name]. Build for simulator, install, launch, take screenshots, check for crashes.")
|
|
496
506
|
```
|
|
497
507
|
|
|
498
508
|
The subagent will:
|
|
@@ -512,3 +522,4 @@ The subagent will:
|
|
|
512
522
|
|
|
513
523
|
Any **🔴 P1 (CRITICAL)** findings must be addressed before merging the PR. Present these prominently and ensure they're resolved before accepting the PR.
|
|
514
524
|
```
|
|
525
|
+
|