Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/clivejefferies/mobile-debug-tools/copilot-instructionsgit clone --depth 1 https://github.com/clivejefferies/mobile-debug-toolsWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00467 | $0.00467 |
| Opus 5 | $0.00234 | $0.00234 |
| Sonnet 5 | $0.00093 | $0.00093 |
| Haiku 4.5 | $0.00047 | $0.00047 |
Grade A, and why
mobile-debug-tools copilot-instructions.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- **Execution**: Uses `child_process.exec` for running shell commands. What it actually says
Copilot Instructions for mobile-debug-mcp
Build and Run
- Build:
npm run build(runstscto compile TypeScript todist/) - Start:
npm start(runs the compiled server atdist/server.js) - Dev Workflow: modify
src/*.ts->npm run build->npm startto test changes.
Architecture
- Core:
src/server.tsimplements the MCP server using@modelcontextprotocol/sdk. It handles tool registration and execution. - Platform Modules:
src/android.ts: Encapsulatesadbcommands for Android device interaction.src/ios.ts: Encapsulatesxcrun simctlcommands for iOS simulator interaction.
- Types:
src/types.tsdefines shared interfaces for device info and tool responses.
Key Conventions
Tool Implementation
- Response Format: Tools typically return a list of content blocks.
start_app: Returns a single text block containing JSON (viawrapResponse).terminate_app: Returns a single text block containing JSON (viawrapResponse).restart_app: Returns a single text block containing JSON (viawrapResponse).reset_app_data: Returns a single text block containing JSON (viawrapResponse).get_logs: Returns a text block (JSON metadata) AND a text block (raw logs).capture_screenshot: Returns a text block (JSON metadata) AND an image block (base64 PNG).
- Metadata: Always include a
deviceobject (platform, id, model, etc.) in the JSON response part.
External Tools
- Android: Uses
process.env.ADB_PATHor defaults toadb. - iOS: Uses
process.env.XCRUN_PATHor defaults toxcrun. Assumes a booted simulator. - Execution: Uses
child_process.execfor running shell commands.
Error Handling
- Tools should catch execution errors and return a user-friendly error message in a
textcontent block, rather than crashing the server.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 34 lines · 467 tokens per session scan A 657df546b8c7
mobile-debug-tools copilot-instructions.md is an instructions file published in the GitHub repository clivejefferies/mobile-debug-tools (7 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 467 tokens to every session, about $0.0023 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
AppClaw CLAUDE.md
Instructions for appclawhq/AppClaw, covering claude.md, what is appclaw?, build & run commands, architecture and entry point & cli modes (src/index.ts).
MobiAI-Core CLAUDE.md
Instructions for ArisGuimera/MobiAI-Core, covering mobiai — mobile development ai ecosystem, bootstrap and principles.
freetube CLAUDE.md
Instructions for leshkodev/freetube, covering claude.md, 1. what this project is, 2. non-negotiable constraints, 3. tech stack (locked) and 4. project structure.
ConsultMe CLAUDE.md
Instructions for Tarek-Bohdima/ConsultMe, covering claude.md, project context, common commands, module graph and conventions enforced by tooling.
kotlin-app-template AGENTS.md
Instructions for ashtanko/kotlin-app-template, covering repository agent guide, start here, repository rules, working method and task-specific guidance.
dev-challenge CLAUDE.md
Instructions for micheltlutz/dev-challenge, covering claude.md, the one rule to internalise, slash commands, subagents and skills.