debug-app
能自动定位并修复问题,适合持续开发与快速迭代场景。
会读取与修改本地源代码并运行构建/监控命令,需谨慎授权。
监控运行中的应用以检测运行时错误与静默失败并尝试自动修复。
监控用 npm run dev 启动的移动应用,实时读 Metro 终端日志,找运行时错误和“静默失败”(空列表、白屏、被吞的网络错)并尝试自动修复。会在数据边界临时打 console.log、每隔几秒轮询、把错误归类并给出或落地修复,修好后会清理临时日志并验收。遇到超出范围的问题会把工单转给更合适的技能处理。
▸ 展开 SKILL.md 英文原文
Use when the user has finished building a mobile app, started it with `npm run dev`, and wants the running app monitored for runtime errors AND silent failures (empty lists, blank screens, swallowed network errors) and fixed autonomously. Accepts a free-text symptom (e.g., `/debug-app "todos not appearing on home screen"`) to drive terminal-log diagnostics — injects temporary console.log statements at data-path boundaries, reads Metro terminal output, and cleans up logs after the root cause is fixed. Otherwise polls the Metro terminal every 5s, classifies errors using an 8-category table, fixes inline or routes to the right skill, verifies each fix from terminal output, and exits after 3 consecutive clean polls. Foreground loop — blocks the conversation while running. Run only after the app is loaded.
帮我安装这个 skill:https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/mobile-apps/skills/debug-app/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/mobile-apps/skills/debug-app/SKILL.md"**📋 Shared instructions: [shared-instructions.md](${CLAUDE_SKILL_DIR}/../../shared/shared-instructions.md)** — read first.
# Debug App — Monitor & Fix
Monitor the running app by reading the Metro dev-server terminal output, detect runtime and bundle errors, and fix them autonomously by editing the affected files (or routing to the right skill when the fix belongs in a domain like Dataverse schema or auth registration). For silent failures, inject temporary `console.log` statements at data-path boundaries, read the Metro terminal for output, then clean them up after the root cause is fixed. Modeled on the upstream `app-debugger.agent.md` pattern — foreground loop, 5-second cadence, exit on