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,310 @@
1
+ ---
2
+ name: triage
3
+ description: Triage and categorize findings for the CLI todo system
4
+ argument-hint: "[findings list or source type]"
5
+ ---
6
+
7
+ - First set the /model to Haiku
8
+ - Then read all pending todos in the todos/ directory
9
+
10
+ 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.
11
+
12
+ **IMPORTANT: DO NOT CODE ANYTHING DURING TRIAGE!**
13
+
14
+ This command is for:
15
+
16
+ - Triaging code review findings
17
+ - Processing security audit results
18
+ - Reviewing performance analysis
19
+ - Handling any other categorized findings that need tracking
20
+
21
+ ## Workflow
22
+
23
+ ### Step 1: Present Each Finding
24
+
25
+ For each finding, present in this format:
26
+
27
+ ```
28
+ ---
29
+ Issue #X: [Brief Title]
30
+
31
+ Severity: 🔴 P1 (CRITICAL) / 🟡 P2 (IMPORTANT) / 🔵 P3 (NICE-TO-HAVE)
32
+
33
+ Category: [Security/Performance/Architecture/Bug/Feature/etc.]
34
+
35
+ Description:
36
+ [Detailed explanation of the issue or improvement]
37
+
38
+ Location: [file_path:line_number]
39
+
40
+ Problem Scenario:
41
+ [Step by step what's wrong or could happen]
42
+
43
+ Proposed Solution:
44
+ [How to fix it]
45
+
46
+ Estimated Effort: [Small (< 2 hours) / Medium (2-8 hours) / Large (> 8 hours)]
47
+
48
+ ---
49
+ Do you want to add this to the todo list?
50
+ 1. yes - create todo file
51
+ 2. next - skip this item
52
+ 3. custom - modify before creating
53
+ ```
54
+
55
+ ### Step 2: Handle User Decision
56
+
57
+ **When user says "yes":**
58
+
59
+ 1. **Update existing todo file** (if it exists) or **Create new filename:**
60
+
61
+ If todo already exists (from code review):
62
+
63
+ - Rename file from `{id}-pending-{priority}-{desc}.md` → `{id}-ready-{priority}-{desc}.md`
64
+ - Update YAML frontmatter: `status: pending` → `status: ready`
65
+ - Keep issue_id, priority, and description unchanged
66
+
67
+ If creating new todo:
68
+
69
+ ```
70
+ {next_id}-ready-{priority}-{brief-description}.md
71
+ ```
72
+
73
+ Priority mapping:
74
+
75
+ - 🔴 P1 (CRITICAL) → `p1`
76
+ - 🟡 P2 (IMPORTANT) → `p2`
77
+ - 🔵 P3 (NICE-TO-HAVE) → `p3`
78
+
79
+ Example: `042-ready-p1-transaction-boundaries.md`
80
+
81
+ 2. **Update YAML frontmatter:**
82
+
83
+ ```yaml
84
+ ---
85
+ status: ready # IMPORTANT: Change from "pending" to "ready"
86
+ priority: p1 # or p2, p3 based on severity
87
+ issue_id: "042"
88
+ tags: [category, relevant-tags]
89
+ dependencies: []
90
+ ---
91
+ ```
92
+
93
+ 3. **Populate or update the file:**
94
+
95
+ ```yaml
96
+ # [Issue Title]
97
+
98
+ ## Problem Statement
99
+ [Description from finding]
100
+
101
+ ## Findings
102
+ - [Key discoveries]
103
+ - Location: [file_path:line_number]
104
+ - [Scenario details]
105
+
106
+ ## Proposed Solutions
107
+
108
+ ### Option 1: [Primary solution]
109
+ - **Pros**: [Benefits]
110
+ - **Cons**: [Drawbacks if any]
111
+ - **Effort**: [Small/Medium/Large]
112
+ - **Risk**: [Low/Medium/High]
113
+
114
+ ## Recommended Action
115
+ [Filled during triage - specific action plan]
116
+
117
+ ## Technical Details
118
+ - **Affected Files**: [List files]
119
+ - **Related Components**: [Components affected]
120
+ - **Database Changes**: [Yes/No - describe if yes]
121
+
122
+ ## Resources
123
+ - Original finding: [Source of this issue]
124
+ - Related issues: [If any]
125
+
126
+ ## Acceptance Criteria
127
+ - [ ] [Specific success criteria]
128
+ - [ ] Tests pass
129
+ - [ ] Code reviewed
130
+
131
+ ## Work Log
132
+
133
+ ### {date} - Approved for Work
134
+ **By:** Antigravity Triage System
135
+ **Actions:**
136
+ - Issue approved during triage session
137
+ - Status changed from pending → ready
138
+ - Ready to be picked up and worked on
139
+
140
+ **Learnings:**
141
+ - [Context and insights]
142
+
143
+ ## Notes
144
+ Source: Triage session on {date}
145
+ ```
146
+
147
+ 4. **Confirm approval:** "✅ Approved: `{new_filename}` (Issue #{issue_id}) - Status: **ready** → Ready to work on"
148
+
149
+ **When user says "next":**
150
+
151
+ - **Delete the todo file** - Remove it from todos/ directory since it's not relevant
152
+ - Skip to the next item
153
+ - Track skipped items for summary
154
+
155
+ **When user says "custom":**
156
+
157
+ - Ask what to modify (priority, description, details)
158
+ - Update the information
159
+ - Present revised version
160
+ - Ask again: yes/next/custom
161
+
162
+ ### Step 3: Continue Until All Processed
163
+
164
+ - Process all items one by one
165
+ - Track using TodoWrite for visibility
166
+ - Don't wait for approval between items - keep moving
167
+
168
+ ### Step 4: Final Summary
169
+
170
+ After all items processed:
171
+
172
+ ````markdown
173
+ ## Triage Complete
174
+
175
+ **Total Items:** [X] **Todos Approved (ready):** [Y] **Skipped:** [Z]
176
+
177
+ ### Approved Todos (Ready for Work):
178
+
179
+ - `042-ready-p1-transaction-boundaries.md` - Transaction boundary issue
180
+ - `043-ready-p2-cache-optimization.md` - Cache performance improvement ...
181
+
182
+ ### Skipped Items (Deleted):
183
+
184
+ - Item #5: [reason] - Removed from todos/
185
+ - Item #12: [reason] - Removed from todos/
186
+
187
+ ### Summary of Changes Made:
188
+
189
+ During triage, the following status updates occurred:
190
+
191
+ - **Pending → Ready:** Filenames and frontmatter updated to reflect approved status
192
+ - **Deleted:** Todo files for skipped findings removed from todos/ directory
193
+ - Each approved file now has `status: ready` in YAML frontmatter
194
+
195
+ ### Next Steps:
196
+
197
+ 1. View approved todos ready for work:
198
+ ```bash
199
+ ls todos/*-ready-*.md
200
+ ```
201
+ ````
202
+
203
+ 2. Start work on approved items:
204
+
205
+ ```bash
206
+ /resolve_todo_parallel # Work on multiple approved items efficiently
207
+ ```
208
+
209
+ 3. Or pick individual items to work on
210
+
211
+ 4. As you work, update todo status:
212
+ - Ready → In Progress (in your local context as you work)
213
+ - In Progress → Complete (rename file: ready → complete, update frontmatter)
214
+
215
+ ```
216
+
217
+ ## Example Response Format
218
+
219
+ ```
220
+
221
+ ---
222
+
223
+ Issue #5: Missing Transaction Boundaries for Multi-Step Operations
224
+
225
+ Severity: 🔴 P1 (CRITICAL)
226
+
227
+ Category: Data Integrity / Security
228
+
229
+ 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.
230
+
231
+ Location: app/controllers/concerns/google_oauth_callbacks.rb:13-50
232
+
233
+ Problem Scenario:
234
+
235
+ 1. User.update succeeds (email changed)
236
+ 2. Account.save! fails (validation error)
237
+ 3. Result: User has changed email but no associated Account
238
+ 4. Next login attempt fails completely
239
+
240
+ Operations Without Transaction:
241
+
242
+ - User confirmation (line 13)
243
+ - Waitlist removal (line 14)
244
+ - User profile update (line 21-23)
245
+ - Account creation (line 28-37)
246
+ - Avatar attachment (line 39-45)
247
+ - Journey creation (line 47)
248
+
249
+ Proposed Solution: Wrap all operations in ApplicationRecord.transaction do ... end block
250
+
251
+ Estimated Effort: Small (30 minutes)
252
+
253
+ ---
254
+
255
+ Do you want to add this to the todo list?
256
+
257
+ 1. yes - create todo file
258
+ 2. next - skip this item
259
+ 3. custom - modify before creating
260
+
261
+ ```
262
+
263
+ ## Important Implementation Details
264
+
265
+ ### Status Transitions During Triage
266
+
267
+ **When "yes" is selected:**
268
+ 1. Rename file: `{id}-pending-{priority}-{desc}.md` → `{id}-ready-{priority}-{desc}.md`
269
+ 2. Update YAML frontmatter: `status: pending` → `status: ready`
270
+ 3. Update Work Log with triage approval entry
271
+ 4. Confirm: "✅ Approved: `{filename}` (Issue #{issue_id}) - Status: **ready**"
272
+
273
+ **When "next" is selected:**
274
+ 1. Delete the todo file from todos/ directory
275
+ 2. Skip to next item
276
+ 3. No file remains in the system
277
+
278
+ ### Progress Tracking
279
+
280
+ Every time you present a todo as a header, include:
281
+ - **Progress:** X/Y completed (e.g., "3/10 completed")
282
+ - **Estimated time remaining:** Based on how quickly you're progressing
283
+ - **Pacing:** Monitor time per finding and adjust estimate accordingly
284
+
285
+ Example:
286
+ ```
287
+
288
+ Progress: 3/10 completed | Estimated time: ~2 minutes remaining
289
+
290
+ ```
291
+
292
+ ### Do Not Code During Triage
293
+
294
+ - ✅ Present findings
295
+ - ✅ Make yes/next/custom decisions
296
+ - ✅ Update todo files (rename, frontmatter, work log)
297
+ - ❌ Do NOT implement fixes or write code
298
+ - ❌ Do NOT add detailed implementation details
299
+ - ❌ That's for /resolve_todo_parallel phase
300
+ ```
301
+
302
+ When done give these options
303
+
304
+ ```markdown
305
+ What would you like to do next?
306
+
307
+ 1. run /resolve_todo_parallel to resolve the todos
308
+ 2. commit the todos
309
+ 3. nothing, go chill
310
+ ```
@@ -0,0 +1,157 @@
1
+ ---
2
+ description: Execute work plans efficiently while maintaining quality and finishing features
3
+ ---
4
+
5
+ # Work Plan Execution Command
6
+
7
+ Execute a work plan efficiently while maintaining quality and finishing features.
8
+
9
+ ## Introduction
10
+
11
+ This command takes a work document (plan, specification, or todo file) and executes it systematically. The focus is on **shipping complete features** by understanding requirements quickly, following existing patterns, and maintaining quality throughout.
12
+
13
+ ## Input Document
14
+
15
+ <input_document> #$ARGUMENTS </input_document>
16
+
17
+ ## Execution Workflow
18
+
19
+ ### Phase 1: Quick Start
20
+
21
+ 1. **Read Plan and Clarify**
22
+
23
+ - Read the work document completely
24
+ - Review any references or links provided in the plan
25
+ - If anything is unclear or ambiguous, ask clarifying questions now
26
+ - Get user approval to proceed
27
+ - **Do not skip this** - better to ask questions now than build the wrong thing
28
+
29
+ 2. **Setup Environment**
30
+
31
+ Choose your work style:
32
+
33
+ **Option A: Live work on current branch**
34
+ ```bash
35
+ git checkout main && git pull origin main
36
+ git checkout -b feature-branch-name
37
+ ```
38
+
39
+ **Option B: Parallel work with worktree (recommended for parallel development)**
40
+ ```bash
41
+ # Ask user first: "Work in parallel with worktree or on current branch?"
42
+ # If worktree:
43
+ skill: git-worktree
44
+ # The skill will create a new branch from main in an isolated worktree
45
+ ```
46
+
47
+ **Recommendation**: Use worktree if:
48
+ - You want to work on multiple features simultaneously
49
+ - You want to keep main clean while experimenting
50
+ - You plan to switch between branches frequently
51
+
52
+ Use live branch if:
53
+ - You're working on a single feature
54
+ - You prefer staying in the main repository
55
+
56
+ 3. **Create Todo List**
57
+ - Use TodoWrite to break plan into actionable tasks
58
+ - Include dependencies between tasks
59
+ - Prioritize based on what needs to be done first
60
+ - Include testing and quality check tasks
61
+ - Keep tasks specific and completable
62
+
63
+ ### Phase 2: Execute
64
+
65
+ 1. **Task Execution Loop**
66
+
67
+ For each task in priority order:
68
+
69
+ ```
70
+ while (tasks remain):
71
+ - Mark task as in_progress in TodoWrite
72
+ - Read any referenced files from the plan
73
+ - Look for similar patterns in codebase
74
+ - Implement following existing conventions
75
+ - Write tests for new functionality
76
+ - Run tests after changes
77
+ - Mark task as completed
78
+ ```
79
+
80
+ 2. **Follow Existing Patterns**
81
+
82
+ - The plan should reference similar code - read those files first
83
+ - Match naming conventions exactly
84
+ - Reuse existing components where possible
85
+ - Follow project coding standards (see CLAUDE.md)
86
+ - When in doubt, grep for similar implementations
87
+
88
+ 3. **Test Continuously**
89
+
90
+ - Run relevant tests after each significant change
91
+ - Don't wait until the end to test
92
+ - Fix failures immediately
93
+ - Add new tests for new functionality
94
+
95
+ 4. **Figma Design Sync** (if applicable)
96
+
97
+ For UI work with Figma designs:
98
+
99
+ - Implement components following design specs
100
+ - Use figma-design-sync agent iteratively to compare
101
+ - Fix visual differences identified
102
+ - Repeat until implementation matches design
103
+
104
+ 5. **Track Progress**
105
+ - Keep TodoWrite updated as you complete tasks
106
+ - Note any blockers or unexpected discoveries
107
+ - Create new tasks if scope expands
108
+ - Keep user informed of major milestones
109
+
110
+ ### Phase 3: Quality Check
111
+
112
+ 1. **Run Core Quality Checks**
113
+
114
+ Always run before submitting:
115
+
116
+ ```bash
117
+ # Run full test suite
118
+ bin/rails test
119
+
120
+ # Run linting (per CLAUDE.md)
121
+ # Use linting-agent before pushing to origin
122
+ ```
123
+
124
+ 2. **Consider Reviewer Agents** (Optional)
125
+
126
+ Use for complex, risky, or large changes:
127
+
128
+ - **code-simplicity-reviewer**: Check for unnecessary complexity
129
+ - **kieran-rails-reviewer**: Verify Rails conventions (Rails projects)
130
+ - **performance-oracle**: Check for performance issues
131
+ - **security-sentinel**: Scan for security vulnerabilities
132
+ - **cora-test-reviewer**: Review test quality (CORA projects)
133
+
134
+ Run reviewers in parallel with Task tool:
135
+
136
+ ```
137
+ Task(code-simplicity-reviewer): "Review changes for simplicity"
138
+ Task(kieran-rails-reviewer): "Check Rails conventions"
139
+ ```
140
+
141
+ Present findings to user and address critical issues.
142
+
143
+ 3. **Final Validation**
144
+ - All TodoWrite tasks marked completed
145
+ - All tests pass
146
+ - Linting passes
147
+ - Code follows existing patterns
148
+ - Figma designs match (if applicable)
149
+ - No console errors or warnings
150
+
151
+ ### Phase 4: Delivery
152
+
153
+ **Development is complete.**
154
+
155
+ 1. **Verify Locally:** Ensure all tests pass.
156
+ 2. **Handover:**
157
+ **STOP HERE.** Do not execute any further commands.