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.
- package/LICENSE +21 -0
- package/README.md +124 -0
- package/bin/compound-engineering-pi +12 -0
- package/bin/compound-plugin +12 -0
- package/compound-engineering-pi +12 -0
- package/compound-plugin +5 -0
- package/docs/pi.md +152 -0
- package/extensions/compound-engineering-compat.ts +452 -0
- package/package.json +84 -0
- package/pi-resources/compound-engineering/mcporter.json +7 -0
- package/plugins/coding-tutor/.claude-plugin/plugin.json +9 -0
- package/plugins/coding-tutor/README.md +37 -0
- package/plugins/coding-tutor/commands/quiz-me.md +1 -0
- package/plugins/coding-tutor/commands/sync-tutorials.md +25 -0
- package/plugins/coding-tutor/commands/teach-me.md +1 -0
- package/plugins/coding-tutor/skills/coding-tutor/SKILL.md +214 -0
- package/plugins/coding-tutor/skills/coding-tutor/scripts/create_tutorial.py +207 -0
- package/plugins/coding-tutor/skills/coding-tutor/scripts/index_tutorials.py +193 -0
- package/plugins/coding-tutor/skills/coding-tutor/scripts/quiz_priority.py +190 -0
- package/plugins/coding-tutor/skills/coding-tutor/scripts/setup_tutorials.py +118 -0
- package/plugins/compound-engineering/.claude-plugin/plugin.json +33 -0
- package/plugins/compound-engineering/CHANGELOG.md +457 -0
- package/plugins/compound-engineering/CLAUDE.md +89 -0
- package/plugins/compound-engineering/LICENSE +21 -0
- package/plugins/compound-engineering/README.md +232 -0
- package/plugins/compound-engineering/agents/design/design-implementation-reviewer.md +109 -0
- package/plugins/compound-engineering/agents/design/design-iterator.md +224 -0
- package/plugins/compound-engineering/agents/design/figma-design-sync.md +190 -0
- package/plugins/compound-engineering/agents/docs/ankane-readme-writer.md +65 -0
- package/plugins/compound-engineering/agents/research/best-practices-researcher.md +126 -0
- package/plugins/compound-engineering/agents/research/framework-docs-researcher.md +106 -0
- package/plugins/compound-engineering/agents/research/git-history-analyzer.md +59 -0
- package/plugins/compound-engineering/agents/research/learnings-researcher.md +264 -0
- package/plugins/compound-engineering/agents/research/repo-research-analyst.md +135 -0
- package/plugins/compound-engineering/agents/review/agent-native-reviewer.md +261 -0
- package/plugins/compound-engineering/agents/review/architecture-strategist.md +67 -0
- package/plugins/compound-engineering/agents/review/code-simplicity-reviewer.md +101 -0
- package/plugins/compound-engineering/agents/review/data-integrity-guardian.md +85 -0
- package/plugins/compound-engineering/agents/review/data-migration-expert.md +112 -0
- package/plugins/compound-engineering/agents/review/deployment-verification-agent.md +174 -0
- package/plugins/compound-engineering/agents/review/dhh-rails-reviewer.md +66 -0
- package/plugins/compound-engineering/agents/review/julik-frontend-races-reviewer.md +221 -0
- package/plugins/compound-engineering/agents/review/kieran-python-reviewer.md +133 -0
- package/plugins/compound-engineering/agents/review/kieran-rails-reviewer.md +115 -0
- package/plugins/compound-engineering/agents/review/kieran-typescript-reviewer.md +124 -0
- package/plugins/compound-engineering/agents/review/pattern-recognition-specialist.md +72 -0
- package/plugins/compound-engineering/agents/review/performance-oracle.md +137 -0
- package/plugins/compound-engineering/agents/review/schema-drift-detector.md +154 -0
- package/plugins/compound-engineering/agents/review/security-sentinel.md +114 -0
- package/plugins/compound-engineering/agents/workflow/bug-reproduction-validator.md +82 -0
- package/plugins/compound-engineering/agents/workflow/every-style-editor.md +64 -0
- package/plugins/compound-engineering/agents/workflow/lint.md +16 -0
- package/plugins/compound-engineering/agents/workflow/pr-comment-resolver.md +84 -0
- package/plugins/compound-engineering/agents/workflow/spec-flow-analyzer.md +134 -0
- package/plugins/compound-engineering/commands/agent-native-audit.md +278 -0
- package/plugins/compound-engineering/commands/changelog.md +138 -0
- package/plugins/compound-engineering/commands/create-agent-skill.md +9 -0
- package/plugins/compound-engineering/commands/deepen-plan.md +546 -0
- package/plugins/compound-engineering/commands/deploy-docs.md +113 -0
- package/plugins/compound-engineering/commands/feature-video.md +342 -0
- package/plugins/compound-engineering/commands/generate_command.md +163 -0
- package/plugins/compound-engineering/commands/heal-skill.md +143 -0
- package/plugins/compound-engineering/commands/lfg.md +20 -0
- package/plugins/compound-engineering/commands/release-docs.md +212 -0
- package/plugins/compound-engineering/commands/report-bug.md +151 -0
- package/plugins/compound-engineering/commands/reproduce-bug.md +100 -0
- package/plugins/compound-engineering/commands/resolve_parallel.md +35 -0
- package/plugins/compound-engineering/commands/resolve_todo_parallel.md +37 -0
- package/plugins/compound-engineering/commands/slfg.md +32 -0
- package/plugins/compound-engineering/commands/technical_review.md +8 -0
- package/plugins/compound-engineering/commands/test-browser.md +339 -0
- package/plugins/compound-engineering/commands/test-xcode.md +332 -0
- package/plugins/compound-engineering/commands/triage.md +311 -0
- package/plugins/compound-engineering/commands/workflows/brainstorm.md +124 -0
- package/plugins/compound-engineering/commands/workflows/compound.md +239 -0
- package/plugins/compound-engineering/commands/workflows/plan.md +551 -0
- package/plugins/compound-engineering/commands/workflows/review.md +526 -0
- package/plugins/compound-engineering/commands/workflows/work.md +433 -0
- package/plugins/compound-engineering/skills/agent-browser/SKILL.md +223 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/SKILL.md +435 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/product-implications.md +443 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/self-modification.md +269 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/SKILL.md +184 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/resources.md +119 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
- package/plugins/compound-engineering/skills/brainstorming/SKILL.md +190 -0
- package/plugins/compound-engineering/skills/compound-docs/SKILL.md +511 -0
- package/plugins/compound-engineering/skills/compound-docs/assets/critical-pattern-template.md +34 -0
- package/plugins/compound-engineering/skills/compound-docs/assets/resolution-template.md +93 -0
- package/plugins/compound-engineering/skills/compound-docs/references/yaml-schema.md +65 -0
- package/plugins/compound-engineering/skills/compound-docs/schema.yaml +176 -0
- package/plugins/compound-engineering/skills/create-agent-skills/SKILL.md +275 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/api-security.md +226 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/best-practices.md +404 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/common-patterns.md +595 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/core-principles.md +437 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/executable-code.md +175 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/official-spec.md +134 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/recommended-structure.md +168 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/skill-structure.md +152 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/using-scripts.md +113 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/using-templates.md +112 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
- package/plugins/compound-engineering/skills/create-agent-skills/templates/router-skill.md +73 -0
- package/plugins/compound-engineering/skills/create-agent-skills/templates/simple-skill.md +33 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-reference.md +96 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-script.md +93 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-template.md +74 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-workflow.md +120 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/audit-skill.md +138 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/get-guidance.md +121 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/verify-skill.md +204 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/SKILL.md +185 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/architecture.md +653 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/controllers.md +303 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/frontend.md +510 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/gems.md +266 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/models.md +359 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/testing.md +338 -0
- package/plugins/compound-engineering/skills/document-review/SKILL.md +87 -0
- package/plugins/compound-engineering/skills/dspy-ruby/SKILL.md +737 -0
- package/plugins/compound-engineering/skills/dspy-ruby/assets/config-template.rb +187 -0
- package/plugins/compound-engineering/skills/dspy-ruby/assets/module-template.rb +300 -0
- package/plugins/compound-engineering/skills/dspy-ruby/assets/signature-template.rb +221 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/core-concepts.md +674 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/observability.md +366 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/optimization.md +603 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/providers.md +418 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/toolsets.md +502 -0
- package/plugins/compound-engineering/skills/every-style-editor/SKILL.md +134 -0
- package/plugins/compound-engineering/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
- package/plugins/compound-engineering/skills/file-todos/SKILL.md +252 -0
- package/plugins/compound-engineering/skills/file-todos/assets/todo-template.md +155 -0
- package/plugins/compound-engineering/skills/frontend-design/SKILL.md +42 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/SKILL.md +237 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/requirements.txt +2 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/compose_images.py +157 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/edit_image.py +144 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/gemini_images.py +263 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/generate_image.py +133 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/multi_turn_chat.py +216 -0
- package/plugins/compound-engineering/skills/git-worktree/SKILL.md +302 -0
- package/plugins/compound-engineering/skills/git-worktree/scripts/worktree-manager.sh +337 -0
- package/plugins/compound-engineering/skills/orchestrating-swarms/SKILL.md +1718 -0
- package/plugins/compound-engineering/skills/rclone/SKILL.md +150 -0
- package/plugins/compound-engineering/skills/rclone/scripts/check_setup.sh +60 -0
- package/plugins/compound-engineering/skills/resolve-pr-parallel/SKILL.md +89 -0
- package/plugins/compound-engineering/skills/resolve-pr-parallel/scripts/get-pr-comments +68 -0
- package/plugins/compound-engineering/skills/resolve-pr-parallel/scripts/resolve-pr-thread +23 -0
- package/plugins/compound-engineering/skills/skill-creator/SKILL.md +210 -0
- package/plugins/compound-engineering/skills/skill-creator/scripts/init_skill.py +303 -0
- package/plugins/compound-engineering/skills/skill-creator/scripts/package_skill.py +110 -0
- package/plugins/compound-engineering/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/prompts/deepen-plan.md +549 -0
- package/prompts/feature-video.md +341 -0
- package/prompts/resolve_todo_parallel.md +36 -0
- package/prompts/test-browser.md +342 -0
- package/prompts/workflows-brainstorm.md +123 -0
- package/prompts/workflows-compound.md +238 -0
- package/prompts/workflows-plan.md +550 -0
- package/prompts/workflows-review.md +529 -0
- package/prompts/workflows-work.md +432 -0
- package/skills/agent-browser/SKILL.md +223 -0
- package/skills/agent-native-architecture/SKILL.md +435 -0
- package/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
- package/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
- package/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
- package/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
- package/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
- package/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
- package/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
- package/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
- package/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
- package/skills/agent-native-architecture/references/product-implications.md +443 -0
- package/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
- package/skills/agent-native-architecture/references/self-modification.md +269 -0
- package/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
- package/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
- package/skills/agent-native-reviewer/SKILL.md +260 -0
- package/skills/andrew-kane-gem-writer/SKILL.md +184 -0
- package/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
- package/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
- package/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
- package/skills/andrew-kane-gem-writer/references/resources.md +119 -0
- package/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
- package/skills/ankane-readme-writer/SKILL.md +63 -0
- package/skills/architecture-strategist/SKILL.md +66 -0
- package/skills/best-practices-researcher/SKILL.md +125 -0
- package/skills/brainstorming/SKILL.md +190 -0
- package/skills/bug-reproduction-validator/SKILL.md +81 -0
- package/skills/code-simplicity-reviewer/SKILL.md +100 -0
- package/skills/compound-docs/SKILL.md +511 -0
- package/skills/compound-docs/assets/critical-pattern-template.md +34 -0
- package/skills/compound-docs/assets/resolution-template.md +93 -0
- package/skills/compound-docs/references/yaml-schema.md +65 -0
- package/skills/compound-docs/schema.yaml +176 -0
- package/skills/create-agent-skills/SKILL.md +275 -0
- package/skills/create-agent-skills/references/api-security.md +226 -0
- package/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
- package/skills/create-agent-skills/references/best-practices.md +404 -0
- package/skills/create-agent-skills/references/common-patterns.md +595 -0
- package/skills/create-agent-skills/references/core-principles.md +437 -0
- package/skills/create-agent-skills/references/executable-code.md +175 -0
- package/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
- package/skills/create-agent-skills/references/official-spec.md +134 -0
- package/skills/create-agent-skills/references/recommended-structure.md +168 -0
- package/skills/create-agent-skills/references/skill-structure.md +152 -0
- package/skills/create-agent-skills/references/using-scripts.md +113 -0
- package/skills/create-agent-skills/references/using-templates.md +112 -0
- package/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
- package/skills/create-agent-skills/templates/router-skill.md +73 -0
- package/skills/create-agent-skills/templates/simple-skill.md +33 -0
- package/skills/create-agent-skills/workflows/add-reference.md +96 -0
- package/skills/create-agent-skills/workflows/add-script.md +93 -0
- package/skills/create-agent-skills/workflows/add-template.md +74 -0
- package/skills/create-agent-skills/workflows/add-workflow.md +120 -0
- package/skills/create-agent-skills/workflows/audit-skill.md +138 -0
- package/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
- package/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
- package/skills/create-agent-skills/workflows/get-guidance.md +121 -0
- package/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
- package/skills/create-agent-skills/workflows/verify-skill.md +204 -0
- package/skills/data-integrity-guardian/SKILL.md +84 -0
- package/skills/data-migration-expert/SKILL.md +111 -0
- package/skills/deployment-verification-agent/SKILL.md +173 -0
- package/skills/design-implementation-reviewer/SKILL.md +107 -0
- package/skills/design-iterator/SKILL.md +222 -0
- package/skills/dhh-rails-reviewer/SKILL.md +65 -0
- package/skills/dhh-rails-style/SKILL.md +185 -0
- package/skills/dhh-rails-style/references/architecture.md +653 -0
- package/skills/dhh-rails-style/references/controllers.md +303 -0
- package/skills/dhh-rails-style/references/frontend.md +510 -0
- package/skills/dhh-rails-style/references/gems.md +266 -0
- package/skills/dhh-rails-style/references/models.md +359 -0
- package/skills/dhh-rails-style/references/testing.md +338 -0
- package/skills/document-review/SKILL.md +87 -0
- package/skills/dspy-ruby/SKILL.md +737 -0
- package/skills/dspy-ruby/assets/config-template.rb +187 -0
- package/skills/dspy-ruby/assets/module-template.rb +300 -0
- package/skills/dspy-ruby/assets/signature-template.rb +221 -0
- package/skills/dspy-ruby/references/core-concepts.md +674 -0
- package/skills/dspy-ruby/references/observability.md +366 -0
- package/skills/dspy-ruby/references/optimization.md +603 -0
- package/skills/dspy-ruby/references/providers.md +418 -0
- package/skills/dspy-ruby/references/toolsets.md +502 -0
- package/skills/every-style-editor/SKILL.md +134 -0
- package/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
- package/skills/every-style-editor-2/SKILL.md +62 -0
- package/skills/figma-design-sync/SKILL.md +188 -0
- package/skills/file-todos/SKILL.md +252 -0
- package/skills/file-todos/assets/todo-template.md +155 -0
- package/skills/framework-docs-researcher/SKILL.md +105 -0
- package/skills/frontend-design/SKILL.md +42 -0
- package/skills/gemini-imagegen/SKILL.md +237 -0
- package/skills/gemini-imagegen/requirements.txt +2 -0
- package/skills/gemini-imagegen/scripts/compose_images.py +157 -0
- package/skills/gemini-imagegen/scripts/edit_image.py +144 -0
- package/skills/gemini-imagegen/scripts/gemini_images.py +263 -0
- package/skills/gemini-imagegen/scripts/generate_image.py +133 -0
- package/skills/gemini-imagegen/scripts/multi_turn_chat.py +216 -0
- package/skills/git-history-analyzer/SKILL.md +58 -0
- package/skills/git-worktree/SKILL.md +302 -0
- package/skills/git-worktree/scripts/worktree-manager.sh +337 -0
- package/skills/julik-frontend-races-reviewer/SKILL.md +220 -0
- package/skills/kieran-python-reviewer/SKILL.md +132 -0
- package/skills/kieran-rails-reviewer/SKILL.md +114 -0
- package/skills/kieran-typescript-reviewer/SKILL.md +123 -0
- package/skills/learnings-researcher/SKILL.md +263 -0
- package/skills/lint/SKILL.md +14 -0
- package/skills/orchestrating-swarms/SKILL.md +1718 -0
- package/skills/pattern-recognition-specialist/SKILL.md +71 -0
- package/skills/performance-oracle/SKILL.md +136 -0
- package/skills/pr-comment-resolver/SKILL.md +82 -0
- package/skills/rclone/SKILL.md +150 -0
- package/skills/rclone/scripts/check_setup.sh +60 -0
- package/skills/repo-research-analyst/SKILL.md +134 -0
- package/skills/resolve_pr_parallel/SKILL.md +89 -0
- package/skills/resolve_pr_parallel/scripts/get-pr-comments +68 -0
- package/skills/resolve_pr_parallel/scripts/resolve-pr-thread +23 -0
- package/skills/schema-drift-detector/SKILL.md +153 -0
- package/skills/security-sentinel/SKILL.md +113 -0
- package/skills/skill-creator/SKILL.md +210 -0
- package/skills/skill-creator/scripts/init_skill.py +303 -0
- package/skills/skill-creator/scripts/package_skill.py +110 -0
- package/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/skills/spec-flow-analyzer/SKILL.md +133 -0
- package/src/commands/convert.ts +183 -0
- package/src/commands/install.ts +273 -0
- package/src/commands/list.ts +37 -0
- package/src/commands/sync.ts +89 -0
- package/src/converters/claude-to-codex.ts +182 -0
- package/src/converters/claude-to-opencode.ts +395 -0
- package/src/converters/claude-to-pi.ts +205 -0
- package/src/index.ts +22 -0
- package/src/parsers/claude-home.ts +65 -0
- package/src/parsers/claude.ts +252 -0
- package/src/sync/codex.ts +92 -0
- package/src/sync/opencode.ts +75 -0
- package/src/sync/pi.ts +88 -0
- package/src/targets/codex.ts +96 -0
- package/src/targets/index.ts +38 -0
- package/src/targets/opencode.ts +57 -0
- package/src/targets/pi.ts +131 -0
- package/src/templates/pi/compat-extension.ts +452 -0
- package/src/types/claude.ts +90 -0
- package/src/types/codex.ts +23 -0
- package/src/types/opencode.ts +54 -0
- package/src/types/pi.ts +40 -0
- package/src/utils/codex-agents.ts +64 -0
- package/src/utils/files.ts +77 -0
- package/src/utils/frontmatter.ts +65 -0
- 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
|
+
[]([video-mp4-url])
|
|
250
|
+
|
|
251
|
+
*Click to view full video*
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
Example:
|
|
255
|
+
```markdown
|
|
256
|
+
[](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
|
+

|
|
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
|