ag-cortex 0.1.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 (162) hide show
  1. package/.agent/commands/test-browser.md +339 -0
  2. package/.agent/rules/00-constitution.md +46 -0
  3. package/.agent/rules/project-rules.md +49 -0
  4. package/.agent/skills/agent-browser/SKILL.md +223 -0
  5. package/.agent/skills/agent-native-architecture/SKILL.md +435 -0
  6. package/.agent/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
  7. package/.agent/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
  8. package/.agent/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
  9. package/.agent/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
  10. package/.agent/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
  11. package/.agent/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
  12. package/.agent/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
  13. package/.agent/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
  14. package/.agent/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
  15. package/.agent/skills/agent-native-architecture/references/product-implications.md +443 -0
  16. package/.agent/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
  17. package/.agent/skills/agent-native-architecture/references/self-modification.md +269 -0
  18. package/.agent/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
  19. package/.agent/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
  20. package/.agent/skills/agent-native-reviewer/SKILL.md +246 -0
  21. package/.agent/skills/andrew-kane-gem-writer/SKILL.md +184 -0
  22. package/.agent/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
  23. package/.agent/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
  24. package/.agent/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
  25. package/.agent/skills/andrew-kane-gem-writer/references/resources.md +119 -0
  26. package/.agent/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
  27. package/.agent/skills/ankane-readme-writer/SKILL.md +50 -0
  28. package/.agent/skills/architecture-strategist/SKILL.md +52 -0
  29. package/.agent/skills/best-practices-researcher/SKILL.md +100 -0
  30. package/.agent/skills/bug-reproduction-validator/SKILL.md +67 -0
  31. package/.agent/skills/code-simplicity-reviewer/SKILL.md +85 -0
  32. package/.agent/skills/coding-tutor/.claude-plugin/plugin.json +9 -0
  33. package/.agent/skills/coding-tutor/README.md +37 -0
  34. package/.agent/skills/coding-tutor/commands/quiz-me.md +1 -0
  35. package/.agent/skills/coding-tutor/commands/sync-tutorials.md +25 -0
  36. package/.agent/skills/coding-tutor/commands/teach-me.md +1 -0
  37. package/.agent/skills/coding-tutor/skills/coding-tutor/SKILL.md +214 -0
  38. package/.agent/skills/coding-tutor/skills/coding-tutor/scripts/create_tutorial.py +202 -0
  39. package/.agent/skills/coding-tutor/skills/coding-tutor/scripts/index_tutorials.py +203 -0
  40. package/.agent/skills/coding-tutor/skills/coding-tutor/scripts/quiz_priority.py +190 -0
  41. package/.agent/skills/coding-tutor/skills/coding-tutor/scripts/setup_tutorials.py +132 -0
  42. package/.agent/skills/compound-docs/SKILL.md +510 -0
  43. package/.agent/skills/compound-docs/assets/critical-pattern-template.md +34 -0
  44. package/.agent/skills/compound-docs/assets/resolution-template.md +93 -0
  45. package/.agent/skills/compound-docs/references/yaml-schema.md +65 -0
  46. package/.agent/skills/compound-docs/schema.yaml +176 -0
  47. package/.agent/skills/create-agent-skills/SKILL.md +299 -0
  48. package/.agent/skills/create-agent-skills/references/api-security.md +226 -0
  49. package/.agent/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
  50. package/.agent/skills/create-agent-skills/references/best-practices.md +404 -0
  51. package/.agent/skills/create-agent-skills/references/common-patterns.md +595 -0
  52. package/.agent/skills/create-agent-skills/references/core-principles.md +437 -0
  53. package/.agent/skills/create-agent-skills/references/executable-code.md +175 -0
  54. package/.agent/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
  55. package/.agent/skills/create-agent-skills/references/official-spec.md +185 -0
  56. package/.agent/skills/create-agent-skills/references/recommended-structure.md +168 -0
  57. package/.agent/skills/create-agent-skills/references/skill-structure.md +372 -0
  58. package/.agent/skills/create-agent-skills/references/using-scripts.md +113 -0
  59. package/.agent/skills/create-agent-skills/references/using-templates.md +112 -0
  60. package/.agent/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
  61. package/.agent/skills/create-agent-skills/templates/router-skill.md +73 -0
  62. package/.agent/skills/create-agent-skills/templates/simple-skill.md +33 -0
  63. package/.agent/skills/create-agent-skills/workflows/add-reference.md +96 -0
  64. package/.agent/skills/create-agent-skills/workflows/add-script.md +93 -0
  65. package/.agent/skills/create-agent-skills/workflows/add-template.md +74 -0
  66. package/.agent/skills/create-agent-skills/workflows/add-workflow.md +120 -0
  67. package/.agent/skills/create-agent-skills/workflows/audit-skill.md +138 -0
  68. package/.agent/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
  69. package/.agent/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
  70. package/.agent/skills/create-agent-skills/workflows/get-guidance.md +121 -0
  71. package/.agent/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
  72. package/.agent/skills/create-agent-skills/workflows/verify-skill.md +204 -0
  73. package/.agent/skills/data-integrity-guardian/SKILL.md +70 -0
  74. package/.agent/skills/data-migration-expert/SKILL.md +97 -0
  75. package/.agent/skills/deployment-verification-agent/SKILL.md +159 -0
  76. package/.agent/skills/design-implementation-reviewer/SKILL.md +85 -0
  77. package/.agent/skills/design-iterator/SKILL.md +197 -0
  78. package/.agent/skills/dhh-rails-reviewer/SKILL.md +45 -0
  79. package/.agent/skills/dhh-rails-style/SKILL.md +184 -0
  80. package/.agent/skills/dhh-rails-style/references/architecture.md +653 -0
  81. package/.agent/skills/dhh-rails-style/references/controllers.md +303 -0
  82. package/.agent/skills/dhh-rails-style/references/frontend.md +510 -0
  83. package/.agent/skills/dhh-rails-style/references/gems.md +266 -0
  84. package/.agent/skills/dhh-rails-style/references/models.md +359 -0
  85. package/.agent/skills/dhh-rails-style/references/testing.md +338 -0
  86. package/.agent/skills/dspy-ruby/SKILL.md +594 -0
  87. package/.agent/skills/dspy-ruby/assets/config-template.rb +359 -0
  88. package/.agent/skills/dspy-ruby/assets/module-template.rb +326 -0
  89. package/.agent/skills/dspy-ruby/assets/signature-template.rb +143 -0
  90. package/.agent/skills/dspy-ruby/references/core-concepts.md +265 -0
  91. package/.agent/skills/dspy-ruby/references/optimization.md +623 -0
  92. package/.agent/skills/dspy-ruby/references/providers.md +305 -0
  93. package/.agent/skills/every-style-editor/SKILL.md +134 -0
  94. package/.agent/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
  95. package/.agent/skills/figma-design-sync/SKILL.md +166 -0
  96. package/.agent/skills/file-todos/SKILL.md +251 -0
  97. package/.agent/skills/file-todos/assets/todo-template.md +155 -0
  98. package/.agent/skills/framework-docs-researcher/SKILL.md +83 -0
  99. package/.agent/skills/frontend-design/SKILL.md +42 -0
  100. package/.agent/skills/gemini-imagegen/SKILL.md +237 -0
  101. package/.agent/skills/gemini-imagegen/requirements.txt +2 -0
  102. package/.agent/skills/gemini-imagegen/scripts/compose_images.py +168 -0
  103. package/.agent/skills/gemini-imagegen/scripts/edit_image.py +157 -0
  104. package/.agent/skills/gemini-imagegen/scripts/gemini_images.py +265 -0
  105. package/.agent/skills/gemini-imagegen/scripts/generate_image.py +147 -0
  106. package/.agent/skills/gemini-imagegen/scripts/multi_turn_chat.py +215 -0
  107. package/.agent/skills/git-history-analyzer/SKILL.md +42 -0
  108. package/.agent/skills/git-worktree/SKILL.md +302 -0
  109. package/.agent/skills/git-worktree/scripts/worktree-manager.sh +345 -0
  110. package/.agent/skills/julik-frontend-races-reviewer/SKILL.md +222 -0
  111. package/.agent/skills/kieran-python-reviewer/SKILL.md +104 -0
  112. package/.agent/skills/kieran-rails-reviewer/SKILL.md +86 -0
  113. package/.agent/skills/kieran-typescript-reviewer/SKILL.md +95 -0
  114. package/.agent/skills/lint/SKILL.md +16 -0
  115. package/.agent/skills/pattern-recognition-specialist/SKILL.md +57 -0
  116. package/.agent/skills/performance-oracle/SKILL.md +110 -0
  117. package/.agent/skills/pr-comment-resolver/SKILL.md +69 -0
  118. package/.agent/skills/rclone/SKILL.md +150 -0
  119. package/.agent/skills/rclone/scripts/check_setup.sh +60 -0
  120. package/.agent/skills/repo-research-analyst/SKILL.md +113 -0
  121. package/.agent/skills/security-sentinel/SKILL.md +93 -0
  122. package/.agent/skills/skill-creator/SKILL.md +209 -0
  123. package/.agent/skills/skill-creator/scripts/init_skill.py +304 -0
  124. package/.agent/skills/skill-creator/scripts/package_skill.py +112 -0
  125. package/.agent/skills/skill-creator/scripts/quick_validate.py +72 -0
  126. package/.agent/skills/spec-flow-analyzer/SKILL.md +113 -0
  127. package/.agent/skills/test-agent/SKILL.md +4 -0
  128. package/.agent/workflows/agent-native-audit.md +277 -0
  129. package/.agent/workflows/ask-user-question.md +21 -0
  130. package/.agent/workflows/changelog.md +137 -0
  131. package/.agent/workflows/compound.md +202 -0
  132. package/.agent/workflows/create-agent-skill.md +8 -0
  133. package/.agent/workflows/deepen-plan-research.md +334 -0
  134. package/.agent/workflows/deepen-plan-synthesis.md +182 -0
  135. package/.agent/workflows/deepen-plan.md +79 -0
  136. package/.agent/workflows/feature-video.md +342 -0
  137. package/.agent/workflows/generate-command.md +162 -0
  138. package/.agent/workflows/heal-skill.md +142 -0
  139. package/.agent/workflows/lfg.md +20 -0
  140. package/.agent/workflows/plan-analysis.md +67 -0
  141. package/.agent/workflows/plan-next-steps.md +63 -0
  142. package/.agent/workflows/plan-review.md +33 -0
  143. package/.agent/workflows/plan-synthesis.md +106 -0
  144. package/.agent/workflows/plan.md +49 -0
  145. package/.agent/workflows/report-bug.md +150 -0
  146. package/.agent/workflows/reproduce-bug.md +99 -0
  147. package/.agent/workflows/resolve-parallel.md +34 -0
  148. package/.agent/workflows/resolve-pr-parallel.md +49 -0
  149. package/.agent/workflows/resolve-todo-parallel.md +35 -0
  150. package/.agent/workflows/review-analysis.md +145 -0
  151. package/.agent/workflows/review-synthesis.md +262 -0
  152. package/.agent/workflows/review.md +64 -0
  153. package/.agent/workflows/ship.md +90 -0
  154. package/.agent/workflows/test-command.md +3 -0
  155. package/.agent/workflows/triage.md +310 -0
  156. package/.agent/workflows/work.md +157 -0
  157. package/.agent/workflows/xcode-test.md +332 -0
  158. package/LICENSE +22 -0
  159. package/README.md +49 -0
  160. package/bin/ag-cortex.js +54 -0
  161. package/lib/core.js +165 -0
  162. package/package.json +31 -0
