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,339 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test-browser
|
|
3
|
+
description: Run browser tests on pages affected by current PR or branch
|
|
4
|
+
argument-hint: "[PR number, branch name, or 'current' for current branch]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Browser Test Command
|
|
8
|
+
|
|
9
|
+
<command_purpose>Run end-to-end browser tests on pages affected by a PR or branch changes using agent-browser CLI.</command_purpose>
|
|
10
|
+
|
|
11
|
+
## CRITICAL: Use agent-browser CLI Only
|
|
12
|
+
|
|
13
|
+
**DO NOT use Chrome MCP tools (mcp__claude-in-chrome__*).**
|
|
14
|
+
|
|
15
|
+
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.
|
|
16
|
+
|
|
17
|
+
If you find yourself calling `mcp__claude-in-chrome__*` tools, STOP. Use `agent-browser` Bash commands instead.
|
|
18
|
+
|
|
19
|
+
## Introduction
|
|
20
|
+
|
|
21
|
+
<role>QA Engineer specializing in browser-based end-to-end testing</role>
|
|
22
|
+
|
|
23
|
+
This command tests affected pages in a real browser, catching issues that unit tests miss:
|
|
24
|
+
- JavaScript integration bugs
|
|
25
|
+
- CSS/layout regressions
|
|
26
|
+
- User workflow breakages
|
|
27
|
+
- Console errors
|
|
28
|
+
|
|
29
|
+
## Prerequisites
|
|
30
|
+
|
|
31
|
+
<requirements>
|
|
32
|
+
- Local development server running (e.g., `bin/dev`, `rails server`, `npm run dev`)
|
|
33
|
+
- agent-browser CLI installed (see Setup below)
|
|
34
|
+
- Git repository with changes to test
|
|
35
|
+
</requirements>
|
|
36
|
+
|
|
37
|
+
## Setup
|
|
38
|
+
|
|
39
|
+
**Check installation:**
|
|
40
|
+
```bash
|
|
41
|
+
command -v agent-browser >/dev/null 2>&1 && echo "Installed" || echo "NOT INSTALLED"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**Install if needed:**
|
|
45
|
+
```bash
|
|
46
|
+
npm install -g agent-browser
|
|
47
|
+
agent-browser install # Downloads Chromium (~160MB)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
See the `agent-browser` skill for detailed usage.
|
|
51
|
+
|
|
52
|
+
## Main Tasks
|
|
53
|
+
|
|
54
|
+
### 0. Verify agent-browser Installation
|
|
55
|
+
|
|
56
|
+
Before starting ANY browser testing, verify agent-browser is installed:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
command -v agent-browser >/dev/null 2>&1 && echo "Ready" || (echo "Installing..." && npm install -g agent-browser && agent-browser install)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
If installation fails, inform the user and stop.
|
|
63
|
+
|
|
64
|
+
### 1. Ask Browser Mode
|
|
65
|
+
|
|
66
|
+
<ask_browser_mode>
|
|
67
|
+
|
|
68
|
+
Before starting tests, ask user if they want to watch the browser:
|
|
69
|
+
|
|
70
|
+
Use AskUserQuestion with:
|
|
71
|
+
- Question: "Do you want to watch the browser tests run?"
|
|
72
|
+
- Options:
|
|
73
|
+
1. **Headed (watch)** - Opens visible browser window so you can see tests run
|
|
74
|
+
2. **Headless (faster)** - Runs in background, faster but invisible
|
|
75
|
+
|
|
76
|
+
Store the choice and use `--headed` flag when user selects "Headed".
|
|
77
|
+
|
|
78
|
+
</ask_browser_mode>
|
|
79
|
+
|
|
80
|
+
### 2. Determine Test Scope
|
|
81
|
+
|
|
82
|
+
<test_target> $ARGUMENTS </test_target>
|
|
83
|
+
|
|
84
|
+
<determine_scope>
|
|
85
|
+
|
|
86
|
+
**If PR number provided:**
|
|
87
|
+
```bash
|
|
88
|
+
gh pr view [number] --json files -q '.files[].path'
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**If 'current' or empty:**
|
|
92
|
+
```bash
|
|
93
|
+
git diff --name-only main...HEAD
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**If branch name provided:**
|
|
97
|
+
```bash
|
|
98
|
+
git diff --name-only main...[branch]
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
</determine_scope>
|
|
102
|
+
|
|
103
|
+
### 3. Map Files to Routes
|
|
104
|
+
|
|
105
|
+
<file_to_route_mapping>
|
|
106
|
+
|
|
107
|
+
Map changed files to testable routes:
|
|
108
|
+
|
|
109
|
+
| File Pattern | Route(s) |
|
|
110
|
+
|-------------|----------|
|
|
111
|
+
| `app/views/users/*` | `/users`, `/users/:id`, `/users/new` |
|
|
112
|
+
| `app/controllers/settings_controller.rb` | `/settings` |
|
|
113
|
+
| `app/javascript/controllers/*_controller.js` | Pages using that Stimulus controller |
|
|
114
|
+
| `app/components/*_component.rb` | Pages rendering that component |
|
|
115
|
+
| `app/views/layouts/*` | All pages (test homepage at minimum) |
|
|
116
|
+
| `app/assets/stylesheets/*` | Visual regression on key pages |
|
|
117
|
+
| `app/helpers/*_helper.rb` | Pages using that helper |
|
|
118
|
+
| `src/app/*` (Next.js) | Corresponding routes |
|
|
119
|
+
| `src/components/*` | Pages using those components |
|
|
120
|
+
|
|
121
|
+
Build a list of URLs to test based on the mapping.
|
|
122
|
+
|
|
123
|
+
</file_to_route_mapping>
|
|
124
|
+
|
|
125
|
+
### 4. Verify Server is Running
|
|
126
|
+
|
|
127
|
+
<check_server>
|
|
128
|
+
|
|
129
|
+
Before testing, verify the local server is accessible:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
agent-browser open http://localhost:3000
|
|
133
|
+
agent-browser snapshot -i
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
If server is not running, inform user:
|
|
137
|
+
```markdown
|
|
138
|
+
**Server not running**
|
|
139
|
+
|
|
140
|
+
Please start your development server:
|
|
141
|
+
- Rails: `bin/dev` or `rails server`
|
|
142
|
+
- Node/Next.js: `npm run dev`
|
|
143
|
+
|
|
144
|
+
Then run `/test-browser` again.
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
</check_server>
|
|
148
|
+
|
|
149
|
+
### 5. Test Each Affected Page
|
|
150
|
+
|
|
151
|
+
<test_pages>
|
|
152
|
+
|
|
153
|
+
For each affected route, use agent-browser CLI commands (NOT Chrome MCP):
|
|
154
|
+
|
|
155
|
+
**Step 1: Navigate and capture snapshot**
|
|
156
|
+
```bash
|
|
157
|
+
agent-browser open "http://localhost:3000/[route]"
|
|
158
|
+
agent-browser snapshot -i
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**Step 2: For headed mode (visual debugging)**
|
|
162
|
+
```bash
|
|
163
|
+
agent-browser --headed open "http://localhost:3000/[route]"
|
|
164
|
+
agent-browser --headed snapshot -i
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
**Step 3: Verify key elements**
|
|
168
|
+
- Use `agent-browser snapshot -i` to get interactive elements with refs
|
|
169
|
+
- Page title/heading present
|
|
170
|
+
- Primary content rendered
|
|
171
|
+
- No error messages visible
|
|
172
|
+
- Forms have expected fields
|
|
173
|
+
|
|
174
|
+
**Step 4: Test critical interactions**
|
|
175
|
+
```bash
|
|
176
|
+
agent-browser click @e1 # Use ref from snapshot
|
|
177
|
+
agent-browser snapshot -i
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**Step 5: Take screenshots**
|
|
181
|
+
```bash
|
|
182
|
+
agent-browser screenshot page-name.png
|
|
183
|
+
agent-browser screenshot --full page-name-full.png # Full page
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
</test_pages>
|
|
187
|
+
|
|
188
|
+
### 6. Human Verification (When Required)
|
|
189
|
+
|
|
190
|
+
<human_verification>
|
|
191
|
+
|
|
192
|
+
Pause for human input when testing touches:
|
|
193
|
+
|
|
194
|
+
| Flow Type | What to Ask |
|
|
195
|
+
|-----------|-------------|
|
|
196
|
+
| OAuth | "Please sign in with [provider] and confirm it works" |
|
|
197
|
+
| Email | "Check your inbox for the test email and confirm receipt" |
|
|
198
|
+
| Payments | "Complete a test purchase in sandbox mode" |
|
|
199
|
+
| SMS | "Verify you received the SMS code" |
|
|
200
|
+
| External APIs | "Confirm the [service] integration is working" |
|
|
201
|
+
|
|
202
|
+
Use AskUserQuestion:
|
|
203
|
+
```markdown
|
|
204
|
+
**Human Verification Needed**
|
|
205
|
+
|
|
206
|
+
This test touches the [flow type]. Please:
|
|
207
|
+
1. [Action to take]
|
|
208
|
+
2. [What to verify]
|
|
209
|
+
|
|
210
|
+
Did it work correctly?
|
|
211
|
+
1. Yes - continue testing
|
|
212
|
+
2. No - describe the issue
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
</human_verification>
|
|
216
|
+
|
|
217
|
+
### 7. Handle Failures
|
|
218
|
+
|
|
219
|
+
<failure_handling>
|
|
220
|
+
|
|
221
|
+
When a test fails:
|
|
222
|
+
|
|
223
|
+
1. **Document the failure:**
|
|
224
|
+
- Screenshot the error state: `agent-browser screenshot error.png`
|
|
225
|
+
- Note the exact reproduction steps
|
|
226
|
+
|
|
227
|
+
2. **Ask user how to proceed:**
|
|
228
|
+
```markdown
|
|
229
|
+
**Test Failed: [route]**
|
|
230
|
+
|
|
231
|
+
Issue: [description]
|
|
232
|
+
Console errors: [if any]
|
|
233
|
+
|
|
234
|
+
How to proceed?
|
|
235
|
+
1. Fix now - I'll help debug and fix
|
|
236
|
+
2. Create todo - Add to todos/ for later
|
|
237
|
+
3. Skip - Continue testing other pages
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
3. **If "Fix now":**
|
|
241
|
+
- Investigate the issue
|
|
242
|
+
- Propose a fix
|
|
243
|
+
- Apply fix
|
|
244
|
+
- Re-run the failing test
|
|
245
|
+
|
|
246
|
+
4. **If "Create todo":**
|
|
247
|
+
- Create `{id}-pending-p1-browser-test-{description}.md`
|
|
248
|
+
- Continue testing
|
|
249
|
+
|
|
250
|
+
5. **If "Skip":**
|
|
251
|
+
- Log as skipped
|
|
252
|
+
- Continue testing
|
|
253
|
+
|
|
254
|
+
</failure_handling>
|
|
255
|
+
|
|
256
|
+
### 8. Test Summary
|
|
257
|
+
|
|
258
|
+
<test_summary>
|
|
259
|
+
|
|
260
|
+
After all tests complete, present summary:
|
|
261
|
+
|
|
262
|
+
```markdown
|
|
263
|
+
## Browser Test Results
|
|
264
|
+
|
|
265
|
+
**Test Scope:** PR #[number] / [branch name]
|
|
266
|
+
**Server:** http://localhost:3000
|
|
267
|
+
|
|
268
|
+
### Pages Tested: [count]
|
|
269
|
+
|
|
270
|
+
| Route | Status | Notes |
|
|
271
|
+
|-------|--------|-------|
|
|
272
|
+
| `/users` | Pass | |
|
|
273
|
+
| `/settings` | Pass | |
|
|
274
|
+
| `/dashboard` | Fail | Console error: [msg] |
|
|
275
|
+
| `/checkout` | Skip | Requires payment credentials |
|
|
276
|
+
|
|
277
|
+
### Console Errors: [count]
|
|
278
|
+
- [List any errors found]
|
|
279
|
+
|
|
280
|
+
### Human Verifications: [count]
|
|
281
|
+
- OAuth flow: Confirmed
|
|
282
|
+
- Email delivery: Confirmed
|
|
283
|
+
|
|
284
|
+
### Failures: [count]
|
|
285
|
+
- `/dashboard` - [issue description]
|
|
286
|
+
|
|
287
|
+
### Created Todos: [count]
|
|
288
|
+
- `005-pending-p1-browser-test-dashboard-error.md`
|
|
289
|
+
|
|
290
|
+
### Result: [PASS / FAIL / PARTIAL]
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
</test_summary>
|
|
294
|
+
|
|
295
|
+
## Quick Usage Examples
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
# Test current branch changes
|
|
299
|
+
/test-browser
|
|
300
|
+
|
|
301
|
+
# Test specific PR
|
|
302
|
+
/test-browser 847
|
|
303
|
+
|
|
304
|
+
# Test specific branch
|
|
305
|
+
/test-browser feature/new-dashboard
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
## agent-browser CLI Reference
|
|
309
|
+
|
|
310
|
+
**ALWAYS use these Bash commands. NEVER use mcp__claude-in-chrome__* tools.**
|
|
311
|
+
|
|
312
|
+
```bash
|
|
313
|
+
# Navigation
|
|
314
|
+
agent-browser open <url> # Navigate to URL
|
|
315
|
+
agent-browser back # Go back
|
|
316
|
+
agent-browser close # Close browser
|
|
317
|
+
|
|
318
|
+
# Snapshots (get element refs)
|
|
319
|
+
agent-browser snapshot -i # Interactive elements with refs (@e1, @e2, etc.)
|
|
320
|
+
agent-browser snapshot -i --json # JSON output
|
|
321
|
+
|
|
322
|
+
# Interactions (use refs from snapshot)
|
|
323
|
+
agent-browser click @e1 # Click element
|
|
324
|
+
agent-browser fill @e1 "text" # Fill input
|
|
325
|
+
agent-browser type @e1 "text" # Type without clearing
|
|
326
|
+
agent-browser press Enter # Press key
|
|
327
|
+
|
|
328
|
+
# Screenshots
|
|
329
|
+
agent-browser screenshot out.png # Viewport screenshot
|
|
330
|
+
agent-browser screenshot --full out.png # Full page screenshot
|
|
331
|
+
|
|
332
|
+
# Headed mode (visible browser)
|
|
333
|
+
agent-browser --headed open <url> # Open with visible browser
|
|
334
|
+
agent-browser --headed click @e1 # Click in visible browser
|
|
335
|
+
|
|
336
|
+
# Wait
|
|
337
|
+
agent-browser wait @e1 # Wait for element
|
|
338
|
+
agent-browser wait 2000 # Wait milliseconds
|
|
339
|
+
```
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test-xcode
|
|
3
|
+
description: Build and test iOS apps on simulator using XcodeBuildMCP
|
|
4
|
+
argument-hint: "[scheme name or 'current' to use default]"
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Xcode Test Command
|
|
9
|
+
|
|
10
|
+
<command_purpose>Build, install, and test iOS apps on the simulator using XcodeBuildMCP. Captures screenshots, logs, and verifies app behavior.</command_purpose>
|
|
11
|
+
|
|
12
|
+
## Introduction
|
|
13
|
+
|
|
14
|
+
<role>iOS QA Engineer specializing in simulator-based testing</role>
|
|
15
|
+
|
|
16
|
+
This command tests iOS/macOS apps by:
|
|
17
|
+
- Building for simulator
|
|
18
|
+
- Installing and launching the app
|
|
19
|
+
- Taking screenshots of key screens
|
|
20
|
+
- Capturing console logs for errors
|
|
21
|
+
- Supporting human verification for external flows
|
|
22
|
+
|
|
23
|
+
## Prerequisites
|
|
24
|
+
|
|
25
|
+
<requirements>
|
|
26
|
+
- Xcode installed with command-line tools
|
|
27
|
+
- XcodeBuildMCP server connected
|
|
28
|
+
- Valid Xcode project or workspace
|
|
29
|
+
- At least one iOS Simulator available
|
|
30
|
+
</requirements>
|
|
31
|
+
|
|
32
|
+
## Main Tasks
|
|
33
|
+
|
|
34
|
+
### 0. Verify XcodeBuildMCP is Installed
|
|
35
|
+
|
|
36
|
+
<check_mcp_installed>
|
|
37
|
+
|
|
38
|
+
**First, check if XcodeBuildMCP tools are available.**
|
|
39
|
+
|
|
40
|
+
Try calling:
|
|
41
|
+
```
|
|
42
|
+
mcp__xcodebuildmcp__list_simulators({})
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**If the tool is not found or errors:**
|
|
46
|
+
|
|
47
|
+
Tell the user:
|
|
48
|
+
```markdown
|
|
49
|
+
**XcodeBuildMCP not installed**
|
|
50
|
+
|
|
51
|
+
Please install the XcodeBuildMCP server first:
|
|
52
|
+
|
|
53
|
+
\`\`\`bash
|
|
54
|
+
claude mcp add XcodeBuildMCP -- npx xcodebuildmcp@latest
|
|
55
|
+
\`\`\`
|
|
56
|
+
|
|
57
|
+
Then restart Claude Code and run `/xcode-test` again.
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**Do NOT proceed** until XcodeBuildMCP is confirmed working.
|
|
61
|
+
|
|
62
|
+
</check_mcp_installed>
|
|
63
|
+
|
|
64
|
+
### 1. Discover Project and Scheme
|
|
65
|
+
|
|
66
|
+
<discover_project>
|
|
67
|
+
|
|
68
|
+
**Find available projects:**
|
|
69
|
+
```
|
|
70
|
+
mcp__xcodebuildmcp__discover_projs({})
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**List schemes for the project:**
|
|
74
|
+
```
|
|
75
|
+
mcp__xcodebuildmcp__list_schemes({ project_path: "/path/to/Project.xcodeproj" })
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**If argument provided:**
|
|
79
|
+
- Use the specified scheme name
|
|
80
|
+
- Or "current" to use the default/last-used scheme
|
|
81
|
+
|
|
82
|
+
</discover_project>
|
|
83
|
+
|
|
84
|
+
### 2. Boot Simulator
|
|
85
|
+
|
|
86
|
+
<boot_simulator>
|
|
87
|
+
|
|
88
|
+
**List available simulators:**
|
|
89
|
+
```
|
|
90
|
+
mcp__xcodebuildmcp__list_simulators({})
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**Boot preferred simulator (iPhone 15 Pro recommended):**
|
|
94
|
+
```
|
|
95
|
+
mcp__xcodebuildmcp__boot_simulator({ simulator_id: "[uuid]" })
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**Wait for simulator to be ready:**
|
|
99
|
+
Check simulator state before proceeding with installation.
|
|
100
|
+
|
|
101
|
+
</boot_simulator>
|
|
102
|
+
|
|
103
|
+
### 3. Build the App
|
|
104
|
+
|
|
105
|
+
<build_app>
|
|
106
|
+
|
|
107
|
+
**Build for iOS Simulator:**
|
|
108
|
+
```
|
|
109
|
+
mcp__xcodebuildmcp__build_ios_sim_app({
|
|
110
|
+
project_path: "/path/to/Project.xcodeproj",
|
|
111
|
+
scheme: "[scheme_name]"
|
|
112
|
+
})
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Handle build failures:**
|
|
116
|
+
- Capture build errors
|
|
117
|
+
- Create P1 todo for each build error
|
|
118
|
+
- Report to user with specific error details
|
|
119
|
+
|
|
120
|
+
**On success:**
|
|
121
|
+
- Note the built app path for installation
|
|
122
|
+
- Proceed to installation step
|
|
123
|
+
|
|
124
|
+
</build_app>
|
|
125
|
+
|
|
126
|
+
### 4. Install and Launch
|
|
127
|
+
|
|
128
|
+
<install_launch>
|
|
129
|
+
|
|
130
|
+
**Install app on simulator:**
|
|
131
|
+
```
|
|
132
|
+
mcp__xcodebuildmcp__install_app_on_simulator({
|
|
133
|
+
app_path: "/path/to/built/App.app",
|
|
134
|
+
simulator_id: "[uuid]"
|
|
135
|
+
})
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**Launch the app:**
|
|
139
|
+
```
|
|
140
|
+
mcp__xcodebuildmcp__launch_app_on_simulator({
|
|
141
|
+
bundle_id: "[app.bundle.id]",
|
|
142
|
+
simulator_id: "[uuid]"
|
|
143
|
+
})
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Start capturing logs:**
|
|
147
|
+
```
|
|
148
|
+
mcp__xcodebuildmcp__capture_sim_logs({
|
|
149
|
+
simulator_id: "[uuid]",
|
|
150
|
+
bundle_id: "[app.bundle.id]"
|
|
151
|
+
})
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
</install_launch>
|
|
155
|
+
|
|
156
|
+
### 5. Test Key Screens
|
|
157
|
+
|
|
158
|
+
<test_screens>
|
|
159
|
+
|
|
160
|
+
For each key screen in the app:
|
|
161
|
+
|
|
162
|
+
**Take screenshot:**
|
|
163
|
+
```
|
|
164
|
+
mcp__xcodebuildmcp__take_screenshot({
|
|
165
|
+
simulator_id: "[uuid]",
|
|
166
|
+
filename: "screen-[name].png"
|
|
167
|
+
})
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
**Review screenshot for:**
|
|
171
|
+
- UI elements rendered correctly
|
|
172
|
+
- No error messages visible
|
|
173
|
+
- Expected content displayed
|
|
174
|
+
- Layout looks correct
|
|
175
|
+
|
|
176
|
+
**Check logs for errors:**
|
|
177
|
+
```
|
|
178
|
+
mcp__xcodebuildmcp__get_sim_logs({ simulator_id: "[uuid]" })
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Look for:
|
|
182
|
+
- Crashes
|
|
183
|
+
- Exceptions
|
|
184
|
+
- Error-level log messages
|
|
185
|
+
- Failed network requests
|
|
186
|
+
|
|
187
|
+
</test_screens>
|
|
188
|
+
|
|
189
|
+
### 6. Human Verification (When Required)
|
|
190
|
+
|
|
191
|
+
<human_verification>
|
|
192
|
+
|
|
193
|
+
Pause for human input when testing touches:
|
|
194
|
+
|
|
195
|
+
| Flow Type | What to Ask |
|
|
196
|
+
|-----------|-------------|
|
|
197
|
+
| Sign in with Apple | "Please complete Sign in with Apple on the simulator" |
|
|
198
|
+
| Push notifications | "Send a test push and confirm it appears" |
|
|
199
|
+
| In-app purchases | "Complete a sandbox purchase" |
|
|
200
|
+
| Camera/Photos | "Grant permissions and verify camera works" |
|
|
201
|
+
| Location | "Allow location access and verify map updates" |
|
|
202
|
+
|
|
203
|
+
Use AskUserQuestion:
|
|
204
|
+
```markdown
|
|
205
|
+
**Human Verification Needed**
|
|
206
|
+
|
|
207
|
+
This test requires [flow type]. Please:
|
|
208
|
+
1. [Action to take on simulator]
|
|
209
|
+
2. [What to verify]
|
|
210
|
+
|
|
211
|
+
Did it work correctly?
|
|
212
|
+
1. Yes - continue testing
|
|
213
|
+
2. No - describe the issue
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
</human_verification>
|
|
217
|
+
|
|
218
|
+
### 7. Handle Failures
|
|
219
|
+
|
|
220
|
+
<failure_handling>
|
|
221
|
+
|
|
222
|
+
When a test fails:
|
|
223
|
+
|
|
224
|
+
1. **Document the failure:**
|
|
225
|
+
- Take screenshot of error state
|
|
226
|
+
- Capture console logs
|
|
227
|
+
- Note reproduction steps
|
|
228
|
+
|
|
229
|
+
2. **Ask user how to proceed:**
|
|
230
|
+
```markdown
|
|
231
|
+
**Test Failed: [screen/feature]**
|
|
232
|
+
|
|
233
|
+
Issue: [description]
|
|
234
|
+
Logs: [relevant error messages]
|
|
235
|
+
|
|
236
|
+
How to proceed?
|
|
237
|
+
1. Fix now - I'll help debug and fix
|
|
238
|
+
2. Create todo - Add to todos/ for later
|
|
239
|
+
3. Skip - Continue testing other screens
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
3. **If "Fix now":**
|
|
243
|
+
- Investigate the issue in code
|
|
244
|
+
- Propose a fix
|
|
245
|
+
- Rebuild and retest
|
|
246
|
+
|
|
247
|
+
4. **If "Create todo":**
|
|
248
|
+
- Create `{id}-pending-p1-xcode-{description}.md`
|
|
249
|
+
- Continue testing
|
|
250
|
+
|
|
251
|
+
</failure_handling>
|
|
252
|
+
|
|
253
|
+
### 8. Test Summary
|
|
254
|
+
|
|
255
|
+
<test_summary>
|
|
256
|
+
|
|
257
|
+
After all tests complete, present summary:
|
|
258
|
+
|
|
259
|
+
```markdown
|
|
260
|
+
## 📱 Xcode Test Results
|
|
261
|
+
|
|
262
|
+
**Project:** [project name]
|
|
263
|
+
**Scheme:** [scheme name]
|
|
264
|
+
**Simulator:** [simulator name]
|
|
265
|
+
|
|
266
|
+
### Build: ✅ Success / ❌ Failed
|
|
267
|
+
|
|
268
|
+
### Screens Tested: [count]
|
|
269
|
+
|
|
270
|
+
| Screen | Status | Notes |
|
|
271
|
+
|--------|--------|-------|
|
|
272
|
+
| Launch | ✅ Pass | |
|
|
273
|
+
| Home | ✅ Pass | |
|
|
274
|
+
| Settings | ❌ Fail | Crash on tap |
|
|
275
|
+
| Profile | ⏭️ Skip | Requires login |
|
|
276
|
+
|
|
277
|
+
### Console Errors: [count]
|
|
278
|
+
- [List any errors found]
|
|
279
|
+
|
|
280
|
+
### Human Verifications: [count]
|
|
281
|
+
- Sign in with Apple: ✅ Confirmed
|
|
282
|
+
- Push notifications: ✅ Confirmed
|
|
283
|
+
|
|
284
|
+
### Failures: [count]
|
|
285
|
+
- Settings screen - crash on navigation
|
|
286
|
+
|
|
287
|
+
### Created Todos: [count]
|
|
288
|
+
- `006-pending-p1-xcode-settings-crash.md`
|
|
289
|
+
|
|
290
|
+
### Result: [PASS / FAIL / PARTIAL]
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
</test_summary>
|
|
294
|
+
|
|
295
|
+
### 9. Cleanup
|
|
296
|
+
|
|
297
|
+
<cleanup>
|
|
298
|
+
|
|
299
|
+
After testing:
|
|
300
|
+
|
|
301
|
+
**Stop log capture:**
|
|
302
|
+
```
|
|
303
|
+
mcp__xcodebuildmcp__stop_log_capture({ simulator_id: "[uuid]" })
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
**Optionally shut down simulator:**
|
|
307
|
+
```
|
|
308
|
+
mcp__xcodebuildmcp__shutdown_simulator({ simulator_id: "[uuid]" })
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
</cleanup>
|
|
312
|
+
|
|
313
|
+
## Quick Usage Examples
|
|
314
|
+
|
|
315
|
+
```bash
|
|
316
|
+
# Test with default scheme
|
|
317
|
+
/xcode-test
|
|
318
|
+
|
|
319
|
+
# Test specific scheme
|
|
320
|
+
/xcode-test MyApp-Debug
|
|
321
|
+
|
|
322
|
+
# Test after making changes
|
|
323
|
+
/xcode-test current
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
## Integration with /workflows:review
|
|
327
|
+
|
|
328
|
+
When reviewing PRs that touch iOS code, the `/workflows:review` command can spawn this as a subagent:
|
|
329
|
+
|
|
330
|
+
```
|
|
331
|
+
Task general-purpose("Run /xcode-test for scheme [name]. Build, install on simulator, test key screens, check for crashes.")
|
|
332
|
+
```
|