compound-engineering-pi 0.2.3

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 (332) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +124 -0
  3. package/bin/compound-engineering-pi +12 -0
  4. package/bin/compound-plugin +12 -0
  5. package/compound-engineering-pi +12 -0
  6. package/compound-plugin +5 -0
  7. package/docs/pi.md +152 -0
  8. package/extensions/compound-engineering-compat.ts +452 -0
  9. package/package.json +84 -0
  10. package/pi-resources/compound-engineering/mcporter.json +7 -0
  11. package/plugins/coding-tutor/.claude-plugin/plugin.json +9 -0
  12. package/plugins/coding-tutor/README.md +37 -0
  13. package/plugins/coding-tutor/commands/quiz-me.md +1 -0
  14. package/plugins/coding-tutor/commands/sync-tutorials.md +25 -0
  15. package/plugins/coding-tutor/commands/teach-me.md +1 -0
  16. package/plugins/coding-tutor/skills/coding-tutor/SKILL.md +214 -0
  17. package/plugins/coding-tutor/skills/coding-tutor/scripts/create_tutorial.py +207 -0
  18. package/plugins/coding-tutor/skills/coding-tutor/scripts/index_tutorials.py +193 -0
  19. package/plugins/coding-tutor/skills/coding-tutor/scripts/quiz_priority.py +190 -0
  20. package/plugins/coding-tutor/skills/coding-tutor/scripts/setup_tutorials.py +118 -0
  21. package/plugins/compound-engineering/.claude-plugin/plugin.json +33 -0
  22. package/plugins/compound-engineering/CHANGELOG.md +457 -0
  23. package/plugins/compound-engineering/CLAUDE.md +89 -0
  24. package/plugins/compound-engineering/LICENSE +21 -0
  25. package/plugins/compound-engineering/README.md +232 -0
  26. package/plugins/compound-engineering/agents/design/design-implementation-reviewer.md +109 -0
  27. package/plugins/compound-engineering/agents/design/design-iterator.md +224 -0
  28. package/plugins/compound-engineering/agents/design/figma-design-sync.md +190 -0
  29. package/plugins/compound-engineering/agents/docs/ankane-readme-writer.md +65 -0
  30. package/plugins/compound-engineering/agents/research/best-practices-researcher.md +126 -0
  31. package/plugins/compound-engineering/agents/research/framework-docs-researcher.md +106 -0
  32. package/plugins/compound-engineering/agents/research/git-history-analyzer.md +59 -0
  33. package/plugins/compound-engineering/agents/research/learnings-researcher.md +264 -0
  34. package/plugins/compound-engineering/agents/research/repo-research-analyst.md +135 -0
  35. package/plugins/compound-engineering/agents/review/agent-native-reviewer.md +261 -0
  36. package/plugins/compound-engineering/agents/review/architecture-strategist.md +67 -0
  37. package/plugins/compound-engineering/agents/review/code-simplicity-reviewer.md +101 -0
  38. package/plugins/compound-engineering/agents/review/data-integrity-guardian.md +85 -0
  39. package/plugins/compound-engineering/agents/review/data-migration-expert.md +112 -0
  40. package/plugins/compound-engineering/agents/review/deployment-verification-agent.md +174 -0
  41. package/plugins/compound-engineering/agents/review/dhh-rails-reviewer.md +66 -0
  42. package/plugins/compound-engineering/agents/review/julik-frontend-races-reviewer.md +221 -0
  43. package/plugins/compound-engineering/agents/review/kieran-python-reviewer.md +133 -0
  44. package/plugins/compound-engineering/agents/review/kieran-rails-reviewer.md +115 -0
  45. package/plugins/compound-engineering/agents/review/kieran-typescript-reviewer.md +124 -0
  46. package/plugins/compound-engineering/agents/review/pattern-recognition-specialist.md +72 -0
  47. package/plugins/compound-engineering/agents/review/performance-oracle.md +137 -0
  48. package/plugins/compound-engineering/agents/review/schema-drift-detector.md +154 -0
  49. package/plugins/compound-engineering/agents/review/security-sentinel.md +114 -0
  50. package/plugins/compound-engineering/agents/workflow/bug-reproduction-validator.md +82 -0
  51. package/plugins/compound-engineering/agents/workflow/every-style-editor.md +64 -0
  52. package/plugins/compound-engineering/agents/workflow/lint.md +16 -0
  53. package/plugins/compound-engineering/agents/workflow/pr-comment-resolver.md +84 -0
  54. package/plugins/compound-engineering/agents/workflow/spec-flow-analyzer.md +134 -0
  55. package/plugins/compound-engineering/commands/agent-native-audit.md +278 -0
  56. package/plugins/compound-engineering/commands/changelog.md +138 -0
  57. package/plugins/compound-engineering/commands/create-agent-skill.md +9 -0
  58. package/plugins/compound-engineering/commands/deepen-plan.md +546 -0
  59. package/plugins/compound-engineering/commands/deploy-docs.md +113 -0
  60. package/plugins/compound-engineering/commands/feature-video.md +342 -0
  61. package/plugins/compound-engineering/commands/generate_command.md +163 -0
  62. package/plugins/compound-engineering/commands/heal-skill.md +143 -0
  63. package/plugins/compound-engineering/commands/lfg.md +20 -0
  64. package/plugins/compound-engineering/commands/release-docs.md +212 -0
  65. package/plugins/compound-engineering/commands/report-bug.md +151 -0
  66. package/plugins/compound-engineering/commands/reproduce-bug.md +100 -0
  67. package/plugins/compound-engineering/commands/resolve_parallel.md +35 -0
  68. package/plugins/compound-engineering/commands/resolve_todo_parallel.md +37 -0
  69. package/plugins/compound-engineering/commands/slfg.md +32 -0
  70. package/plugins/compound-engineering/commands/technical_review.md +8 -0
  71. package/plugins/compound-engineering/commands/test-browser.md +339 -0
  72. package/plugins/compound-engineering/commands/test-xcode.md +332 -0
  73. package/plugins/compound-engineering/commands/triage.md +311 -0
  74. package/plugins/compound-engineering/commands/workflows/brainstorm.md +124 -0
  75. package/plugins/compound-engineering/commands/workflows/compound.md +239 -0
  76. package/plugins/compound-engineering/commands/workflows/plan.md +551 -0
  77. package/plugins/compound-engineering/commands/workflows/review.md +526 -0
  78. package/plugins/compound-engineering/commands/workflows/work.md +433 -0
  79. package/plugins/compound-engineering/skills/agent-browser/SKILL.md +223 -0
  80. package/plugins/compound-engineering/skills/agent-native-architecture/SKILL.md +435 -0
  81. package/plugins/compound-engineering/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
  82. package/plugins/compound-engineering/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
  83. package/plugins/compound-engineering/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
  84. package/plugins/compound-engineering/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
  85. package/plugins/compound-engineering/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
  86. package/plugins/compound-engineering/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
  87. package/plugins/compound-engineering/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
  88. package/plugins/compound-engineering/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
  89. package/plugins/compound-engineering/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
  90. package/plugins/compound-engineering/skills/agent-native-architecture/references/product-implications.md +443 -0
  91. package/plugins/compound-engineering/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
  92. package/plugins/compound-engineering/skills/agent-native-architecture/references/self-modification.md +269 -0
  93. package/plugins/compound-engineering/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
  94. package/plugins/compound-engineering/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
  95. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/SKILL.md +184 -0
  96. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
  97. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
  98. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
  99. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/resources.md +119 -0
  100. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
  101. package/plugins/compound-engineering/skills/brainstorming/SKILL.md +190 -0
  102. package/plugins/compound-engineering/skills/compound-docs/SKILL.md +511 -0
  103. package/plugins/compound-engineering/skills/compound-docs/assets/critical-pattern-template.md +34 -0
  104. package/plugins/compound-engineering/skills/compound-docs/assets/resolution-template.md +93 -0
  105. package/plugins/compound-engineering/skills/compound-docs/references/yaml-schema.md +65 -0
  106. package/plugins/compound-engineering/skills/compound-docs/schema.yaml +176 -0
  107. package/plugins/compound-engineering/skills/create-agent-skills/SKILL.md +275 -0
  108. package/plugins/compound-engineering/skills/create-agent-skills/references/api-security.md +226 -0
  109. package/plugins/compound-engineering/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
  110. package/plugins/compound-engineering/skills/create-agent-skills/references/best-practices.md +404 -0
  111. package/plugins/compound-engineering/skills/create-agent-skills/references/common-patterns.md +595 -0
  112. package/plugins/compound-engineering/skills/create-agent-skills/references/core-principles.md +437 -0
  113. package/plugins/compound-engineering/skills/create-agent-skills/references/executable-code.md +175 -0
  114. package/plugins/compound-engineering/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
  115. package/plugins/compound-engineering/skills/create-agent-skills/references/official-spec.md +134 -0
  116. package/plugins/compound-engineering/skills/create-agent-skills/references/recommended-structure.md +168 -0
  117. package/plugins/compound-engineering/skills/create-agent-skills/references/skill-structure.md +152 -0
  118. package/plugins/compound-engineering/skills/create-agent-skills/references/using-scripts.md +113 -0
  119. package/plugins/compound-engineering/skills/create-agent-skills/references/using-templates.md +112 -0
  120. package/plugins/compound-engineering/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
  121. package/plugins/compound-engineering/skills/create-agent-skills/templates/router-skill.md +73 -0
  122. package/plugins/compound-engineering/skills/create-agent-skills/templates/simple-skill.md +33 -0
  123. package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-reference.md +96 -0
  124. package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-script.md +93 -0
  125. package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-template.md +74 -0
  126. package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-workflow.md +120 -0
  127. package/plugins/compound-engineering/skills/create-agent-skills/workflows/audit-skill.md +138 -0
  128. package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
  129. package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
  130. package/plugins/compound-engineering/skills/create-agent-skills/workflows/get-guidance.md +121 -0
  131. package/plugins/compound-engineering/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
  132. package/plugins/compound-engineering/skills/create-agent-skills/workflows/verify-skill.md +204 -0
  133. package/plugins/compound-engineering/skills/dhh-rails-style/SKILL.md +185 -0
  134. package/plugins/compound-engineering/skills/dhh-rails-style/references/architecture.md +653 -0
  135. package/plugins/compound-engineering/skills/dhh-rails-style/references/controllers.md +303 -0
  136. package/plugins/compound-engineering/skills/dhh-rails-style/references/frontend.md +510 -0
  137. package/plugins/compound-engineering/skills/dhh-rails-style/references/gems.md +266 -0
  138. package/plugins/compound-engineering/skills/dhh-rails-style/references/models.md +359 -0
  139. package/plugins/compound-engineering/skills/dhh-rails-style/references/testing.md +338 -0
  140. package/plugins/compound-engineering/skills/document-review/SKILL.md +87 -0
  141. package/plugins/compound-engineering/skills/dspy-ruby/SKILL.md +737 -0
  142. package/plugins/compound-engineering/skills/dspy-ruby/assets/config-template.rb +187 -0
  143. package/plugins/compound-engineering/skills/dspy-ruby/assets/module-template.rb +300 -0
  144. package/plugins/compound-engineering/skills/dspy-ruby/assets/signature-template.rb +221 -0
  145. package/plugins/compound-engineering/skills/dspy-ruby/references/core-concepts.md +674 -0
  146. package/plugins/compound-engineering/skills/dspy-ruby/references/observability.md +366 -0
  147. package/plugins/compound-engineering/skills/dspy-ruby/references/optimization.md +603 -0
  148. package/plugins/compound-engineering/skills/dspy-ruby/references/providers.md +418 -0
  149. package/plugins/compound-engineering/skills/dspy-ruby/references/toolsets.md +502 -0
  150. package/plugins/compound-engineering/skills/every-style-editor/SKILL.md +134 -0
  151. package/plugins/compound-engineering/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
  152. package/plugins/compound-engineering/skills/file-todos/SKILL.md +252 -0
  153. package/plugins/compound-engineering/skills/file-todos/assets/todo-template.md +155 -0
  154. package/plugins/compound-engineering/skills/frontend-design/SKILL.md +42 -0
  155. package/plugins/compound-engineering/skills/gemini-imagegen/SKILL.md +237 -0
  156. package/plugins/compound-engineering/skills/gemini-imagegen/requirements.txt +2 -0
  157. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/compose_images.py +157 -0
  158. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/edit_image.py +144 -0
  159. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/gemini_images.py +263 -0
  160. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/generate_image.py +133 -0
  161. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/multi_turn_chat.py +216 -0
  162. package/plugins/compound-engineering/skills/git-worktree/SKILL.md +302 -0
  163. package/plugins/compound-engineering/skills/git-worktree/scripts/worktree-manager.sh +337 -0
  164. package/plugins/compound-engineering/skills/orchestrating-swarms/SKILL.md +1718 -0
  165. package/plugins/compound-engineering/skills/rclone/SKILL.md +150 -0
  166. package/plugins/compound-engineering/skills/rclone/scripts/check_setup.sh +60 -0
  167. package/plugins/compound-engineering/skills/resolve-pr-parallel/SKILL.md +89 -0
  168. package/plugins/compound-engineering/skills/resolve-pr-parallel/scripts/get-pr-comments +68 -0
  169. package/plugins/compound-engineering/skills/resolve-pr-parallel/scripts/resolve-pr-thread +23 -0
  170. package/plugins/compound-engineering/skills/skill-creator/SKILL.md +210 -0
  171. package/plugins/compound-engineering/skills/skill-creator/scripts/init_skill.py +303 -0
  172. package/plugins/compound-engineering/skills/skill-creator/scripts/package_skill.py +110 -0
  173. package/plugins/compound-engineering/skills/skill-creator/scripts/quick_validate.py +65 -0
  174. package/prompts/deepen-plan.md +549 -0
  175. package/prompts/feature-video.md +341 -0
  176. package/prompts/resolve_todo_parallel.md +36 -0
  177. package/prompts/test-browser.md +342 -0
  178. package/prompts/workflows-brainstorm.md +123 -0
  179. package/prompts/workflows-compound.md +238 -0
  180. package/prompts/workflows-plan.md +550 -0
  181. package/prompts/workflows-review.md +529 -0
  182. package/prompts/workflows-work.md +432 -0
  183. package/skills/agent-browser/SKILL.md +223 -0
  184. package/skills/agent-native-architecture/SKILL.md +435 -0
  185. package/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
  186. package/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
  187. package/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
  188. package/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
  189. package/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
  190. package/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
  191. package/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
  192. package/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
  193. package/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
  194. package/skills/agent-native-architecture/references/product-implications.md +443 -0
  195. package/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
  196. package/skills/agent-native-architecture/references/self-modification.md +269 -0
  197. package/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
  198. package/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
  199. package/skills/agent-native-reviewer/SKILL.md +260 -0
  200. package/skills/andrew-kane-gem-writer/SKILL.md +184 -0
  201. package/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
  202. package/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
  203. package/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
  204. package/skills/andrew-kane-gem-writer/references/resources.md +119 -0
  205. package/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
  206. package/skills/ankane-readme-writer/SKILL.md +63 -0
  207. package/skills/architecture-strategist/SKILL.md +66 -0
  208. package/skills/best-practices-researcher/SKILL.md +125 -0
  209. package/skills/brainstorming/SKILL.md +190 -0
  210. package/skills/bug-reproduction-validator/SKILL.md +81 -0
  211. package/skills/code-simplicity-reviewer/SKILL.md +100 -0
  212. package/skills/compound-docs/SKILL.md +511 -0
  213. package/skills/compound-docs/assets/critical-pattern-template.md +34 -0
  214. package/skills/compound-docs/assets/resolution-template.md +93 -0
  215. package/skills/compound-docs/references/yaml-schema.md +65 -0
  216. package/skills/compound-docs/schema.yaml +176 -0
  217. package/skills/create-agent-skills/SKILL.md +275 -0
  218. package/skills/create-agent-skills/references/api-security.md +226 -0
  219. package/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
  220. package/skills/create-agent-skills/references/best-practices.md +404 -0
  221. package/skills/create-agent-skills/references/common-patterns.md +595 -0
  222. package/skills/create-agent-skills/references/core-principles.md +437 -0
  223. package/skills/create-agent-skills/references/executable-code.md +175 -0
  224. package/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
  225. package/skills/create-agent-skills/references/official-spec.md +134 -0
  226. package/skills/create-agent-skills/references/recommended-structure.md +168 -0
  227. package/skills/create-agent-skills/references/skill-structure.md +152 -0
  228. package/skills/create-agent-skills/references/using-scripts.md +113 -0
  229. package/skills/create-agent-skills/references/using-templates.md +112 -0
  230. package/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
  231. package/skills/create-agent-skills/templates/router-skill.md +73 -0
  232. package/skills/create-agent-skills/templates/simple-skill.md +33 -0
  233. package/skills/create-agent-skills/workflows/add-reference.md +96 -0
  234. package/skills/create-agent-skills/workflows/add-script.md +93 -0
  235. package/skills/create-agent-skills/workflows/add-template.md +74 -0
  236. package/skills/create-agent-skills/workflows/add-workflow.md +120 -0
  237. package/skills/create-agent-skills/workflows/audit-skill.md +138 -0
  238. package/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
  239. package/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
  240. package/skills/create-agent-skills/workflows/get-guidance.md +121 -0
  241. package/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
  242. package/skills/create-agent-skills/workflows/verify-skill.md +204 -0
  243. package/skills/data-integrity-guardian/SKILL.md +84 -0
  244. package/skills/data-migration-expert/SKILL.md +111 -0
  245. package/skills/deployment-verification-agent/SKILL.md +173 -0
  246. package/skills/design-implementation-reviewer/SKILL.md +107 -0
  247. package/skills/design-iterator/SKILL.md +222 -0
  248. package/skills/dhh-rails-reviewer/SKILL.md +65 -0
  249. package/skills/dhh-rails-style/SKILL.md +185 -0
  250. package/skills/dhh-rails-style/references/architecture.md +653 -0
  251. package/skills/dhh-rails-style/references/controllers.md +303 -0
  252. package/skills/dhh-rails-style/references/frontend.md +510 -0
  253. package/skills/dhh-rails-style/references/gems.md +266 -0
  254. package/skills/dhh-rails-style/references/models.md +359 -0
  255. package/skills/dhh-rails-style/references/testing.md +338 -0
  256. package/skills/document-review/SKILL.md +87 -0
  257. package/skills/dspy-ruby/SKILL.md +737 -0
  258. package/skills/dspy-ruby/assets/config-template.rb +187 -0
  259. package/skills/dspy-ruby/assets/module-template.rb +300 -0
  260. package/skills/dspy-ruby/assets/signature-template.rb +221 -0
  261. package/skills/dspy-ruby/references/core-concepts.md +674 -0
  262. package/skills/dspy-ruby/references/observability.md +366 -0
  263. package/skills/dspy-ruby/references/optimization.md +603 -0
  264. package/skills/dspy-ruby/references/providers.md +418 -0
  265. package/skills/dspy-ruby/references/toolsets.md +502 -0
  266. package/skills/every-style-editor/SKILL.md +134 -0
  267. package/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
  268. package/skills/every-style-editor-2/SKILL.md +62 -0
  269. package/skills/figma-design-sync/SKILL.md +188 -0
  270. package/skills/file-todos/SKILL.md +252 -0
  271. package/skills/file-todos/assets/todo-template.md +155 -0
  272. package/skills/framework-docs-researcher/SKILL.md +105 -0
  273. package/skills/frontend-design/SKILL.md +42 -0
  274. package/skills/gemini-imagegen/SKILL.md +237 -0
  275. package/skills/gemini-imagegen/requirements.txt +2 -0
  276. package/skills/gemini-imagegen/scripts/compose_images.py +157 -0
  277. package/skills/gemini-imagegen/scripts/edit_image.py +144 -0
  278. package/skills/gemini-imagegen/scripts/gemini_images.py +263 -0
  279. package/skills/gemini-imagegen/scripts/generate_image.py +133 -0
  280. package/skills/gemini-imagegen/scripts/multi_turn_chat.py +216 -0
  281. package/skills/git-history-analyzer/SKILL.md +58 -0
  282. package/skills/git-worktree/SKILL.md +302 -0
  283. package/skills/git-worktree/scripts/worktree-manager.sh +337 -0
  284. package/skills/julik-frontend-races-reviewer/SKILL.md +220 -0
  285. package/skills/kieran-python-reviewer/SKILL.md +132 -0
  286. package/skills/kieran-rails-reviewer/SKILL.md +114 -0
  287. package/skills/kieran-typescript-reviewer/SKILL.md +123 -0
  288. package/skills/learnings-researcher/SKILL.md +263 -0
  289. package/skills/lint/SKILL.md +14 -0
  290. package/skills/orchestrating-swarms/SKILL.md +1718 -0
  291. package/skills/pattern-recognition-specialist/SKILL.md +71 -0
  292. package/skills/performance-oracle/SKILL.md +136 -0
  293. package/skills/pr-comment-resolver/SKILL.md +82 -0
  294. package/skills/rclone/SKILL.md +150 -0
  295. package/skills/rclone/scripts/check_setup.sh +60 -0
  296. package/skills/repo-research-analyst/SKILL.md +134 -0
  297. package/skills/resolve_pr_parallel/SKILL.md +89 -0
  298. package/skills/resolve_pr_parallel/scripts/get-pr-comments +68 -0
  299. package/skills/resolve_pr_parallel/scripts/resolve-pr-thread +23 -0
  300. package/skills/schema-drift-detector/SKILL.md +153 -0
  301. package/skills/security-sentinel/SKILL.md +113 -0
  302. package/skills/skill-creator/SKILL.md +210 -0
  303. package/skills/skill-creator/scripts/init_skill.py +303 -0
  304. package/skills/skill-creator/scripts/package_skill.py +110 -0
  305. package/skills/skill-creator/scripts/quick_validate.py +65 -0
  306. package/skills/spec-flow-analyzer/SKILL.md +133 -0
  307. package/src/commands/convert.ts +183 -0
  308. package/src/commands/install.ts +273 -0
  309. package/src/commands/list.ts +37 -0
  310. package/src/commands/sync.ts +89 -0
  311. package/src/converters/claude-to-codex.ts +182 -0
  312. package/src/converters/claude-to-opencode.ts +395 -0
  313. package/src/converters/claude-to-pi.ts +205 -0
  314. package/src/index.ts +22 -0
  315. package/src/parsers/claude-home.ts +65 -0
  316. package/src/parsers/claude.ts +252 -0
  317. package/src/sync/codex.ts +92 -0
  318. package/src/sync/opencode.ts +75 -0
  319. package/src/sync/pi.ts +88 -0
  320. package/src/targets/codex.ts +96 -0
  321. package/src/targets/index.ts +38 -0
  322. package/src/targets/opencode.ts +57 -0
  323. package/src/targets/pi.ts +131 -0
  324. package/src/templates/pi/compat-extension.ts +452 -0
  325. package/src/types/claude.ts +90 -0
  326. package/src/types/codex.ts +23 -0
  327. package/src/types/opencode.ts +54 -0
  328. package/src/types/pi.ts +40 -0
  329. package/src/utils/codex-agents.ts +64 -0
  330. package/src/utils/files.ts +77 -0
  331. package/src/utils/frontmatter.ts +65 -0
  332. package/src/utils/symlink.ts +43 -0
