Agent Skills
› getsentry/MobileBuildMCP
› mobilebuildmcp-test-boundary-review
mobilebuildmcp-test-boundary-review
GitHub用于审查 MobileBuildMCP 测试代码的边界与隔离性,确保单元测试不依赖真实环境,验证快照和模式变更,并提供针对性的运行命令以保障测试质量。
触发场景
需要审查移动构建 MCP 的单元测试、快照或集成测试时
检查测试是否错误调用真实设备、模拟器或外部进程时
安装
npx skills add getsentry/MobileBuildMCP --skill mobilebuildmcp-test-boundary-review -g -y
SKILL.md
Frontmatter
{
"name": "mobilebuildmcp-test-boundary-review",
"description": "Use when reviewing MobileBuildMCP tests for correct unit, snapshot, schema, smoke, and external process boundaries."
}
MobileBuildMCP Test Boundary Review
Review guardrails for test isolation, scope, and contract validation.
Review scope
- Review-only by default.
- Do not edit product code unless the user explicitly requests implementation changes.
Files to inspect
src/**/__tests__/**src/test-utils/**src/snapshot-tests/**scripts/**/__tests__/**package.jsonxcodebuildmcp.com/app/docs/_content/testing.mdxxcodebuildmcp.com/app/docs/_content/contributing.mdx
Guardrails
- Unit tests inject command/filesystem/external dependencies.
- Unit tests do not call real
xcodebuild,xcrun, AXe, devices, or simulators. - Prefer testing logic/executor functions over handler wrappers unless testing runtime integration.
- Use existing mock executor helpers.
- Treat snapshot updates as contract changes requiring review.
- Do not add fake e2e/snapshot state to force test success.
- Avoid unsafe TypeScript suppressions.
Validation
- Run targeted Vitest command for touched tests.
npm testnpm run typecheck- If fixtures/schemas changed:
npm run test:snapshotsandnpm run test:schema-fixtures npx skill-check .agents/skills/mobilebuildmcp-test-boundary-review
版本历史
- d13ff0c 当前 2026-09-28 05:47