@@ -0,0 +1,150 @@
1
+ ---
2
+ name: report-bug
3
+ description: Report a bug in the compound-engineering plugin
4
+ argument-hint: "[optional: brief description of the bug]"
5
+ ---
6
+
7
+ # Report a Compounding Engineering Plugin Bug
8
+
9
+ Report bugs encountered while using the compound-engineering plugin. This command gathers structured information and creates a GitHub issue for the maintainer.
10
+
11
+ ## Step 1: Gather Bug Information
12
+
13
+ Use the AskUserQuestion tool to collect the following information:
14
+
15
+ **Question 1: Bug Category**
16
+ - What type of issue are you experiencing?
17
+ - Options: Agent not working, Command not working, Skill not working, MCP server issue, Installation problem, Other
18
+
19
+ **Question 2: Specific Component**
20
+ - Which specific component is affected?
21
+ - Ask for the name of the agent, command, skill, or MCP server
22
+
23
+ **Question 3: What Happened (Actual Behavior)**
24
+ - Ask: "What happened when you used this component?"
25
+ - Get a clear description of the actual behavior
26
+
27
+ **Question 4: What Should Have Happened (Expected Behavior)**
28
+ - Ask: "What did you expect to happen instead?"
29
+ - Get a clear description of expected behavior
30
+
31
+ **Question 5: Steps to Reproduce**
32
+ - Ask: "What steps did you take before the bug occurred?"
33
+ - Get reproduction steps
34
+
35
+ **Question 6: Error Messages**
36
+ - Ask: "Did you see any error messages? If so, please share them."
37
+ - Capture any error output
38
+
39
+ ## Step 2: Collect Environment Information
40
+
41
+ Automatically gather:
42
+ ```bash
43
+ # Get plugin version
44
+ cat ~/.antigravity/plugins/installed_plugins.json 2>/dev/null | grep -A5 "compound-engineering" | head -10 || echo "Plugin info not found"
45
+
46
+ # Get Antigravity version
47
+ antigravity --version 2>/dev/null || echo "Antigravity CLI version unknown"
48
+
49
+ # Get OS info
50
+ uname -a
51
+ ```
52
+
53
+ ## Step 3: Format the Bug Report
54
+
55
+ Create a well-structured bug report with:
56
+
57
+ ```markdown
58
+ ## Bug Description
59
+
60
+ **Component:** [Type] - [Name]
61
+ **Summary:** [Brief description from argument or collected info]
62
+
63
+ ## Environment
64
+
65
+ - **Plugin Version:** [from installed_plugins.json]
66
+ - **Antigravity Version:** [from antigravity --version]
67
+ - **OS:** [from uname]
68
+
69
+ ## What Happened
70
+
71
+ [Actual behavior description]
72
+
73
+ ## Expected Behavior
74
+
75
+ [Expected behavior description]
76
+
77
+ ## Steps to Reproduce
78
+
79
+ 1. [Step 1]
80
+ 2. [Step 2]
81
+ 3. [Step 3]
82
+
83
+ ## Error Messages
84
+
85
+ ```
86
+ [Any error output]
87
+ ```
88
+
89
+ ## Additional Context
90
+
91
+ [Any other relevant information]
92
+
93
+ ---
94
+ *Reported via `/report-bug` command*
95
+ ```
96
+
97
+ ## Step 4: Create GitHub Issue
98
+
99
+ Use the GitHub CLI to create the issue:
100
+
101
+ ```bash
102
+ gh issue create \
103
+ --repo EveryInc/every-marketplace \
104
+ --title "[compound-engineering] Bug: [Brief description]" \
105
+ --body "[Formatted bug report from Step 3]" \
106
+ --label "bug,compound-engineering"
107
+ ```
108
+
109
+ **Note:** If labels don't exist, create without labels:
110
+ ```bash
111
+ gh issue create \
112
+ --repo EveryInc/every-marketplace \
113
+ --title "[compound-engineering] Bug: [Brief description]" \
114
+ --body "[Formatted bug report]"
115
+ ```
116
+
117
+ ## Step 5: Confirm Submission
118
+
119
+ After the issue is created:
120
+ 1. Display the issue URL to the user
121
+ 2. Thank them for reporting the bug
122
+ 3. Let them know the maintainer (Kieran Klaassen) will be notified
123
+
124
+ ## Output Format
125
+
126
+ ```
127
+ ✅ Bug report submitted successfully!
128
+
129
+ Issue: https://github.com/EveryInc/every-marketplace/issues/[NUMBER]
130
+ Title: [compound-engineering] Bug: [description]
131
+
132
+ Thank you for helping improve the compound-engineering plugin!
133
+ The maintainer will review your report and respond as soon as possible.
134
+ ```
135
+
136
+ ## Error Handling
137
+
138
+ - If `gh` CLI is not authenticated: Prompt user to run `gh auth login` first
139
+ - If issue creation fails: Display the formatted report so user can manually create the issue
140
+ - If required information is missing: Re-prompt for that specific field
141
+
142
+ ## Privacy Notice
143
+
144
+ This command does NOT collect:
145
+ - Personal information
146
+ - API keys or credentials
147
+ - Private code from your projects
148
+ - File paths beyond basic OS info
149
+
150
+ Only technical information about the bug is included in the report.
@@ -0,0 +1,99 @@
1
+ ---
2
+ name: reproduce-bug
3
+ description: Reproduce and investigate a bug using logs, console inspection, and browser screenshots
4
+ argument-hint: "[GitHub issue number]"
5
+ ---
6
+
7
+ # Reproduce Bug Command
8
+
9
+ Look at github issue #$ARGUMENTS and read the issue description and comments.
10
+
11
+ ## Phase 1: Log Investigation
12
+
13
+ Run the following agents in parallel to investigate the bug:
14
+
15
+ 1. Task rails-console-explorer(issue_description)
16
+ 2. Task appsignal-log-investigator(issue_description)
17
+
18
+ Think about the places it could go wrong looking at the codebase. Look for logging output we can look for.
19
+
20
+ Run the agents again to find any logs that could help us reproduce the bug.
21
+
22
+ Keep running these agents until you have a good idea of what is going on.
23
+
24
+ ## Phase 2: Visual Reproduction with Playwright
25
+
26
+ If the bug is UI-related or involves user flows, use Playwright to visually reproduce it:
27
+
28
+ ### Step 1: Verify Server is Running
29
+
30
+ ```
31
+ mcp__plugin_compound-engineering_pw__browser_navigate({ url: "http://localhost:3000" })
32
+ mcp__plugin_compound-engineering_pw__browser_snapshot({})
33
+ ```
34
+
35
+ If server not running, inform user to start `bin/dev`.
36
+
37
+ ### Step 2: Navigate to Affected Area
38
+
39
+ Based on the issue description, navigate to the relevant page:
40
+
41
+ ```
42
+ mcp__plugin_compound-engineering_pw__browser_navigate({ url: "http://localhost:3000/[affected_route]" })
43
+ mcp__plugin_compound-engineering_pw__browser_snapshot({})
44
+ ```
45
+
46
+ ### Step 3: Capture Screenshots
47
+
48
+ Take screenshots at each step of reproducing the bug:
49
+
50
+ ```
51
+ mcp__plugin_compound-engineering_pw__browser_take_screenshot({ filename: "bug-[issue]-step-1.png" })
52
+ ```
53
+
54
+ ### Step 4: Follow User Flow
55
+
56
+ Reproduce the exact steps from the issue:
57
+
58
+ 1. **Read the issue's reproduction steps**
59
+ 2. **Execute each step using Playwright:**
60
+ - `browser_click` for clicking elements
61
+ - `browser_type` for filling forms
62
+ - `browser_snapshot` to see the current state
63
+ - `browser_take_screenshot` to capture evidence
64
+
65
+ 3. **Check for console errors:**
66
+ ```
67
+ mcp__plugin_compound-engineering_pw__browser_console_messages({ level: "error" })
68
+ ```
69
+
70
+ ### Step 5: Capture Bug State
71
+
72
+ When you reproduce the bug:
73
+
74
+ 1. Take a screenshot of the bug state
75
+ 2. Capture console errors
76
+ 3. Document the exact steps that triggered it
77
+
78
+ ```
79
+ mcp__plugin_compound-engineering_pw__browser_take_screenshot({ filename: "bug-[issue]-reproduced.png" })
80
+ ```
81
+
82
+ ## Phase 3: Document Findings
83
+
84
+ **Reference Collection:**
85
+
86
+ - [ ] Document all research findings with specific file paths (e.g., `app/services/example_service.rb:42`)
87
+ - [ ] Include screenshots showing the bug reproduction
88
+ - [ ] List console errors if any
89
+ - [ ] Document the exact reproduction steps
90
+
91
+ ## Phase 4: Report Back
92
+
93
+ Add a comment to the issue with:
94
+
95
+ 1. **Findings** - What you discovered about the cause
96
+ 2. **Reproduction Steps** - Exact steps to reproduce (verified)
97
+ 3. **Screenshots** - Visual evidence of the bug (upload captured screenshots)
98
+ 4. **Relevant Code** - File paths and line numbers
99
+ 5. **Suggested Fix** - If you have one
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: resolve_parallel
3
+ description: Resolve all TODO comments using parallel processing
4
+ argument-hint: "[optional: specific TODO pattern or file]"
5
+ ---
6
+
7
+ Resolve all TODO comments using parallel processing.
8
+
9
+ ## Workflow
10
+
11
+ ### 1. Analyze
12
+
13
+ Gather the things todo from above.
14
+
15
+ ### 2. Plan
16
+
17
+ Create a TodoWrite list of all unresolved items grouped by type.Make sure to look at dependencies that might occur and prioritize the ones needed by others. For example, if you need to change a name, you must wait to do the others. Output a mermaid flow diagram showing how we can do this. Can we do everything in parallel? Do we need to do one first that leads to others in parallel? I'll put the to-dos in the mermaid diagram flow‑wise so the agent knows how to proceed in order.
18
+
19
+ ### 3. Implement (PARALLEL)
20
+
21
+ Spawn a pr-comment-resolver agent for each unresolved item in parallel.
22
+
23
+ So if there are 3 comments, it will spawn 3 pr-comment-resolver agents in parallel. liek this
24
+
25
+ 1. Task pr-comment-resolver(comment1)
26
+ 2. Task pr-comment-resolver(comment2)
27
+ 3. Task pr-comment-resolver(comment3)
28
+
29
+ Always run all in parallel subagents/Tasks for each Todo item.
30
+
31
+ ### 4. Commit & Resolve
32
+
33
+ - Commit changes
34
+ - Push to remote
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: resolve_pr_parallel
3
+ description: Resolve all PR comments using parallel processing
4
+ argument-hint: "[optional: PR number or current PR]"
5
+ ---
6
+
7
+ Resolve all PR comments using parallel processing.
8
+
9
+ Antigravity automatically detects and understands your git context:
10
+
11
+ - Current branch detection
12
+ - Associated PR context
13
+ - All PR comments and review threads
14
+ - Can work with any PR by specifying the PR number, or ask it.
15
+
16
+ ## Workflow
17
+
18
+ ### 1. Analyze
19
+
20
+ Get all unresolved comments for PR
21
+
22
+ ```bash
23
+ gh pr status
24
+ bin/get-pr-comments PR_NUMBER
25
+ ```
26
+
27
+ ### 2. Plan
28
+
29
+ Create a TodoWrite list of all unresolved items grouped by type.
30
+
31
+ ### 3. Implement (PARALLEL)
32
+
33
+ Spawn a pr-comment-resolver agent for each unresolved item in parallel.
34
+
35
+ So if there are 3 comments, it will spawn 3 pr-comment-resolver agents in parallel. liek this
36
+
37
+ 1. Task pr-comment-resolver(comment1)
38
+ 2. Task pr-comment-resolver(comment2)
39
+ 3. Task pr-comment-resolver(comment3)
40
+
41
+ Always run all in parallel subagents/Tasks for each Todo item.
42
+
43
+ ### 4. Commit & Resolve
44
+
45
+ - Commit changes
46
+ - Run bin/resolve-pr-thread THREAD_ID_1
47
+ - Push to remote
48
+
49
+ Last, check bin/get-pr-comments PR_NUMBER again to see if all comments are resolved. They should be, if not, repeat the process from 1.
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: resolve_todo_parallel
3
+ description: Resolve all pending CLI todos using parallel processing
4
+ argument-hint: "[optional: specific todo ID or pattern]"
5
+ ---
6
+
7
+ Resolve all TODO comments using parallel processing.
8
+
9
+ ## Workflow
10
+
11
+ ### 1. Analyze
12
+
13
+ Get all unresolved TODOs from the /todos/\*.md directory
14
+
15
+ ### 2. Plan
16
+
17
+ Create a TodoWrite list of all unresolved items grouped by type.Make sure to look at dependencies that might occur and prioritize the ones needed by others. For example, if you need to change a name, you must wait to do the others. Output a mermaid flow diagram showing how we can do this. Can we do everything in parallel? Do we need to do one first that leads to others in parallel? I'll put the to-dos in the mermaid diagram flow‑wise so the agent knows how to proceed in order.
18
+
19
+ ### 3. Implement (PARALLEL)
20
+
21
+ Spawn a pr-comment-resolver agent for each unresolved item in parallel.
22
+
23
+ So if there are 3 comments, it will spawn 3 pr-comment-resolver agents in parallel. liek this
24
+
25
+ 1. Task pr-comment-resolver(comment1)
26
+ 2. Task pr-comment-resolver(comment2)
27
+ 3. Task pr-comment-resolver(comment3)
28
+
29
+ Always run all in parallel subagents/Tasks for each Todo item.
30
+
31
+ ### 4. Commit & Resolve
32
+
33
+ - Commit changes
34
+ - Remove the TODO from the file, and mark it as resolved.
35
+ - Push to remote
@@ -0,0 +1,145 @@
1
+ ---
2
+ name: review-analysis
3
+ description: "Internal sub-workflow for the Review Analysis phase. Executes deep agentic analysis."
4
+ ---
5
+
6
+ # Review - Analysis Phase
7
+
8
+ <review_target> #$ARGUMENTS </review_target>
9
+
10
+ ## Main Tasks
11
+
12
+ ### 1. Parallel Agent Analysis
13
+
14
+ <thinking>
15
+ Run ALL or most of these agents at the same time.
16
+ </thinking>
17
+
18
+ #### Parallel Review Agents:
19
+
20
+ 1. Task kieran-rails-reviewer(review_target)
21
+ 2. Task dhh-rails-reviewer(review_target)
22
+ 3. If turbo is used: Task rails-turbo-expert(review_target)
23
+ 4. Task git-history-analyzer(review_target)
24
+ 5. Task dependency-detective(review_target)
25
+ 6. Task pattern-recognition-specialist(review_target)
26
+ 7. Task architecture-strategist(review_target)
27
+ 8. Task code-philosopher(review_target)
28
+ 9. Task security-sentinel(review_target)
29
+ 10. Task performance-oracle(review_target)
30
+ 11. Task devops-harmony-analyst(review_target)
31
+ 12. Task data-integrity-guardian(review_target)
32
+ 13. Task agent-native-reviewer(review_target) - Verify new features are agent-accessible
33
+
34
+ #### Conditional Agents (Run if applicable):
35
+
36
+ These agents are run ONLY when the PR matches specific criteria. Check the PR files list to determine if they apply:
37
+
38
+ **If PR contains database migrations (db/migrate/*.rb files) or data backfills:**
39
+
40
+ 14. Task data-migration-expert(review_target) - Validates ID mappings match production, checks for swapped values, verifies rollback safety
41
+ 15. Task deployment-verification-agent(review_target) - Creates Go/No-Go deployment checklist with SQL verification queries
42
+
43
+ **When to run migration agents:**
44
+ - PR includes files matching `db/migrate/*.rb`
45
+ - PR modifies columns that store IDs, enums, or mappings
46
+ - PR includes data backfill scripts or rake tasks
47
+ - PR changes how data is read/written (e.g., changing from FK to string column)
48
+ - PR title/body mentions: migration, backfill, data transformation, ID mapping
49
+
50
+ **What these agents check:**
51
+ - `data-migration-expert`: Verifies hard-coded mappings match production reality (prevents swapped IDs), checks for orphaned associations, validates dual-write patterns
52
+ - `deployment-verification-agent`: Produces executable pre/post-deploy checklists with SQL queries, rollback procedures, and monitoring plans
53
+
54
+ ### 2. Ultra-Thinking Deep Dive Phases
55
+
56
+ <ultrathink_instruction> For each phase below, spend maximum cognitive effort. Think step by step. Consider all angles. Question assumptions. And bring all reviews in a synthesis to the user.</ultrathink_instruction>
57
+
58
+ <deliverable>
59
+ Complete system context map with component interactions
60
+ </deliverable>
61
+
62
+ #### Phase 1: Stakeholder Perspective Analysis
63
+
64
+ <thinking_prompt> ULTRA-THINK: Put yourself in each stakeholder's shoes. What matters to them? What are their pain points? </thinking_prompt>
65
+
66
+ <stakeholder_perspectives>
67
+
68
+ 1. **Developer Perspective** <questions>
69
+ - How easy is this to understand and modify?
70
+ - Are the APIs intuitive?
71
+ - Is debugging straightforward?
72
+ - Can I test this easily? </questions>
73
+
74
+ 2. **Operations Perspective** <questions>
75
+ - How do I deploy this safely?
76
+ - What metrics and logs are available?
77
+ - How do I troubleshoot issues?
78
+ - What are the resource requirements? </questions>
79
+
80
+ 3. **End User Perspective** <questions>
81
+ - Is the feature intuitive?
82
+ - Are error messages helpful?
83
+ - Is performance acceptable?
84
+ - Does it solve my problem? </questions>
85
+
86
+ 4. **Security Team Perspective** <questions>
87
+ - What's the attack surface?
88
+ - Are there compliance requirements?
89
+ - How is data protected?
90
+ - What are the audit capabilities? </questions>
91
+
92
+ 5. **Business Perspective** <questions>
93
+ - What's the ROI?
94
+ - Are there legal/compliance risks?
95
+ - How does this affect time-to-market?
96
+ - What's the total cost of ownership? </questions>
97
+
98
+ </stakeholder_perspectives>
99
+
100
+ #### Phase 2: Scenario Exploration
101
+
102
+ <thinking_prompt> ULTRA-THINK: Explore edge cases and failure scenarios. What could go wrong? How does the system behave under stress? </thinking_prompt>
103
+
104
+ <scenario_checklist>
105
+ - [ ] **Happy Path**: Normal operation with valid inputs
106
+ - [ ] **Invalid Inputs**: Null, empty, malformed data
107
+ - [ ] **Boundary Conditions**: Min/max values, empty collections
108
+ - [ ] **Concurrent Access**: Race conditions, deadlocks
109
+ - [ ] **Scale Testing**: 10x, 100x, 1000x normal load
110
+ - [ ] **Network Issues**: Timeouts, partial failures
111
+ - [ ] **Resource Exhaustion**: Memory, disk, connections
112
+ - [ ] **Security Attacks**: Injection, overflow, DoS
113
+ - [ ] **Data Corruption**: Partial writes, inconsistency
114
+ - [ ] **Cascading Failures**: Downstream service issues
115
+ </scenario_checklist>
116
+
117
+ ### 3. Multi-Angle Review Perspectives
118
+
119
+ #### Technical Excellence Angle
120
+ - Code craftsmanship evaluation
121
+ - Engineering best practices
122
+ - Technical documentation quality
123
+ - Tooling and automation assessment
124
+
125
+ #### Business Value Angle
126
+ - Feature completeness validation
127
+ - Performance impact on users
128
+ - Cost-benefit analysis
129
+ - Time-to-market considerations
130
+
131
+ #### Risk Management Angle
132
+ - Security risk assessment
133
+ - Operational risk evaluation
134
+ - Compliance risk verification
135
+ - Technical debt accumulation
136
+
137
+ #### Team Dynamics Angle
138
+ - Code review etiquette
139
+ - Knowledge sharing effectiveness
140
+ - Collaboration patterns
141
+ - Mentoring opportunities
142
+
143
+ ### 4. Simplification and Minimalism Review
144
+
145
+ Run the Task code-simplicity-reviewer() to see if we can simplify the code.