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,432 @@
1
+ ---
2
+ description: Execute work plans efficiently while maintaining quality and finishing features
3
+ argument-hint: "[plan file, specification, or todo file path]"
4
+ ---
5
+
6
+ # Work Plan Execution Command
7
+
8
+ Execute a work plan efficiently while maintaining quality and finishing features.
9
+
10
+ ## Introduction
11
+
12
+ This command takes a work document (plan, specification, or todo file) and executes it systematically. The focus is on **shipping complete features** by understanding requirements quickly, following existing patterns, and maintaining quality throughout.
13
+
14
+ ## Input Document
15
+
16
+ <input_document> #$ARGUMENTS </input_document>
17
+
18
+ ## Execution Workflow
19
+
20
+ ### Phase 1: Quick Start
21
+
22
+ 1. **Read Plan and Clarify**
23
+
24
+ - Read the work document completely
25
+ - Review any references or links provided in the plan
26
+ - If anything is unclear or ambiguous, ask clarifying questions now
27
+ - Get user approval to proceed
28
+ - **Do not skip this** - better to ask questions now than build the wrong thing
29
+
30
+ 2. **Setup Environment**
31
+
32
+ First, check the current branch:
33
+
34
+ ```bash
35
+ current_branch=$(git branch --show-current)
36
+ default_branch=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
37
+
38
+ # Fallback if remote HEAD isn't set
39
+ if [ -z "$default_branch" ]; then
40
+ default_branch=$(git rev-parse --verify origin/main >/dev/null 2>&1 && echo "main" || echo "master")
41
+ fi
42
+ ```
43
+
44
+ **If already on a feature branch** (not the default branch):
45
+ - Ask: "Continue working on `[current_branch]`, or create a new branch?"
46
+ - If continuing, proceed to step 3
47
+ - If creating new, follow Option A or B below
48
+
49
+ **If on the default branch**, choose how to proceed:
50
+
51
+ **Option A: Create a new branch**
52
+ ```bash
53
+ git pull origin [default_branch]
54
+ git checkout -b feature-branch-name
55
+ ```
56
+ Use a meaningful name based on the work (e.g., `feat/user-authentication`, `fix/email-validation`).
57
+
58
+ **Option B: Use a worktree (recommended for parallel development)**
59
+ ```bash
60
+ skill: git-worktree
61
+ # The skill will create a new branch from the default branch in an isolated worktree
62
+ ```
63
+
64
+ **Option C: Continue on the default branch**
65
+ - Requires explicit user confirmation
66
+ - Only proceed after user explicitly says "yes, commit to [default_branch]"
67
+ - Never commit directly to the default branch without explicit permission
68
+
69
+ **Recommendation**: Use worktree if:
70
+ - You want to work on multiple features simultaneously
71
+ - You want to keep the default branch clean while experimenting
72
+ - You plan to switch between branches frequently
73
+
74
+ 3. **Create Todo List**
75
+ - Use file-based todos (todos/ + /skill:file-todos) to break plan into actionable tasks
76
+ - Include dependencies between tasks
77
+ - Prioritize based on what needs to be done first
78
+ - Include testing and quality check tasks
79
+ - Keep tasks specific and completable
80
+
81
+ ### Phase 2: Execute
82
+
83
+ 1. **Task Execution Loop**
84
+
85
+ For each task in priority order:
86
+
87
+ ```
88
+ while (tasks remain):
89
+ - Mark task as in_progress in file-based todos (todos/ + /skill:file-todos)
90
+ - Read any referenced files from the plan
91
+ - Look for similar patterns in codebase
92
+ - Implement following existing conventions
93
+ - Write tests for new functionality
94
+ - Run tests after changes
95
+ - Mark task as completed in file-based todos (todos/ + /skill:file-todos)
96
+ - Mark off the corresponding checkbox in the plan file ([ ] → [x])
97
+ - Evaluate for incremental commit (see below)
98
+ ```
99
+
100
+ **IMPORTANT**: Always update the original plan document by checking off completed items. Use the Edit tool to change `- [ ]` to `- [x]` for each task you finish. This keeps the plan as a living document showing progress and ensures no checkboxes are left unchecked.
101
+
102
+ 2. **Incremental Commits**
103
+
104
+ After completing each task, evaluate whether to create an incremental commit:
105
+
106
+ | Commit when... | Don't commit when... |
107
+ |----------------|---------------------|
108
+ | Logical unit complete (model, service, component) | Small part of a larger unit |
109
+ | Tests pass + meaningful progress | Tests failing |
110
+ | About to switch contexts (backend → frontend) | Purely scaffolding with no behavior |
111
+ | About to attempt risky/uncertain changes | Would need a "WIP" commit message |
112
+
113
+ **Heuristic:** "Can I write a commit message that describes a complete, valuable change? If yes, commit. If the message would be 'WIP' or 'partial X', wait."
114
+
115
+ **Commit workflow:**
116
+ ```bash
117
+ # 1. Verify tests pass (use project's test command)
118
+ # Examples: bin/rails test, npm test, pytest, go test, etc.
119
+
120
+ # 2. Stage only files related to this logical unit (not `git add .`)
121
+ git add <files related to this logical unit>
122
+
123
+ # 3. Commit with conventional message
124
+ git commit -m "feat(scope): description of this unit"
125
+ ```
126
+
127
+ **Handling merge conflicts:** If conflicts arise during rebasing or merging, resolve them immediately. Incremental commits make conflict resolution easier since each commit is small and focused.
128
+
129
+ **Note:** Incremental commits use clean conventional messages without attribution footers. The final Phase 4 commit/PR includes the full attribution.
130
+
131
+ 3. **Follow Existing Patterns**
132
+
133
+ - The plan should reference similar code - read those files first
134
+ - Match naming conventions exactly
135
+ - Reuse existing components where possible
136
+ - Follow project coding standards (see CLAUDE.md)
137
+ - When in doubt, grep for similar implementations
138
+
139
+ 4. **Test Continuously**
140
+
141
+ - Run relevant tests after each significant change
142
+ - Don't wait until the end to test
143
+ - Fix failures immediately
144
+ - Add new tests for new functionality
145
+
146
+ 5. **Figma Design Sync** (if applicable)
147
+
148
+ For UI work with Figma designs:
149
+
150
+ - Implement components following design specs
151
+ - Use figma-design-sync agent iteratively to compare
152
+ - Fix visual differences identified
153
+ - Repeat until implementation matches design
154
+
155
+ 6. **Track Progress**
156
+ - Keep file-based todos (todos/ + /skill:file-todos) updated as you complete tasks
157
+ - Note any blockers or unexpected discoveries
158
+ - Create new tasks if scope expands
159
+ - Keep user informed of major milestones
160
+
161
+ ### Phase 3: Quality Check
162
+
163
+ 1. **Run Core Quality Checks**
164
+
165
+ Always run before submitting:
166
+
167
+ ```bash
168
+ # Run full test suite (use project's test command)
169
+ # Examples: bin/rails test, npm test, pytest, go test, etc.
170
+
171
+ # Run linting (per CLAUDE.md)
172
+ # Use linting-agent before pushing to origin
173
+ ```
174
+
175
+ 2. **Consider Reviewer Agents** (Optional)
176
+
177
+ Use for complex, risky, or large changes:
178
+
179
+ - **code-simplicity-reviewer**: Check for unnecessary complexity
180
+ - **kieran-rails-reviewer**: Verify Rails conventions (Rails projects)
181
+ - **performance-oracle**: Check for performance issues
182
+ - **security-sentinel**: Scan for security vulnerabilities
183
+ - **cora-test-reviewer**: Review test quality (Rails projects with comprehensive test coverage)
184
+
185
+ Run reviewers in parallel with Task tool:
186
+
187
+ ```
188
+ Task(code-simplicity-reviewer): "Review changes for simplicity"
189
+ Task(kieran-rails-reviewer): "Check Rails conventions"
190
+ ```
191
+
192
+ Present findings to user and address critical issues.
193
+
194
+ 3. **Final Validation**
195
+ - All file-based todos (todos/ + /skill:file-todos) tasks marked completed
196
+ - All tests pass
197
+ - Linting passes
198
+ - Code follows existing patterns
199
+ - Figma designs match (if applicable)
200
+ - No console errors or warnings
201
+
202
+ ### Phase 4: Ship It
203
+
204
+ 1. **Create Commit**
205
+
206
+ ```bash
207
+ git add .
208
+ git status # Review what's being committed
209
+ git diff --staged # Check the changes
210
+
211
+ # Commit with conventional format
212
+ git commit -m "$(cat <<'EOF'
213
+ feat(scope): description of what and why
214
+
215
+ Brief explanation if needed.
216
+
217
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
218
+
219
+ Co-Authored-By: Claude <noreply@anthropic.com>
220
+ EOF
221
+ )"
222
+ ```
223
+
224
+ 2. **Capture and Upload Screenshots for UI Changes** (REQUIRED for any UI work)
225
+
226
+ For **any** design changes, new views, or UI modifications, you MUST capture and upload screenshots:
227
+
228
+ **Step 1: Start dev server** (if not running)
229
+ ```bash
230
+ bin/dev # Run in background
231
+ ```
232
+
233
+ **Step 2: Capture screenshots with agent-browser CLI**
234
+ ```bash
235
+ agent-browser open http://localhost:3000/[route]
236
+ agent-browser snapshot -i
237
+ agent-browser screenshot output.png
238
+ ```
239
+ See the `agent-browser` skill for detailed usage.
240
+
241
+ **Step 3: Upload using imgup skill**
242
+ ```bash
243
+ skill: imgup
244
+ # Then upload each screenshot:
245
+ imgup -h pixhost screenshot.png # pixhost works without API key
246
+ # Alternative hosts: catbox, imagebin, beeimg
247
+ ```
248
+
249
+ **What to capture:**
250
+ - **New screens**: Screenshot of the new UI
251
+ - **Modified screens**: Before AND after screenshots
252
+ - **Design implementation**: Screenshot showing Figma design match
253
+
254
+ **IMPORTANT**: Always include uploaded image URLs in PR description. This provides visual context for reviewers and documents the change.
255
+
256
+ 3. **Create Pull Request**
257
+
258
+ ```bash
259
+ git push -u origin feature-branch-name
260
+
261
+ gh pr create --title "Feature: [Description]" --body "$(cat <<'EOF'
262
+ ## Summary
263
+ - What was built
264
+ - Why it was needed
265
+ - Key decisions made
266
+
267
+ ## Testing
268
+ - Tests added/modified
269
+ - Manual testing performed
270
+
271
+ ## Before / After Screenshots
272
+ | Before | After |
273
+ |--------|-------|
274
+ | ![before](URL) | ![after](URL) |
275
+
276
+ ## Figma Design
277
+ [Link if applicable]
278
+
279
+ ---
280
+
281
+ [![Compound Engineered](https://img.shields.io/badge/Compound-Engineered-6366f1)](https://github.com/EveryInc/compound-engineering-plugin) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
282
+ EOF
283
+ )"
284
+ ```
285
+
286
+ 4. **Notify User**
287
+ - Summarize what was completed
288
+ - Link to PR
289
+ - Note any follow-up work needed
290
+ - Suggest next steps if applicable
291
+
292
+ ---
293
+
294
+ ## Swarm Mode (Optional)
295
+
296
+ For complex plans with multiple independent workstreams, enable swarm mode for parallel execution with coordinated agents.
297
+
298
+ ### When to Use Swarm Mode
299
+
300
+ | Use Swarm Mode when... | Use Standard Mode when... |
301
+ |------------------------|---------------------------|
302
+ | Plan has 5+ independent tasks | Plan is linear/sequential |
303
+ | Multiple specialists needed (review + test + implement) | Single-focus work |
304
+ | Want maximum parallelism | Simpler mental model preferred |
305
+ | Large feature with clear phases | Small feature or bug fix |
306
+
307
+ ### Enabling Swarm Mode
308
+
309
+ To trigger swarm execution, say:
310
+
311
+ > "Make a Task list and launch an army of agent swarm subagents to build the plan"
312
+
313
+ Or explicitly request: "Use swarm mode for this work"
314
+
315
+ ### Swarm Workflow
316
+
317
+ When swarm mode is enabled, the workflow changes:
318
+
319
+ 1. **Create Team**
320
+ ```
321
+ Teammate({ operation: "spawnTeam", team_name: "work-{timestamp}" })
322
+ ```
323
+
324
+ 2. **Create Task List with Dependencies**
325
+ - Parse plan into TaskCreate items
326
+ - Set up blockedBy relationships for sequential dependencies
327
+ - Independent tasks have no blockers (can run in parallel)
328
+
329
+ 3. **Spawn Specialized Teammates**
330
+ ```
331
+ Task({
332
+ team_name: "work-{timestamp}",
333
+ name: "implementer",
334
+ subagent_type: "general-purpose",
335
+ prompt: "Claim implementation tasks, execute, mark complete",
336
+ run_in_background: true
337
+ })
338
+
339
+ Task({
340
+ team_name: "work-{timestamp}",
341
+ name: "tester",
342
+ subagent_type: "general-purpose",
343
+ prompt: "Claim testing tasks, run tests, mark complete",
344
+ run_in_background: true
345
+ })
346
+ ```
347
+
348
+ 4. **Coordinate and Monitor**
349
+ - Team lead monitors task completion
350
+ - Spawn additional workers as phases unblock
351
+ - Handle plan approval if required
352
+
353
+ 5. **Cleanup**
354
+ ```
355
+ Teammate({ operation: "requestShutdown", target_agent_id: "implementer" })
356
+ Teammate({ operation: "requestShutdown", target_agent_id: "tester" })
357
+ Teammate({ operation: "cleanup" })
358
+ ```
359
+
360
+ See the `orchestrating-swarms` skill for detailed swarm patterns and best practices.
361
+
362
+ ---
363
+
364
+ ## Key Principles
365
+
366
+ ### Start Fast, Execute Faster
367
+
368
+ - Get clarification once at the start, then execute
369
+ - Don't wait for perfect understanding - ask questions and move
370
+ - The goal is to **finish the feature**, not create perfect process
371
+
372
+ ### The Plan is Your Guide
373
+
374
+ - Work documents should reference similar code and patterns
375
+ - Load those references and follow them
376
+ - Don't reinvent - match what exists
377
+
378
+ ### Test As You Go
379
+
380
+ - Run tests after each change, not at the end
381
+ - Fix failures immediately
382
+ - Continuous testing prevents big surprises
383
+
384
+ ### Quality is Built In
385
+
386
+ - Follow existing patterns
387
+ - Write tests for new code
388
+ - Run linting before pushing
389
+ - Use reviewer agents for complex/risky changes only
390
+
391
+ ### Ship Complete Features
392
+
393
+ - Mark all tasks completed before moving on
394
+ - Don't leave features 80% done
395
+ - A finished feature that ships beats a perfect feature that doesn't
396
+
397
+ ## Quality Checklist
398
+
399
+ Before creating PR, verify:
400
+
401
+ - [ ] All clarifying questions asked and answered
402
+ - [ ] All file-based todos (todos/ + /skill:file-todos) tasks marked completed
403
+ - [ ] Tests pass (run project's test command)
404
+ - [ ] Linting passes (use linting-agent)
405
+ - [ ] Code follows existing patterns
406
+ - [ ] Figma designs match implementation (if applicable)
407
+ - [ ] Before/after screenshots captured and uploaded (for UI changes)
408
+ - [ ] Commit messages follow conventional format
409
+ - [ ] PR description includes summary, testing notes, and screenshots
410
+ - [ ] PR description includes Compound Engineered badge
411
+
412
+ ## When to Use Reviewer Agents
413
+
414
+ **Don't use by default.** Use reviewer agents only when:
415
+
416
+ - Large refactor affecting many files (10+)
417
+ - Security-sensitive changes (authentication, permissions, data access)
418
+ - Performance-critical code paths
419
+ - Complex algorithms or business logic
420
+ - User explicitly requests thorough review
421
+
422
+ For most features: tests + linting + following patterns is sufficient.
423
+
424
+ ## Common Pitfalls to Avoid
425
+
426
+ - **Analysis paralysis** - Don't overthink, read the plan and execute
427
+ - **Skipping clarifying questions** - Ask now, not after building wrong thing
428
+ - **Ignoring plan references** - The plan has links for a reason
429
+ - **Testing at the end** - Test continuously or suffer later
430
+ - **Forgetting file-based todos (todos/ + /skill:file-todos)** - Track progress or lose track of what's done
431
+ - **80% done syndrome** - Finish the feature, don't move on early
432
+ - **Over-reviewing simple changes** - Save reviewer agents for complex work
@@ -0,0 +1,223 @@
1
+ ---
2
+ name: agent-browser
3
+ description: Browser automation using Vercel's agent-browser CLI. Use when you need to interact with web pages, fill forms, take screenshots, or scrape data. Alternative to Playwright MCP - uses Bash commands with ref-based element selection. Triggers on "browse website", "fill form", "click button", "take screenshot", "scrape page", "web automation".
4
+ ---
5
+
6
+ # agent-browser: CLI Browser Automation
7
+
8
+ Vercel's headless browser automation CLI designed for AI agents. Uses ref-based selection (@e1, @e2) from accessibility snapshots.
9
+
10
+ ## Setup Check
11
+
12
+ ```bash
13
+ # Check installation
14
+ command -v agent-browser >/dev/null 2>&1 && echo "Installed" || echo "NOT INSTALLED - run: npm install -g agent-browser && agent-browser install"
15
+ ```
16
+
17
+ ### Install if needed
18
+
19
+ ```bash
20
+ npm install -g agent-browser
21
+ agent-browser install # Downloads Chromium
22
+ ```
23
+
24
+ ## Core Workflow
25
+
26
+ **The snapshot + ref pattern is optimal for LLMs:**
27
+
28
+ 1. **Navigate** to URL
29
+ 2. **Snapshot** to get interactive elements with refs
30
+ 3. **Interact** using refs (@e1, @e2, etc.)
31
+ 4. **Re-snapshot** after navigation or DOM changes
32
+
33
+ ```bash
34
+ # Step 1: Open URL
35
+ agent-browser open https://example.com
36
+
37
+ # Step 2: Get interactive elements with refs
38
+ agent-browser snapshot -i --json
39
+
40
+ # Step 3: Interact using refs
41
+ agent-browser click @e1
42
+ agent-browser fill @e2 "search query"
43
+
44
+ # Step 4: Re-snapshot after changes
45
+ agent-browser snapshot -i
46
+ ```
47
+
48
+ ## Key Commands
49
+
50
+ ### Navigation
51
+
52
+ ```bash
53
+ agent-browser open <url> # Navigate to URL
54
+ agent-browser back # Go back
55
+ agent-browser forward # Go forward
56
+ agent-browser reload # Reload page
57
+ agent-browser close # Close browser
58
+ ```
59
+
60
+ ### Snapshots (Essential for AI)
61
+
62
+ ```bash
63
+ agent-browser snapshot # Full accessibility tree
64
+ agent-browser snapshot -i # Interactive elements only (recommended)
65
+ agent-browser snapshot -i --json # JSON output for parsing
66
+ agent-browser snapshot -c # Compact (remove empty elements)
67
+ agent-browser snapshot -d 3 # Limit depth
68
+ ```
69
+
70
+ ### Interactions
71
+
72
+ ```bash
73
+ agent-browser click @e1 # Click element
74
+ agent-browser dblclick @e1 # Double-click
75
+ agent-browser fill @e1 "text" # Clear and fill input
76
+ agent-browser type @e1 "text" # Type without clearing
77
+ agent-browser press Enter # Press key
78
+ agent-browser hover @e1 # Hover element
79
+ agent-browser check @e1 # Check checkbox
80
+ agent-browser uncheck @e1 # Uncheck checkbox
81
+ agent-browser select @e1 "option" # Select dropdown option
82
+ agent-browser scroll down 500 # Scroll (up/down/left/right)
83
+ agent-browser scrollintoview @e1 # Scroll element into view
84
+ ```
85
+
86
+ ### Get Information
87
+
88
+ ```bash
89
+ agent-browser get text @e1 # Get element text
90
+ agent-browser get html @e1 # Get element HTML
91
+ agent-browser get value @e1 # Get input value
92
+ agent-browser get attr href @e1 # Get attribute
93
+ agent-browser get title # Get page title
94
+ agent-browser get url # Get current URL
95
+ agent-browser get count "button" # Count matching elements
96
+ ```
97
+
98
+ ### Screenshots & PDFs
99
+
100
+ ```bash
101
+ agent-browser screenshot # Viewport screenshot
102
+ agent-browser screenshot --full # Full page
103
+ agent-browser screenshot output.png # Save to file
104
+ agent-browser screenshot --full output.png # Full page to file
105
+ agent-browser pdf output.pdf # Save as PDF
106
+ ```
107
+
108
+ ### Wait
109
+
110
+ ```bash
111
+ agent-browser wait @e1 # Wait for element
112
+ agent-browser wait 2000 # Wait milliseconds
113
+ agent-browser wait "text" # Wait for text to appear
114
+ ```
115
+
116
+ ## Semantic Locators (Alternative to Refs)
117
+
118
+ ```bash
119
+ agent-browser find role button click --name "Submit"
120
+ agent-browser find text "Sign up" click
121
+ agent-browser find label "Email" fill "user@example.com"
122
+ agent-browser find placeholder "Search..." fill "query"
123
+ ```
124
+
125
+ ## Sessions (Parallel Browsers)
126
+
127
+ ```bash
128
+ # Run multiple independent browser sessions
129
+ agent-browser --session browser1 open https://site1.com
130
+ agent-browser --session browser2 open https://site2.com
131
+
132
+ # List active sessions
133
+ agent-browser session list
134
+ ```
135
+
136
+ ## Examples
137
+
138
+ ### Login Flow
139
+
140
+ ```bash
141
+ agent-browser open https://app.example.com/login
142
+ agent-browser snapshot -i
143
+ # Output shows: textbox "Email" [ref=e1], textbox "Password" [ref=e2], button "Sign in" [ref=e3]
144
+ agent-browser fill @e1 "user@example.com"
145
+ agent-browser fill @e2 "password123"
146
+ agent-browser click @e3
147
+ agent-browser wait 2000
148
+ agent-browser snapshot -i # Verify logged in
149
+ ```
150
+
151
+ ### Search and Extract
152
+
153
+ ```bash
154
+ agent-browser open https://news.ycombinator.com
155
+ agent-browser snapshot -i --json
156
+ # Parse JSON to find story links
157
+ agent-browser get text @e12 # Get headline text
158
+ agent-browser click @e12 # Click to open story
159
+ ```
160
+
161
+ ### Form Filling
162
+
163
+ ```bash
164
+ agent-browser open https://forms.example.com
165
+ agent-browser snapshot -i
166
+ agent-browser fill @e1 "John Doe"
167
+ agent-browser fill @e2 "john@example.com"
168
+ agent-browser select @e3 "United States"
169
+ agent-browser check @e4 # Agree to terms
170
+ agent-browser click @e5 # Submit button
171
+ agent-browser screenshot confirmation.png
172
+ ```
173
+
174
+ ### Debug Mode
175
+
176
+ ```bash
177
+ # Run with visible browser window
178
+ agent-browser --headed open https://example.com
179
+ agent-browser --headed snapshot -i
180
+ agent-browser --headed click @e1
181
+ ```
182
+
183
+ ## JSON Output
184
+
185
+ Add `--json` for structured output:
186
+
187
+ ```bash
188
+ agent-browser snapshot -i --json
189
+ ```
190
+
191
+ Returns:
192
+ ```json
193
+ {
194
+ "success": true,
195
+ "data": {
196
+ "refs": {
197
+ "e1": {"name": "Submit", "role": "button"},
198
+ "e2": {"name": "Email", "role": "textbox"}
199
+ },
200
+ "snapshot": "- button \"Submit\" [ref=e1]\n- textbox \"Email\" [ref=e2]"
201
+ }
202
+ }
203
+ ```
204
+
205
+ ## vs Playwright MCP
206
+
207
+ | Feature | agent-browser (CLI) | Playwright MCP |
208
+ |---------|---------------------|----------------|
209
+ | Interface | Bash commands | MCP tools |
210
+ | Selection | Refs (@e1) | Refs (e1) |
211
+ | Output | Text/JSON | Tool responses |
212
+ | Parallel | Sessions | Tabs |
213
+ | Best for | Quick automation | Tool integration |
214
+
215
+ Use agent-browser when:
216
+ - You prefer Bash-based workflows
217
+ - You want simpler CLI commands
218
+ - You need quick one-off automation
219
+
220
+ Use Playwright MCP when:
221
+ - You need deep MCP tool integration
222
+ - You want tool-based responses
223
+ - You're building complex automation