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