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,341 @@
1
+ ---
2
+ description: Record a video walkthrough of a feature and add it to the PR description
3
+ argument-hint: "[PR number or 'current'] [optional: base URL, default localhost:3000]"
4
+ ---
5
+
6
+ # Feature Video Walkthrough
7
+
8
+ <command_purpose>Record a video walkthrough demonstrating a feature, upload it, and add it to the PR description.</command_purpose>
9
+
10
+ ## Introduction
11
+
12
+ <role>Developer Relations Engineer creating feature demo videos</role>
13
+
14
+ This command creates professional video walkthroughs of features for PR documentation:
15
+ - Records browser interactions using agent-browser CLI
16
+ - Demonstrates the complete user flow
17
+ - Uploads the video for easy sharing
18
+ - Updates the PR description with an embedded video
19
+
20
+ ## Prerequisites
21
+
22
+ <requirements>
23
+ - Local development server running (e.g., `bin/dev`, `rails server`)
24
+ - agent-browser CLI installed
25
+ - Git repository with a PR to document
26
+ - `ffmpeg` installed (for video conversion)
27
+ - `rclone` configured (optional, for cloud upload - see rclone skill)
28
+ </requirements>
29
+
30
+ ## Setup
31
+
32
+ **Check installation:**
33
+ ```bash
34
+ command -v agent-browser >/dev/null 2>&1 && echo "Installed" || echo "NOT INSTALLED"
35
+ ```
36
+
37
+ **Install if needed:**
38
+ ```bash
39
+ npm install -g agent-browser && agent-browser install
40
+ ```
41
+
42
+ See the `agent-browser` skill for detailed usage.
43
+
44
+ ## Main Tasks
45
+
46
+ ### 1. Parse Arguments
47
+
48
+ <parse_args>
49
+
50
+ **Arguments:** $ARGUMENTS
51
+
52
+ Parse the input:
53
+ - First argument: PR number or "current" (defaults to current branch's PR)
54
+ - Second argument: Base URL (defaults to `http://localhost-3000`)
55
+
56
+ ```bash
57
+ # Get PR number for current branch if needed
58
+ gh pr view --json number -q '.number'
59
+ ```
60
+
61
+ </parse_args>
62
+
63
+ ### 2. Gather Feature Context
64
+
65
+ <gather_context>
66
+
67
+ **Get PR details:**
68
+ ```bash
69
+ gh pr view [number] --json title,body,files,headRefName -q '.'
70
+ ```
71
+
72
+ **Get changed files:**
73
+ ```bash
74
+ gh pr view [number] --json files -q '.files[].path'
75
+ ```
76
+
77
+ **Map files to testable routes** (same as playwright-test):
78
+
79
+ | File Pattern | Route(s) |
80
+ |-------------|----------|
81
+ | `app/views/users/*` | `/users`, `/users/:id`, `/users/new` |
82
+ | `app/controllers/settings_controller.rb` | `/settings` |
83
+ | `app/javascript/controllers/*_controller.js` | Pages using that Stimulus controller |
84
+ | `app/components/*_component.rb` | Pages rendering that component |
85
+
86
+ </gather_context>
87
+
88
+ ### 3. Plan the Video Flow
89
+
90
+ <plan_flow>
91
+
92
+ Before recording, create a shot list:
93
+
94
+ 1. **Opening shot**: Homepage or starting point (2-3 seconds)
95
+ 2. **Navigation**: How user gets to the feature
96
+ 3. **Feature demonstration**: Core functionality (main focus)
97
+ 4. **Edge cases**: Error states, validation, etc. (if applicable)
98
+ 5. **Success state**: Completed action/result
99
+
100
+ Ask user to confirm or adjust the flow:
101
+
102
+ ```markdown
103
+ **Proposed Video Flow**
104
+
105
+ Based on PR #[number]: [title]
106
+
107
+ 1. Start at: /[starting-route]
108
+ 2. Navigate to: /[feature-route]
109
+ 3. Demonstrate:
110
+ - [Action 1]
111
+ - [Action 2]
112
+ - [Action 3]
113
+ 4. Show result: [success state]
114
+
115
+ Estimated duration: ~[X] seconds
116
+
117
+ Does this look right?
118
+ 1. Yes, start recording
119
+ 2. Modify the flow (describe changes)
120
+ 3. Add specific interactions to demonstrate
121
+ ```
122
+
123
+ </plan_flow>
124
+
125
+ ### 4. Setup Video Recording
126
+
127
+ <setup_recording>
128
+
129
+ **Create videos directory:**
130
+ ```bash
131
+ mkdir -p tmp/videos
132
+ ```
133
+
134
+ **Recording approach: Use browser screenshots as frames**
135
+
136
+ agent-browser captures screenshots at key moments, then combine into video using ffmpeg:
137
+
138
+ ```bash
139
+ ffmpeg -framerate 2 -pattern_type glob -i 'tmp/screenshots/*.png' -vf "scale=1280:-1" tmp/videos/feature-demo.gif
140
+ ```
141
+
142
+ </setup_recording>
143
+
144
+ ### 5. Record the Walkthrough
145
+
146
+ <record_walkthrough>
147
+
148
+ Execute the planned flow, capturing each step:
149
+
150
+ **Step 1: Navigate to starting point**
151
+ ```bash
152
+ agent-browser open "[base-url]/[start-route]"
153
+ agent-browser wait 2000
154
+ agent-browser screenshot tmp/screenshots/01-start.png
155
+ ```
156
+
157
+ **Step 2: Perform navigation/interactions**
158
+ ```bash
159
+ agent-browser snapshot -i # Get refs
160
+ agent-browser click @e1 # Click navigation element
161
+ agent-browser wait 1000
162
+ agent-browser screenshot tmp/screenshots/02-navigate.png
163
+ ```
164
+
165
+ **Step 3: Demonstrate feature**
166
+ ```bash
167
+ agent-browser snapshot -i # Get refs for feature elements
168
+ agent-browser click @e2 # Click feature element
169
+ agent-browser wait 1000
170
+ agent-browser screenshot tmp/screenshots/03-feature.png
171
+ ```
172
+
173
+ **Step 4: Capture result**
174
+ ```bash
175
+ agent-browser wait 2000
176
+ agent-browser screenshot tmp/screenshots/04-result.png
177
+ ```
178
+
179
+ **Create video/GIF from screenshots:**
180
+
181
+ ```bash
182
+ # Create directories
183
+ mkdir -p tmp/videos tmp/screenshots
184
+
185
+ # Create MP4 video (RECOMMENDED - better quality, smaller size)
186
+ # -framerate 0.5 = 2 seconds per frame (slower playback)
187
+ # -framerate 1 = 1 second per frame
188
+ ffmpeg -y -framerate 0.5 -pattern_type glob -i 'tmp/screenshots/*.png' \
189
+ -c:v libx264 -pix_fmt yuv420p -vf "scale=1280:-2" \
190
+ tmp/videos/feature-demo.mp4
191
+
192
+ # Create low-quality GIF for preview (small file, for GitHub embed)
193
+ ffmpeg -y -framerate 0.5 -pattern_type glob -i 'tmp/screenshots/*.png' \
194
+ -vf "scale=640:-1:flags=lanczos,split[s0][s1];[s0]palettegen=max_colors=128[p];[s1][p]paletteuse" \
195
+ -loop 0 tmp/videos/feature-demo-preview.gif
196
+ ```
197
+
198
+ **Note:**
199
+ - The `-2` in MP4 scale ensures height is divisible by 2 (required for H.264)
200
+ - Preview GIF uses 640px width and 128 colors to keep file size small (~100-200KB)
201
+
202
+ </record_walkthrough>
203
+
204
+ ### 6. Upload the Video
205
+
206
+ <upload_video>
207
+
208
+ **Upload with rclone:**
209
+
210
+ ```bash
211
+ # Check rclone is configured
212
+ rclone listremotes
213
+
214
+ # Upload video, preview GIF, and screenshots to cloud storage
215
+ # Use --s3-no-check-bucket to avoid permission errors
216
+ rclone copy tmp/videos/ r2:kieran-claude/pr-videos/pr-[number]/ --s3-no-check-bucket --progress
217
+ rclone copy tmp/screenshots/ r2:kieran-claude/pr-videos/pr-[number]/screenshots/ --s3-no-check-bucket --progress
218
+
219
+ # List uploaded files
220
+ rclone ls r2:kieran-claude/pr-videos/pr-[number]/
221
+ ```
222
+
223
+ Public URLs (R2 with public access):
224
+ ```
225
+ Video: https://pub-4047722ebb1b4b09853f24d3b61467f1.r2.dev/pr-videos/pr-[number]/feature-demo.mp4
226
+ Preview: https://pub-4047722ebb1b4b09853f24d3b61467f1.r2.dev/pr-videos/pr-[number]/feature-demo-preview.gif
227
+ ```
228
+
229
+ </upload_video>
230
+
231
+ ### 7. Update PR Description
232
+
233
+ <update_pr>
234
+
235
+ **Get current PR body:**
236
+ ```bash
237
+ gh pr view [number] --json body -q '.body'
238
+ ```
239
+
240
+ **Add video section to PR description:**
241
+
242
+ If the PR already has a video section, replace it. Otherwise, append:
243
+
244
+ **IMPORTANT:** GitHub cannot embed external MP4s directly. Use a clickable GIF that links to the video:
245
+
246
+ ```markdown
247
+ ## Demo
248
+
249
+ [![Feature Demo]([preview-gif-url])]([video-mp4-url])
250
+
251
+ *Click to view full video*
252
+ ```
253
+
254
+ Example:
255
+ ```markdown
256
+ [![Feature Demo](https://pub-4047722ebb1b4b09853f24d3b61467f1.r2.dev/pr-videos/pr-137/feature-demo-preview.gif)](https://pub-4047722ebb1b4b09853f24d3b61467f1.r2.dev/pr-videos/pr-137/feature-demo.mp4)
257
+ ```
258
+
259
+ **Update the PR:**
260
+ ```bash
261
+ gh pr edit [number] --body "[updated body with video section]"
262
+ ```
263
+
264
+ **Or add as a comment if preferred:**
265
+ ```bash
266
+ gh pr comment [number] --body "## Feature Demo
267
+
268
+ ![Demo]([video-url])
269
+
270
+ _Automated walkthrough of the changes in this PR_"
271
+ ```
272
+
273
+ </update_pr>
274
+
275
+ ### 8. Cleanup
276
+
277
+ <cleanup>
278
+
279
+ ```bash
280
+ # Optional: Clean up screenshots
281
+ rm -rf tmp/screenshots
282
+
283
+ # Keep videos for reference
284
+ echo "Video retained at: tmp/videos/feature-demo.gif"
285
+ ```
286
+
287
+ </cleanup>
288
+
289
+ ### 9. Summary
290
+
291
+ <summary>
292
+
293
+ Present completion summary:
294
+
295
+ ```markdown
296
+ ## Feature Video Complete
297
+
298
+ **PR:** #[number] - [title]
299
+ **Video:** [url or local path]
300
+ **Duration:** ~[X] seconds
301
+ **Format:** [GIF/MP4]
302
+
303
+ ### Shots Captured
304
+ 1. [Starting point] - [description]
305
+ 2. [Navigation] - [description]
306
+ 3. [Feature demo] - [description]
307
+ 4. [Result] - [description]
308
+
309
+ ### PR Updated
310
+ - [x] Video section added to PR description
311
+ - [ ] Ready for review
312
+
313
+ **Next steps:**
314
+ - Review the video to ensure it accurately demonstrates the feature
315
+ - Share with reviewers for context
316
+ ```
317
+
318
+ </summary>
319
+
320
+ ## Quick Usage Examples
321
+
322
+ ```bash
323
+ # Record video for current branch's PR
324
+ /feature-video
325
+
326
+ # Record video for specific PR
327
+ /feature-video 847
328
+
329
+ # Record with custom base URL
330
+ /feature-video 847 http://localhost-5000
331
+
332
+ # Record for staging environment
333
+ /feature-video current https://staging.example.com
334
+ ```
335
+
336
+ ## Tips
337
+
338
+ - **Keep it short**: 10-30 seconds is ideal for PR demos
339
+ - **Focus on the change**: Don't include unrelated UI
340
+ - **Show before/after**: If fixing a bug, show the broken state first (if possible)
341
+ - **Annotate if needed**: Add text overlays for complex features
@@ -0,0 +1,36 @@
1
+ ---
2
+ description: Resolve all pending CLI todos using parallel processing
3
+ argument-hint: "[optional: specific todo ID or pattern]"
4
+ ---
5
+
6
+ Resolve all TODO comments using parallel processing.
7
+
8
+ ## Workflow
9
+
10
+ ### 1. Analyze
11
+
12
+ Get all unresolved TODOs from the /todos/\*.md directory
13
+
14
+ If any todo recommends deleting, removing, or gitignoring files in `docs/plans/` or `docs/solutions/`, skip it and mark it as `wont_fix`. These are compound-engineering pipeline artifacts that are intentional and permanent.
15
+
16
+ ### 2. Plan
17
+
18
+ Create a file-based todos (todos/ + /skill:file-todos) list of all unresolved items grouped by type.Make sure to look at dependencies that might occur and prioritize the ones needed by others. For example, if you need to change a name, you must wait to do the others. Output a mermaid flow diagram showing how we can do this. Can we do everything in parallel? Do we need to do one first that leads to others in parallel? I'll put the to-dos in the mermaid diagram flow‑wise so the agent knows how to proceed in order.
19
+
20
+ ### 3. Implement (PARALLEL)
21
+
22
+ Spawn a pr-comment-resolver agent for each unresolved item in parallel.
23
+
24
+ So if there are 3 comments, it will spawn 3 pr-comment-resolver agents in parallel. liek this
25
+
26
+ 1. Task pr-comment-resolver(comment1)
27
+ 2. Task pr-comment-resolver(comment2)
28
+ 3. Task pr-comment-resolver(comment3)
29
+
30
+ Always run all in parallel subagents/Tasks for each Todo item.
31
+
32
+ ### 4. Commit & Resolve
33
+
34
+ - Commit changes
35
+ - Remove the TODO from the file, and mark it as resolved.
36
+ - Push to remote
@@ -0,0 +1,342 @@
1
+ ---
2
+ description: Run browser tests on pages affected by current PR or branch
3
+ argument-hint: "[PR number, branch name, or 'current' for current branch]"
4
+ ---
5
+
6
+ # Browser Test Command
7
+
8
+ <command_purpose>Run end-to-end browser tests on pages affected by a PR or branch changes using agent-browser CLI.</command_purpose>
9
+
10
+ ## CRITICAL: Use agent-browser CLI Only
11
+
12
+ **DO NOT use Chrome MCP tools (mcp__claude-in-chrome__*).**
13
+
14
+ This command uses the `agent-browser` CLI exclusively. The agent-browser CLI is a Bash-based tool from Vercel that runs headless Chromium. It is NOT the same as Chrome browser automation via MCP.
15
+
16
+ If you find yourself calling `mcp__claude-in-chrome__*` tools, STOP. Use `agent-browser` Bash commands instead.
17
+
18
+ ## Introduction
19
+
20
+ <role>QA Engineer specializing in browser-based end-to-end testing</role>
21
+
22
+ This command tests affected pages in a real browser, catching issues that unit tests miss:
23
+ - JavaScript integration bugs
24
+ - CSS/layout regressions
25
+ - User workflow breakages
26
+ - Console errors
27
+
28
+ ## Prerequisites
29
+
30
+ <requirements>
31
+ - Local development server running (e.g., `bin/dev`, `rails server`, `npm run dev`)
32
+ - agent-browser CLI installed (see Setup below)
33
+ - Git repository with changes to test
34
+ </requirements>
35
+
36
+ ## Setup
37
+
38
+ **Check installation:**
39
+ ```bash
40
+ command -v agent-browser >/dev/null 2>&1 && echo "Installed" || echo "NOT INSTALLED"
41
+ ```
42
+
43
+ **Install if needed:**
44
+ ```bash
45
+ npm install -g agent-browser
46
+ agent-browser install # Downloads Chromium (~160MB)
47
+ ```
48
+
49
+ See the `agent-browser` skill for detailed usage.
50
+
51
+ ## Main Tasks
52
+
53
+ ### 0. Verify agent-browser Installation
54
+
55
+ Before starting ANY browser testing, verify agent-browser is installed:
56
+
57
+ ```bash
58
+ command -v agent-browser >/dev/null 2>&1 && echo "Ready" || (echo "Installing..." && npm install -g agent-browser && agent-browser install)
59
+ ```
60
+
61
+ If installation fails, inform the user and stop.
62
+
63
+ ### 1. Ask Browser Mode
64
+
65
+ <ask_browser_mode>
66
+
67
+ Before starting tests, ask user if they want to watch the browser:
68
+
69
+ Use ask_user_question with:
70
+ - Question: "Do you want to watch the browser tests run?"
71
+ - Options:
72
+ 1. **Headed (watch)** - Opens visible browser window so you can see tests run
73
+ 2. **Headless (faster)** - Runs in background, faster but invisible
74
+
75
+ Store the choice and use `--headed` flag when user selects "Headed".
76
+
77
+ </ask_browser_mode>
78
+
79
+ ### 2. Determine Test Scope
80
+
81
+ <test_target> $ARGUMENTS </test_target>
82
+
83
+ <determine_scope>
84
+
85
+ **If PR number provided:**
86
+ ```bash
87
+ gh pr view [number] --json files -q '.files[].path'
88
+ ```
89
+
90
+ **If 'current' or empty:**
91
+ ```bash
92
+ git diff --name-only main...HEAD
93
+ ```
94
+
95
+ **If branch name provided:**
96
+ ```bash
97
+ git diff --name-only main...[branch]
98
+ ```
99
+
100
+ </determine_scope>
101
+
102
+ ### 3. Map Files to Routes
103
+
104
+ <file_to_route_mapping>
105
+
106
+ Map changed files to testable routes:
107
+
108
+ | File Pattern | Route(s) |
109
+ |-------------|----------|
110
+ | `app/views/users/*` | `/users`, `/users/:id`, `/users/new` |
111
+ | `app/controllers/settings_controller.rb` | `/settings` |
112
+ | `app/javascript/controllers/*_controller.js` | Pages using that Stimulus controller |
113
+ | `app/components/*_component.rb` | Pages rendering that component |
114
+ | `app/views/layouts/*` | All pages (test homepage at minimum) |
115
+ | `app/assets/stylesheets/*` | Visual regression on key pages |
116
+ | `app/helpers/*_helper.rb` | Pages using that helper |
117
+ | `src/app/*` (Next.js) | Corresponding routes |
118
+ | `src/components/*` | Pages using those components |
119
+
120
+ Build a list of URLs to test based on the mapping.
121
+
122
+ </file_to_route_mapping>
123
+
124
+ ### 4. Verify Server is Running
125
+
126
+ <check_server>
127
+
128
+ Before testing, verify the local server is accessible:
129
+
130
+ ```bash
131
+ agent-browser open http://localhost-3000
132
+ agent-browser snapshot -i
133
+ ```
134
+
135
+ If server is not running, inform user:
136
+ ```markdown
137
+ **Server not running**
138
+
139
+ Please start your development server:
140
+ - Rails: `bin/dev` or `rails server`
141
+ - Node/Next.js: `npm run dev`
142
+
143
+ Then run `/test-browser` again.
144
+ ```
145
+
146
+ </check_server>
147
+
148
+ ### 5. Test Each Affected Page
149
+
150
+ <test_pages>
151
+
152
+ For each affected route, use agent-browser CLI commands (NOT Chrome MCP):
153
+
154
+ **Step 1: Navigate and capture snapshot**
155
+ ```bash
156
+ agent-browser open "http://localhost:3000/[route]"
157
+ agent-browser snapshot -i
158
+ ```
159
+
160
+ **Step 2: For headed mode (visual debugging)**
161
+ ```bash
162
+ agent-browser --headed open "http://localhost:3000/[route]"
163
+ agent-browser --headed snapshot -i
164
+ ```
165
+
166
+ **Step 3: Verify key elements**
167
+ - Use `agent-browser snapshot -i` to get interactive elements with refs
168
+ - Page title/heading present
169
+ - Primary content rendered
170
+ - No error messages visible
171
+ - Forms have expected fields
172
+
173
+ **Step 4: Test critical interactions**
174
+ ```bash
175
+ agent-browser click @e1 # Use ref from snapshot
176
+ agent-browser snapshot -i
177
+ ```
178
+
179
+ **Step 5: Take screenshots**
180
+ ```bash
181
+ agent-browser screenshot page-name.png
182
+ agent-browser screenshot --full page-name-full.png # Full page
183
+ ```
184
+
185
+ </test_pages>
186
+
187
+ ### 6. Human Verification (When Required)
188
+
189
+ <human_verification>
190
+
191
+ Pause for human input when testing touches:
192
+
193
+ | Flow Type | What to Ask |
194
+ |-----------|-------------|
195
+ | OAuth | "Please sign in with [provider] and confirm it works" |
196
+ | Email | "Check your inbox for the test email and confirm receipt" |
197
+ | Payments | "Complete a test purchase in sandbox mode" |
198
+ | SMS | "Verify you received the SMS code" |
199
+ | External APIs | "Confirm the [service] integration is working" |
200
+
201
+ Use ask_user_question:
202
+ ```markdown
203
+ **Human Verification Needed**
204
+
205
+ This test touches the [flow type]. Please:
206
+ 1. [Action to take]
207
+ 2. [What to verify]
208
+
209
+ Did it work correctly?
210
+ 1. Yes - continue testing
211
+ 2. No - describe the issue
212
+ ```
213
+
214
+ </human_verification>
215
+
216
+ ### 7. Handle Failures
217
+
218
+ <failure_handling>
219
+
220
+ When a test fails:
221
+
222
+ 1. **Document the failure:**
223
+ - Screenshot the error state: `agent-browser screenshot error.png`
224
+ - Note the exact reproduction steps
225
+
226
+ 2. **Ask user how to proceed:**
227
+ ```markdown
228
+ **Test Failed: [route]**
229
+
230
+ Issue: [description]
231
+ Console errors: [if any]
232
+
233
+ How to proceed?
234
+ 1. Fix now - I'll help debug and fix
235
+ 2. Create todo - Add to todos/ for later
236
+ 3. Skip - Continue testing other pages
237
+ ```
238
+
239
+ 3. **If "Fix now":**
240
+ - Investigate the issue
241
+ - Propose a fix
242
+ - Apply fix
243
+ - Re-run the failing test
244
+
245
+ 4. **If "Create todo":**
246
+ - Create `{id}-pending-p1-browser-test-{description}.md`
247
+ - Continue testing
248
+
249
+ 5. **If "Skip":**
250
+ - Log as skipped
251
+ - Continue testing
252
+
253
+ </failure_handling>
254
+
255
+ ### 8. Test Summary
256
+
257
+ <test_summary>
258
+
259
+ After all tests complete, present summary:
260
+
261
+ ```markdown
262
+ ## Browser Test Results
263
+
264
+ **Test Scope:** PR #[number] / [branch name]
265
+ **Server:** http://localhost-3000
266
+
267
+ ### Pages Tested: [count]
268
+
269
+ | Route | Status | Notes |
270
+ |-------|--------|-------|
271
+ | `/users` | Pass | |
272
+ | `/settings` | Pass | |
273
+ | `/dashboard` | Fail | Console error: [msg] |
274
+ | `/checkout` | Skip | Requires payment credentials |
275
+
276
+ ### Console Errors: [count]
277
+ - [List any errors found]
278
+
279
+ ### Human Verifications: [count]
280
+ - OAuth flow: Confirmed
281
+ - Email delivery: Confirmed
282
+
283
+ ### Failures: [count]
284
+ - `/dashboard` - [issue description]
285
+
286
+ ### Created Todos: [count]
287
+ - `005-pending-p1-browser-test-dashboard-error.md`
288
+
289
+ ### Result: [PASS / FAIL / PARTIAL]
290
+ ```
291
+
292
+ </test_summary>
293
+
294
+ ## Quick Usage Examples
295
+
296
+ ```bash
297
+ # Test current branch changes
298
+ /test-browser
299
+
300
+ # Test specific PR
301
+ /test-browser 847
302
+
303
+ # Test specific branch
304
+ /test-browser feature/new-dashboard
305
+ ```
306
+
307
+ ## agent-browser CLI Reference
308
+
309
+ **ALWAYS use these Bash commands. NEVER use mcp__claude-in-chrome__* tools.**
310
+
311
+ ```bash
312
+ # Navigation
313
+ agent-browser open <url> # Navigate to URL
314
+ agent-browser back # Go back
315
+ agent-browser close # Close browser
316
+
317
+ # Snapshots (get element refs)
318
+ agent-browser snapshot -i # Interactive elements with refs (@e1, @e2, etc.)
319
+ agent-browser snapshot -i --json # JSON output
320
+
321
+ # Interactions (use refs from snapshot)
322
+ agent-browser click @e1 # Click element
323
+ agent-browser fill @e1 "text" # Fill input
324
+ agent-browser type @e1 "text" # Type without clearing
325
+ agent-browser press Enter # Press key
326
+
327
+ # Screenshots
328
+ agent-browser screenshot out.png # Viewport screenshot
329
+ agent-browser screenshot --full out.png # Full page screenshot
330
+
331
+ # Headed mode (visible browser)
332
+ agent-browser --headed open <url> # Open with visible browser
333
+ agent-browser --headed click @e1 # Click in visible browser
334
+
335
+ # Wait
336
+ agent-browser wait @e1 # Wait for element
337
+ agent-browser wait 2000 # Wait milliseconds
338
+ ```
339
+ ## Pi + MCPorter note
340
+ For MCP access in Pi, use MCPorter via the generated tools:
341
+ - `mcporter_list` to inspect available MCP tools
342
+ - `mcporter_call` to invoke a tool