@@ -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:** Claude 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
+ ```
@@ -0,0 +1,124 @@
1
+ ---
2
+ name: workflows:brainstorm
3
+ description: Explore requirements and approaches through collaborative dialogue before planning implementation
4
+ argument-hint: "[feature idea or problem to explore]"
5
+ ---
6
+
7
+ # Brainstorm a Feature or Improvement
8
+
9
+ **Note: The current year is 2026.** Use this when dating brainstorm documents.
10
+
11
+ Brainstorming helps answer **WHAT** to build through collaborative dialogue. It precedes `/workflows:plan`, which answers **HOW** to build it.
12
+
13
+ **Process knowledge:** Load the `brainstorming` skill for detailed question techniques, approach exploration patterns, and YAGNI principles.
14
+
15
+ ## Feature Description
16
+
17
+ <feature_description> #$ARGUMENTS </feature_description>
18
+
19
+ **If the feature description above is empty, ask the user:** "What would you like to explore? Please describe the feature, problem, or improvement you're thinking about."
20
+
21
+ Do not proceed until you have a feature description from the user.
22
+
23
+ ## Execution Flow
24
+
25
+ ### Phase 0: Assess Requirements Clarity
26
+
27
+ Evaluate whether brainstorming is needed based on the feature description.
28
+
29
+ **Clear requirements indicators:**
30
+ - Specific acceptance criteria provided
31
+ - Referenced existing patterns to follow
32
+ - Described exact expected behavior
33
+ - Constrained, well-defined scope
34
+
35
+ **If requirements are already clear:**
36
+ Use **AskUserQuestion 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
+
38
+ ### Phase 1: Understand the Idea
39
+
40
+ #### 1.1 Repository Research (Lightweight)
41
+
42
+ Run a quick repo scan to understand existing patterns:
43
+
44
+ - Task repo-research-analyst("Understand existing patterns related to: <feature_description>")
45
+
46
+ Focus on: similar features, established patterns, CLAUDE.md guidance.
47
+
48
+ #### 1.2 Collaborative Dialogue
49
+
50
+ Use the **AskUserQuestion tool** to ask questions **one at a time**.
51
+
52
+ **Guidelines (see `brainstorming` skill for detailed techniques):**
53
+ - Prefer multiple choice when natural options exist
54
+ - Start broad (purpose, users) then narrow (constraints, edge cases)
55
+ - Validate assumptions explicitly
56
+ - Ask about success criteria
57
+
58
+ **Exit condition:** Continue until the idea is clear OR user says "proceed"
59
+
60
+ ### Phase 2: Explore Approaches
61
+
62
+ Propose **2-3 concrete approaches** based on research and conversation.
63
+
64
+ For each approach, provide:
65
+ - Brief description (2-3 sentences)
66
+ - Pros and cons
67
+ - When it's best suited
68
+
69
+ Lead with your recommendation and explain why. Apply YAGNI—prefer simpler solutions.
70
+
71
+ Use **AskUserQuestion tool** to ask which approach the user prefers.
72
+
73
+ ### Phase 3: Capture the Design
74
+
75
+ Write a brainstorm document to `docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md`.
76
+
77
+ **Document structure:** See the `brainstorming` skill for the template format. Key sections: What We're Building, Why This Approach, Key Decisions, Open Questions.
78
+
79
+ Ensure `docs/brainstorms/` directory exists before writing.
80
+
81
+ ### Phase 4: Handoff
82
+
83
+ Use **AskUserQuestion tool** to present next steps:
84
+
85
+ **Question:** "Brainstorm captured. What would you like to do next?"
86
+
87
+ **Options:**
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
+ 3. **Done for now** - Return later
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
+
101
+ ## Output Summary
102
+
103
+ When complete, display:
104
+
105
+ ```
106
+ Brainstorm complete!
107
+
108
+ Document: docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md
109
+
110
+ Key decisions:
111
+ - [Decision 1]
112
+ - [Decision 2]
113
+
114
+ Next: Run `/workflows:plan` when ready to implement.
115
+ ```
116
+
117
+ ## Important Guidelines
118
+
119
+ - **Stay focused on WHAT, not HOW** - Implementation details belong in the plan
120
+ - **Ask one question at a time** - Don't overwhelm
121
+ - **Apply YAGNI** - Prefer simpler approaches
122
+ - **Keep outputs concise** - 200-300 words per section max
123
+
124
+ NEVER CODE! Just explore and document decisions.
@@ -0,0 +1,239 @@
1
+ ---
2
+ name: workflows:compound
3
+ description: Document a recently solved problem to compound your team's knowledge
4
+ argument-hint: "[optional: brief context about the fix]"
5
+ ---
6
+
7
+ # /compound
8
+
9
+ Coordinate multiple subagents working in parallel to document a recently solved problem.
10
+
11
+ ## Purpose
12
+
13
+ Captures problem solutions while context is fresh, creating structured documentation in `docs/solutions/` with YAML frontmatter for searchability and future reference. Uses parallel subagents for maximum efficiency.
14
+
15
+ **Why "compound"?** Each documented solution compounds your team's knowledge. The first time you solve a problem takes research. Document it, and the next occurrence takes minutes. Knowledge compounds.
16
+
17
+ ## Usage
18
+
19
+ ```bash
20
+ /workflows:compound # Document the most recent fix
21
+ /workflows:compound [brief context] # Provide additional context hint
22
+ ```
23
+
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>
101
+
102
+ ## What It Captures
103
+
104
+ - **Problem symptom**: Exact error messages, observable behavior
105
+ - **Investigation steps tried**: What didn't work and why
106
+ - **Root cause analysis**: Technical explanation
107
+ - **Working solution**: Step-by-step fix with code examples
108
+ - **Prevention strategies**: How to avoid in future
109
+ - **Cross-references**: Links to related issues and docs
110
+
111
+ ## Preconditions
112
+
113
+ <preconditions enforcement="advisory">
114
+ <check condition="problem_solved">
115
+ Problem has been solved (not in-progress)
116
+ </check>
117
+ <check condition="solution_verified">
118
+ Solution has been verified working
119
+ </check>
120
+ <check condition="non_trivial">
121
+ Non-trivial problem (not simple typo or obvious error)
122
+ </check>
123
+ </preconditions>
124
+
125
+ ## What It Creates
126
+
127
+ **Organized documentation:**
128
+
129
+ - File: `docs/solutions/[category]/[filename].md`
130
+
131
+ **Categories auto-detected from problem:**
132
+
133
+ - build-errors/
134
+ - test-failures/
135
+ - runtime-errors/
136
+ - performance-issues/
137
+ - database-issues/
138
+ - security-issues/
139
+ - ui-bugs/
140
+ - integration-issues/
141
+ - logic-errors/
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
+
151
+ ## Success Output
152
+
153
+ ```
154
+ ✓ Documentation complete
155
+
156
+ Subagent Results:
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`
162
+
163
+ Specialized Agent Reviews (Auto-Triggered):
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
168
+
169
+ File created:
170
+ - docs/solutions/performance-issues/n-plus-one-brief-generation.md
171
+
172
+ This documentation will be searchable for future reference when similar
173
+ issues occur in the Email Processing or Brief System modules.
174
+
175
+ What's next?
176
+ 1. Continue workflow (recommended)
177
+ 2. Link related documentation
178
+ 3. Update other references
179
+ 4. View documentation
180
+ 5. Other
181
+ ```
182
+
183
+ ## The Compounding Philosophy
184
+
185
+ This creates a compounding knowledge system:
186
+
187
+ 1. First time you solve "N+1 query in brief generation" → Research (30 min)
188
+ 2. Document the solution → docs/solutions/performance-issues/n-plus-one-briefs.md (5 min)
189
+ 3. Next time similar issue occurs → Quick lookup (2 min)
190
+ 4. Knowledge compounds → Team gets smarter
191
+
192
+ The feedback loop:
193
+
194
+ ```
195
+ Build → Test → Find Issue → Research → Improve → Document → Validate → Deploy
196
+ ↑ ↓
197
+ └──────────────────────────────────────────────────────────────────────┘
198
+ ```
199
+
200
+ **Each unit of engineering work should make subsequent units of work easier—not harder.**
201
+
202
+ ## Auto-Invoke
203
+
204
+ <auto_invoke> <trigger_phrases> - "that worked" - "it's fixed" - "working now" - "problem solved" </trigger_phrases>
205
+
206
+ <manual_override> Use /workflows:compound [context] to document immediately without waiting for auto-detection. </manual_override> </auto_invoke>
207
+
208
+ ## Routes To
209
+
210
+ `compound-docs` skill
211
+
212
+ ## Applicable Specialized Agents
213
+
214
+ Based on problem type, these agents can enhance documentation:
215
+
216
+ ### Code Quality & Review
217
+ - **kieran-rails-reviewer**: Reviews code examples for Rails best practices
218
+ - **code-simplicity-reviewer**: Ensures solution code is minimal and clear
219
+ - **pattern-recognition-specialist**: Identifies anti-patterns or repeating issues
220
+
221
+ ### Specific Domain Experts
222
+ - **performance-oracle**: Analyzes performance_issue category solutions
223
+ - **security-sentinel**: Reviews security_issue solutions for vulnerabilities
224
+ - **cora-test-reviewer**: Creates test cases for prevention strategies
225
+ - **data-integrity-guardian**: Reviews database_issue migrations and queries
226
+
227
+ ### Enhancement & Documentation
228
+ - **best-practices-researcher**: Enriches solution with industry best practices
229
+ - **every-style-editor**: Reviews documentation style and clarity
230
+ - **framework-docs-researcher**: Links to Rails/gem documentation references
231
+
232
+ ### When to Invoke
233
+ - **Auto-triggered** (optional): Agents can run post-documentation for enhancement
234
+ - **Manual trigger**: User can invoke agents after /workflows:compound completes for deeper review
235
+
236
+ ## Related Commands
237
+
238
+ - `/research [topic]` - Deep investigation (searches docs/solutions/ for patterns)
239
+ - `/workflows:plan` - Planning workflow (references documented solutions)