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,529 @@
1
+ ---
2
+ description: Perform exhaustive code reviews using multi-agent analysis, ultra-thinking, and worktrees
3
+ argument-hint: "[PR number, GitHub URL, branch name, or latest]"
4
+ ---
5
+
6
+ # Review Command
7
+
8
+ <command_purpose> Perform exhaustive code reviews using multi-agent analysis, ultra-thinking, and Git worktrees for deep local inspection. </command_purpose>
9
+
10
+ ## Introduction
11
+
12
+ <role>Senior Code Review Architect with expertise in security, performance, architecture, and quality assurance</role>
13
+
14
+ ## Prerequisites
15
+
16
+ <requirements>
17
+ - Git repository with GitHub CLI (`gh`) installed and authenticated
18
+ - Clean main/master branch
19
+ - Proper permissions to create worktrees and access the repository
20
+ - For document reviews: Path to a markdown file or document
21
+ </requirements>
22
+
23
+ ## Main Tasks
24
+
25
+ ### 1. Determine Review Target & Setup (ALWAYS FIRST)
26
+
27
+ <review_target> #$ARGUMENTS </review_target>
28
+
29
+ <thinking>
30
+ First, I need to determine the review target type and set up the code for analysis.
31
+ </thinking>
32
+
33
+ #### Immediate Actions:
34
+
35
+ <task_list>
36
+
37
+ - [ ] Determine review type: PR number (numeric), GitHub URL, file path (.md), or empty (current branch)
38
+ - [ ] Check current git branch
39
+ - [ ] If ALREADY on the target branch (PR branch, requested branch name, or the branch already checked out for review) → proceed with analysis on current branch
40
+ - [ ] If DIFFERENT branch than the review target → offer to use worktree: "Use git-worktree skill for isolated Call `skill: git-worktree` with branch name
41
+ - [ ] Fetch PR metadata using `gh pr view --json` for title, body, files, linked issues
42
+ - [ ] Set up language-specific analysis tools
43
+ - [ ] Prepare security scanning environment
44
+ - [ ] Make sure we are on the branch we are reviewing. Use gh pr checkout to switch to the branch or manually checkout the branch.
45
+
46
+ Ensure that the code is ready for analysis (either in worktree or on current branch). ONLY then proceed to the next step.
47
+
48
+ </task_list>
49
+
50
+ #### Protected Artifacts
51
+
52
+ <protected_artifacts>
53
+ The following paths are compound-engineering pipeline artifacts and must never be flagged for deletion, removal, or gitignore by any review agent:
54
+
55
+ - `docs/plans/*.md` — Plan files created by `/workflows-plan`. These are living documents that track implementation progress (checkboxes are checked off by `/workflows-work`).
56
+ - `docs/solutions/*.md` — Solution documents created during the pipeline.
57
+
58
+ If a review agent flags any file in these directories for cleanup or removal, discard that finding during synthesis. Do not create a todo for it.
59
+ </protected_artifacts>
60
+
61
+ #### Parallel Agents to review the PR:
62
+
63
+ <parallel_tasks>
64
+
65
+ Run ALL or most of these agents at the same time:
66
+
67
+ 1. Task kieran-rails-reviewer(PR content)
68
+ 2. Task dhh-rails-reviewer(PR title)
69
+ 3. If turbo is used: Task rails-turbo-expert(PR content)
70
+ 4. Task git-history-analyzer(PR content)
71
+ 5. Task dependency-detective(PR content)
72
+ 6. Task pattern-recognition-specialist(PR content)
73
+ 7. Task architecture-strategist(PR content)
74
+ 8. Task code-philosopher(PR content)
75
+ 9. Task security-sentinel(PR content)
76
+ 10. Task performance-oracle(PR content)
77
+ 11. Task devops-harmony-analyst(PR content)
78
+ 12. Task data-integrity-guardian(PR content)
79
+ 13. Task agent-native-reviewer(PR content) - Verify new features are agent-accessible
80
+
81
+ </parallel_tasks>
82
+
83
+ #### Conditional Agents (Run if applicable):
84
+
85
+ <conditional_agents>
86
+
87
+ These agents are run ONLY when the PR matches specific criteria. Check the PR files list to determine if they apply:
88
+
89
+ **If PR contains database migrations (db/migrate/*.rb files) or data backfills:**
90
+
91
+ 14. Task data-migration-expert(PR content) - Validates ID mappings match production, checks for swapped values, verifies rollback safety
92
+ 15. Task deployment-verification-agent(PR content) - Creates Go/No-Go deployment checklist with SQL verification queries
93
+
94
+ **When to run migration agents:**
95
+ - PR includes files matching `db/migrate/*.rb`
96
+ - PR modifies columns that store IDs, enums, or mappings
97
+ - PR includes data backfill scripts or rake tasks
98
+ - PR changes how data is read/written (e.g., changing from FK to string column)
99
+ - PR title/body mentions: migration, backfill, data transformation, ID mapping
100
+
101
+ **What these agents check:**
102
+ - `data-migration-expert`: Verifies hard-coded mappings match production reality (prevents swapped IDs), checks for orphaned associations, validates dual-write patterns
103
+ - `deployment-verification-agent`: Produces executable pre/post-deploy checklists with SQL queries, rollback procedures, and monitoring plans
104
+
105
+ </conditional_agents>
106
+
107
+ ### 4. Ultra-Thinking Deep Dive Phases
108
+
109
+ <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>
110
+
111
+ <deliverable>
112
+ Complete system context map with component interactions
113
+ </deliverable>
114
+
115
+ #### Phase 3: Stakeholder Perspective Analysis
116
+
117
+ <thinking_prompt> ULTRA-THINK: Put yourself in each stakeholder's shoes. What matters to them? What are their pain points? </thinking_prompt>
118
+
119
+ <stakeholder_perspectives>
120
+
121
+ 1. **Developer Perspective** <questions>
122
+
123
+ - How easy is this to understand and modify?
124
+ - Are the APIs intuitive?
125
+ - Is debugging straightforward?
126
+ - Can I test this easily? </questions>
127
+
128
+ 2. **Operations Perspective** <questions>
129
+
130
+ - How do I deploy this safely?
131
+ - What metrics and logs are available?
132
+ - How do I troubleshoot issues?
133
+ - What are the resource requirements? </questions>
134
+
135
+ 3. **End User Perspective** <questions>
136
+
137
+ - Is the feature intuitive?
138
+ - Are error messages helpful?
139
+ - Is performance acceptable?
140
+ - Does it solve my problem? </questions>
141
+
142
+ 4. **Security Team Perspective** <questions>
143
+
144
+ - What's the attack surface?
145
+ - Are there compliance requirements?
146
+ - How is data protected?
147
+ - What are the audit capabilities? </questions>
148
+
149
+ 5. **Business Perspective** <questions>
150
+ - What's the ROI?
151
+ - Are there legal/compliance risks?
152
+ - How does this affect time-to-market?
153
+ - What's the total cost of ownership? </questions> </stakeholder_perspectives>
154
+
155
+ #### Phase 4: Scenario Exploration
156
+
157
+ <thinking_prompt> ULTRA-THINK: Explore edge cases and failure scenarios. What could go wrong? How does the system behave under stress? </thinking_prompt>
158
+
159
+ <scenario_checklist>
160
+
161
+ - [ ] **Happy Path**: Normal operation with valid inputs
162
+ - [ ] **Invalid Inputs**: Null, empty, malformed data
163
+ - [ ] **Boundary Conditions**: Min/max values, empty collections
164
+ - [ ] **Concurrent Access**: Race conditions, deadlocks
165
+ - [ ] **Scale Testing**: 10x, 100x, 1000x normal load
166
+ - [ ] **Network Issues**: Timeouts, partial failures
167
+ - [ ] **Resource Exhaustion**: Memory, disk, connections
168
+ - [ ] **Security Attacks**: Injection, overflow, DoS
169
+ - [ ] **Data Corruption**: Partial writes, inconsistency
170
+ - [ ] **Cascading Failures**: Downstream service issues </scenario_checklist>
171
+
172
+ ### 6. Multi-Angle Review Perspectives
173
+
174
+ #### Technical Excellence Angle
175
+
176
+ - Code craftsmanship evaluation
177
+ - Engineering best practices
178
+ - Technical documentation quality
179
+ - Tooling and automation assessment
180
+
181
+ #### Business Value Angle
182
+
183
+ - Feature completeness validation
184
+ - Performance impact on users
185
+ - Cost-benefit analysis
186
+ - Time-to-market considerations
187
+
188
+ #### Risk Management Angle
189
+
190
+ - Security risk assessment
191
+ - Operational risk evaluation
192
+ - Compliance risk verification
193
+ - Technical debt accumulation
194
+
195
+ #### Team Dynamics Angle
196
+
197
+ - Code review etiquette
198
+ - Knowledge sharing effectiveness
199
+ - Collaboration patterns
200
+ - Mentoring opportunities
201
+
202
+ ### 4. Simplification and Minimalism Review
203
+
204
+ Run the Task code-simplicity-reviewer() to see if we can simplify the code.
205
+
206
+ ### 5. Findings Synthesis and Todo Creation Using file-todos Skill
207
+
208
+ <critical_requirement> ALL findings MUST be stored in the todos/ directory using the file-todos skill. Create todo files immediately after synthesis - do NOT present findings for user approval first. Use the skill for structured todo management. </critical_requirement>
209
+
210
+ #### Step 1: Synthesize All Findings
211
+
212
+ <thinking>
213
+ Consolidate all agent reports into a categorized list of findings.
214
+ Remove duplicates, prioritize by severity and impact.
215
+ </thinking>
216
+
217
+ <synthesis_tasks>
218
+
219
+ - [ ] Collect findings from all parallel agents
220
+ - [ ] Discard any findings that recommend deleting or gitignoring files in `docs/plans/` or `docs/solutions/` (see Protected Artifacts above)
221
+ - [ ] Categorize by type: security, performance, architecture, quality, etc.
222
+ - [ ] Assign severity levels: 🔴 CRITICAL (P1), 🟡 IMPORTANT (P2), 🔵 NICE-TO-HAVE (P3)
223
+ - [ ] Remove duplicate or overlapping findings
224
+ - [ ] Estimate effort for each finding (Small/Medium/Large)
225
+
226
+ </synthesis_tasks>
227
+
228
+ #### Step 2: Create Todo Files Using file-todos Skill
229
+
230
+ <critical_instruction> Use the file-todos skill to create todo files for ALL findings immediately. Do NOT present findings one-by-one asking for user approval. Create all todo files in parallel using the skill, then summarize results to user. </critical_instruction>
231
+
232
+ **Implementation Options:**
233
+
234
+ **Option A: Direct File Creation (Fast)**
235
+
236
+ - Create todo files directly using Write tool
237
+ - All findings in parallel for speed
238
+ - Use standard template from `.claude/skills/file-todos/assets/todo-template.md`
239
+ - Follow naming convention: `{issue_id}-pending-{priority}-{description}.md`
240
+
241
+ **Option B: Sub-Agents in Parallel (Recommended for Scale)** For large PRs with 15+ findings, use sub-agents to create finding files in parallel:
242
+
243
+ ```bash
244
+ # Launch multiple finding-creator agents in parallel
245
+ Task() - Create todos for first finding
246
+ Task() - Create todos for second finding
247
+ Task() - Create todos for third finding
248
+ etc. for each finding.
249
+ ```
250
+
251
+ Sub-agents can:
252
+
253
+ - Process multiple findings simultaneously
254
+ - Write detailed todo files with all sections filled
255
+ - Organize findings by severity
256
+ - Create comprehensive Proposed Solutions
257
+ - Add acceptance criteria and work logs
258
+ - Complete much faster than sequential processing
259
+
260
+ **Execution Strategy:**
261
+
262
+ 1. Synthesize all findings into categories (P1/P2/P3)
263
+ 2. Group findings by severity
264
+ 3. Launch 3 parallel sub-agents (one per severity level)
265
+ 4. Each sub-agent creates its batch of todos using the file-todos skill
266
+ 5. Consolidate results and present summary
267
+
268
+ **Process (Using file-todos Skill):**
269
+
270
+ 1. For each finding:
271
+
272
+ - Determine severity (P1/P2/P3)
273
+ - Write detailed Problem Statement and Findings
274
+ - Create 2-3 Proposed Solutions with pros/cons/effort/risk
275
+ - Estimate effort (Small/Medium/Large)
276
+ - Add acceptance criteria and work log
277
+
278
+ 2. Use file-todos skill for structured todo management:
279
+
280
+ ```bash
281
+ skill: file-todos
282
+ ```
283
+
284
+ The skill provides:
285
+
286
+ - Template location: `.claude/skills/file-todos/assets/todo-template.md`
287
+ - Naming convention: `{issue_id}-{status}-{priority}-{description}.md`
288
+ - YAML frontmatter structure: status, priority, issue_id, tags, dependencies
289
+ - All required sections: Problem Statement, Findings, Solutions, etc.
290
+
291
+ 3. Create todo files in parallel:
292
+
293
+ ```bash
294
+ {next_id}-pending-{priority}-{description}.md
295
+ ```
296
+
297
+ 4. Examples:
298
+
299
+ ```
300
+ 001-pending-p1-path-traversal-vulnerability.md
301
+ 002-pending-p1-api-response-validation.md
302
+ 003-pending-p2-concurrency-limit.md
303
+ 004-pending-p3-unused-parameter.md
304
+ ```
305
+
306
+ 5. Follow template structure from file-todos skill: `.claude/skills/file-todos/assets/todo-template.md`
307
+
308
+ **Todo File Structure (from template):**
309
+
310
+ Each todo must include:
311
+
312
+ - **YAML frontmatter**: status, priority, issue_id, tags, dependencies
313
+ - **Problem Statement**: What's broken/missing, why it matters
314
+ - **Findings**: Discoveries from agents with evidence/location
315
+ - **Proposed Solutions**: 2-3 options, each with pros/cons/effort/risk
316
+ - **Recommended Action**: (Filled during triage, leave blank initially)
317
+ - **Technical Details**: Affected files, components, database changes
318
+ - **Acceptance Criteria**: Testable checklist items
319
+ - **Work Log**: Dated record with actions and learnings
320
+ - **Resources**: Links to PR, issues, documentation, similar patterns
321
+
322
+ **File naming convention:**
323
+
324
+ ```
325
+ {issue_id}-{status}-{priority}-{description}.md
326
+
327
+ Examples:
328
+ - 001-pending-p1-security-vulnerability.md
329
+ - 002-pending-p2-performance-optimization.md
330
+ - 003-pending-p3-code-cleanup.md
331
+ ```
332
+
333
+ **Status values:**
334
+
335
+ - `pending` - New findings, needs triage/decision
336
+ - `ready` - Approved by manager, ready to work
337
+ - `complete` - Work finished
338
+
339
+ **Priority values:**
340
+
341
+ - `p1` - Critical (blocks merge, security/data issues)
342
+ - `p2` - Important (should fix, architectural/performance)
343
+ - `p3` - Nice-to-have (enhancements, cleanup)
344
+
345
+ **Tagging:** Always add `code-review` tag, plus: `security`, `performance`, `architecture`, `rails`, `quality`, etc.
346
+
347
+ #### Step 3: Summary Report
348
+
349
+ After creating all todo files, present comprehensive summary:
350
+
351
+ ````markdown
352
+ ## ✅ Code Review Complete
353
+
354
+ **Review Target:** PR #XXXX - [PR Title] **Branch:** [branch-name]
355
+
356
+ ### Findings Summary:
357
+
358
+ - **Total Findings:** [X]
359
+ - **🔴 CRITICAL (P1):** [count] - BLOCKS MERGE
360
+ - **🟡 IMPORTANT (P2):** [count] - Should Fix
361
+ - **🔵 NICE-TO-HAVE (P3):** [count] - Enhancements
362
+
363
+ ### Created Todo Files:
364
+
365
+ **P1 - Critical (BLOCKS MERGE):**
366
+
367
+ - `001-pending-p1-{finding}.md` - {description}
368
+ - `002-pending-p1-{finding}.md` - {description}
369
+
370
+ **P2 - Important:**
371
+
372
+ - `003-pending-p2-{finding}.md` - {description}
373
+ - `004-pending-p2-{finding}.md` - {description}
374
+
375
+ **P3 - Nice-to-Have:**
376
+
377
+ - `005-pending-p3-{finding}.md` - {description}
378
+
379
+ ### Review Agents Used:
380
+
381
+ - kieran-rails-reviewer
382
+ - security-sentinel
383
+ - performance-oracle
384
+ - architecture-strategist
385
+ - agent-native-reviewer
386
+ - [other agents]
387
+
388
+ ### Next Steps:
389
+
390
+ 1. **Address P1 Findings**: CRITICAL - must be fixed before merge
391
+
392
+ - Review each P1 todo in detail
393
+ - Implement fixes or request exemption
394
+ - Verify fixes before merging PR
395
+
396
+ 2. **Triage All Todos**:
397
+ ```bash
398
+ ls todos/*-pending-*.md # View all pending todos
399
+ /triage # Use slash command for interactive triage
400
+ ```
401
+ ````
402
+
403
+ 3. **Work on Approved Todos**:
404
+
405
+ ```bash
406
+ /resolve_todo_parallel # Fix all approved items efficiently
407
+ ```
408
+
409
+ 4. **Track Progress**:
410
+ - Rename file when status changes: pending → ready → complete
411
+ - Update Work Log as you work
412
+ - Commit todos: `git add todos/ && git commit -m "refactor: add code review findings"`
413
+
414
+ ### Severity Breakdown:
415
+
416
+ **🔴 P1 (Critical - Blocks Merge):**
417
+
418
+ - Security vulnerabilities
419
+ - Data corruption risks
420
+ - Breaking changes
421
+ - Critical architectural issues
422
+
423
+ **🟡 P2 (Important - Should Fix):**
424
+
425
+ - Performance issues
426
+ - Significant architectural concerns
427
+ - Major code quality problems
428
+ - Reliability issues
429
+
430
+ **🔵 P3 (Nice-to-Have):**
431
+
432
+ - Minor improvements
433
+ - Code cleanup
434
+ - Optimization opportunities
435
+ - Documentation updates
436
+
437
+ ```
438
+
439
+ ### 7. End-to-End Testing (Optional)
440
+
441
+ <detect_project_type>
442
+
443
+ **First, detect the project type from PR files:**
444
+
445
+ | Indicator | Project Type |
446
+ |-----------|--------------|
447
+ | `*.xcodeproj`, `*.xcworkspace`, `Package.swift` (iOS) | iOS/macOS |
448
+ | `Gemfile`, `package.json`, `app/views/*`, `*.html.*` | Web |
449
+ | Both iOS files AND web files | Hybrid (test both) |
450
+
451
+ </detect_project_type>
452
+
453
+ <offer_testing>
454
+
455
+ After presenting the Summary Report, offer appropriate testing based on project type:
456
+
457
+ **For Web Projects:**
458
+ ```markdown
459
+ **"Want to run browser tests on the affected pages?"**
460
+ 1. Yes - run `/test-browser`
461
+ 2. No - skip
462
+ ```
463
+
464
+ **For iOS Projects:**
465
+ ```markdown
466
+ **"Want to run Xcode simulator tests on the app?"**
467
+ 1. Yes - run `/xcode-test`
468
+ 2. No - skip
469
+ ```
470
+
471
+ **For Hybrid Projects (e.g., Rails + Hotwire Native):**
472
+ ```markdown
473
+ **"Want to run end-to-end tests?"**
474
+ 1. Web only - run `/test-browser`
475
+ 2. iOS only - run `/xcode-test`
476
+ 3. Both - run both commands
477
+ 4. No - skip
478
+ ```
479
+
480
+ </offer_testing>
481
+
482
+ #### If User Accepts Web Testing:
483
+
484
+ Spawn a subagent to run browser tests (preserves main context):
485
+
486
+ ```
487
+ Run subagent with agent="general-purpose" and task=""Run /test-browser for PR #[number]. Test all affected pages, check for console errors, handle failures by creating todos and fixing."".
488
+ ```
489
+
490
+ The subagent will:
491
+ 1. Identify pages affected by the PR
492
+ 2. Navigate to each page and capture snapshots (using Playwright MCP or agent-browser CLI)
493
+ 3. Check for console errors
494
+ 4. Test critical interactions
495
+ 5. Pause for human verification on OAuth/email/payment flows
496
+ 6. Create P1 todos for any failures
497
+ 7. Fix and retry until all tests pass
498
+
499
+ **Standalone:** `/test-browser [PR number]`
500
+
501
+ #### If User Accepts iOS Testing:
502
+
503
+ Spawn a subagent to run Xcode tests (preserves main context):
504
+
505
+ ```
506
+ Run subagent with agent="general-purpose" and task=""Run /xcode-test for scheme [name]. Build for simulator, install, launch, take screenshots, check for crashes."".
507
+ ```
508
+
509
+ The subagent will:
510
+ 1. Verify XcodeBuildMCP is installed
511
+ 2. Discover project and schemes
512
+ 3. Build for iOS Simulator
513
+ 4. Install and launch app
514
+ 5. Take screenshots of key screens
515
+ 6. Capture console logs for errors
516
+ 7. Pause for human verification (Sign in with Apple, push, IAP)
517
+ 8. Create P1 todos for any failures
518
+ 9. Fix and retry until all tests pass
519
+
520
+ **Standalone:** `/xcode-test [scheme]`
521
+
522
+ ### Important: P1 Findings Block Merge
523
+
524
+ Any **🔴 P1 (CRITICAL)** findings must be addressed before merging the PR. Present these prominently and ensure they're resolved before accepting the PR.
525
+ ```
526
+ ## Pi + MCPorter note
527
+ For MCP access in Pi, use MCPorter via the generated tools:
528
+ - `mcporter_list` to inspect available MCP tools
529
+ - `mcporter_call` to invoke a tool