test-metro-ide-locally
Skill by ZacSweers
Runs Metro's IDE plugin from source in a sandboxed local IDE against a consumer project. Use it for IDE behavior checks, graph refresh traces, and baseline versus change comparisons.
Install test-metro-ide-locally
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ZacSweers/metro /tmp/metro && mkdir -p ~/.claude/skills && cp -r /tmp/metro/.agents/skills/test-metro-ide-locally ~/.claude/skills/test-metro-ide-locallyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ZacSweers/metro /tmp/metro && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/metro/.agents/skills/test-metro-ide-locally ~/.gemini/antigravity-cli/skills/test-metro-ide-locallyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install test-metro-ide-locally in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill runs Metro's IDE plugin from source in a sandboxed local IDE against a consumer project. It uses the repository's runLocalIde runner, which installs the plugin built from the chosen Metro checkout into a sandbox, so no Marketplace or disk installation is needed. The workflow covers IDE behavior checks, graph refresh performance traces, and baseline versus change comparisons.
The skill explains how to match runs, launch the runner with a set IDE heap, finish project import, and record refresh traces with Refresh with tracing. It also explains how to read Perfetto operations and IntelliJ indexing diagnostics separately. It is aimed at Metro contributors who need to measure IDE plugin behavior and refresh cost.
Written from the project's SKILL.md and checked against it.
What it can do
- Launch sandboxed IDEStarts the IDE with Metro's plugin from a chosen checkout via scripts/run-local-ide.sh.
- Match baseline runsGuides recording of commit, settings, heap, and cache state so two runs can be compared.
- Refresh with tracingRecords a Metro graph refresh as a Perfetto trace and checks its completion metadata.
- Performance trace captureCaptures operations outside an explicit refresh, such as editor navigation, with a manual trace.
- Indexing diagnosticsReads IntelliJ indexing diagnostic JSON and reports indexer work separately from refresh latency.
- Evidence reportLists the runtime, revisions, trace paths, and any incomplete steps for the measurement.
What you need
- A Metro repository checkout
- An installed IDE runtime such as Android Studio
- A consumer Android project
- macOS, since the workflow uses AppleScript and accessibility controls
Try asking
- Run the Metro IDE locally against my consumer project with an 8g heap.
- Record a Refresh with tracing capture and report the elapsed refresh time.
- Compare baseline and change Metro checkouts using matched IDE settings.
Good to know
- Never launch the installed IDE directly; the sandbox plugin will not load.
- Run one trace capture at a time and verify completion metadata before the next.
- Manual traces stop admitting work after 60 seconds and refresh captures have a 10-minute deadline.
- UI automation depends on accessibility permissions and an unlocked Mac.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/test-metro-ide-locally/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to test-metro-ide-locally
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
test-metro-ide-locally: common questions
Do I need to install the Metro plugin from the Marketplace to test it?
No. The runLocalIde runner pre-installs the plugin built from the chosen Metro checkout into a sandbox.
How does the skill decide a refresh measurement succeeded?
It requires the refresh outcome to be published and capture.finish to show stop_reason=completed with partial=false.
Why are indexing costs reported separately from refresh time?
Indexer durations accumulate wall time across worker threads and can overlap, so they are not the same as user-visible refresh latency.
How do I install test-metro-ide-locally?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is test-metro-ide-locally free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is test-metro-ide-locally safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to test-metro-ide-locally?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
