Capturing Preview Screenshots In CI
skydoves/android-testing-skills
A skill your agent uses to render every Jetpack Compose @Preview as a screenshot on a real Android device or emulator and publish a browsable HTML catalog from CI.
Publish the current Metro checkout to Maven Local and verify it in an external consumer or reproducer.
$ npx skills add ZacSweers/metro --skill test-metro-locally -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ZacSweers/metro test-metro-locally --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ZacSweers/metro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/test-metro-locally .claude/skills/test-metro-locally && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "test-metro-locally" agent skill from https://github.com/ZacSweers/metro/tree/main/.agents/skills/test-metro-locally into .claude/skills/test-metro-locally/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-metro-locally", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ZacSweers/metro/tree/main/.agents/skills/test-metro-locallyType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ZacSweers/metro --skill test-metro-locally -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ZacSweers/metro test-metro-locally --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZacSweers/metro.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/test-metro-locally .agents/skills/test-metro-locally && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "test-metro-locally" agent skill from https://github.com/ZacSweers/metro/tree/main/.agents/skills/test-metro-locally into .agents/skills/test-metro-locally/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-metro-locally", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ZacSweers/metro --skill test-metro-locally -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ZacSweers/metro test-metro-locally --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZacSweers/metro.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/test-metro-locally .cursor/skills/test-metro-locally && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "test-metro-locally" agent skill from https://github.com/ZacSweers/metro/tree/main/.agents/skills/test-metro-locally into .cursor/skills/test-metro-locally/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-metro-locally", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ZacSweers/metro.git --path .agents/skills/test-metro-locally--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ZacSweers/metro --skill test-metro-locally -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ZacSweers/metro test-metro-locally --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZacSweers/metro.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/test-metro-locally .gemini/skills/test-metro-locally && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "test-metro-locally" agent skill from https://github.com/ZacSweers/metro/tree/main/.agents/skills/test-metro-locally into .gemini/skills/test-metro-locally/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-metro-locally", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ZacSweers/metro test-metro-locallyInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ZacSweers/metro --skill test-metro-locally -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ZacSweers/metro.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/test-metro-locally .github/skills/test-metro-locally && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "test-metro-locally" agent skill from https://github.com/ZacSweers/metro/tree/main/.agents/skills/test-metro-locally into .github/skills/test-metro-locally/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-metro-locally", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ZacSweers/metro --skill test-metro-locally -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ZacSweers/metro test-metro-locally --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZacSweers/metro.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/test-metro-locally .opencode/skills/test-metro-locally && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "test-metro-locally" agent skill from https://github.com/ZacSweers/metro/tree/main/.agents/skills/test-metro-locally into .opencode/skills/test-metro-locally/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-metro-locally", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
test-metro-locallyPublish the current Metro checkout to Maven Local and verify it in an external consumer or reproducer.
Test Metro Locally is an agent skill from ZacSweers/metro. Publish the current Metro checkout to Maven Local and verify it in an external consumer or reproducer. Use when testing an unreleased Metro compiler or Gradle plugin change downstream, validating a GitHub issue reproduction, comparing released and local behavior, or when a task mentions metrow publish --local, Maven Local, or local Metro artifacts.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).
It sits in Mobile. It works with Gradle and GitHub. The repository describes itself as: A multiplatform, compile-time dependency injection framework for Kotlin. The licence is Apache-2.0.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ba2f45f. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Test Metro Locally loads about 1.2k tokens when it runs. Until then it costs about 93 tokens; SKILL.md has 557 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ZacSweers/metro at commit ba2f45f, republished under its Apache-2.0 licence (© ZacSweers). 557 words, ~1,197 tokens.
.claude/skills/test-metro-locally/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Use the downstream project's existing assertion and Gradle task as the source of truth. Keep repro-only edits outside the Metro worktree when practical.
Run publication and test commands only when the user explicitly requests downstream or Maven Local verification; otherwise present the plan and wait for approval as required by Metro's repository instructions.
AGENTS.md in Metro and the downstream project when present.Use a disposable clone for a remote reproducer unless the user supplied a checkout they want edited.
Choose a new version for every publish. Derive it from VERSION_NAME in Metro's gradle.properties and add a task-specific suffix, for example 1.4.0-2587-20260725-LOCAL01.
From the Metro repository root, run:
./metrow publish --local --version 1.4.0-2587-20260725-LOCAL01Always use metrow; do not call publishToMavenLocal directly. The wrapper supplies Metro's required publishing options, disables release signing, excludes documentation generation, and reruns publication tasks.
Record the commit and worktree state immediately before publishing. If the publish is interrupted or Metro's source changes during it, publish again with another unique version. Do not trust or reuse potentially partial artifacts.
Make only the configuration changes required to resolve the unique version:
mavenLocal() before remote repositories in pluginManagement.repositories so Gradle can resolve the Metro plugin marker.mavenLocal() before remote dependency repositories at the consumer's actual repository source of truth.Do not assume adding mavenLocal() to ordinary dependency repositories also affects plugin resolution.
Rerun the original task from the consumer's wrapper root:
./gradlew <original-task>Use --rerun-tasks to prevent stale compiled outputs or cached tests from hiding the result ONLY if necessary. Prefer another unique local version over reusing a snapshot; if reuse is unavoidable, also refresh dependencies. Note that if testing an incremental compilation issue, do not use this flag in subsequent runs.
When the issue concerns a Metro mode such as switching providers, contribution providers, FIR/IR class generation, or provider inlining, run the same downstream check once per relevant mode without changing the reproducer's assertions.
Do not infer Maven Local usage only from a passing test. Confirm that Gradle selected the exact local version:
./gradlew buildEnvironment --quiet
./gradlew dependencyInsight --dependency dev.zacsweers.metro --configuration compileClasspath --quiet
./gradlew dependencyInsight --dependency dev.zacsweers.metro:compiler --configuration kotlinCompilerPluginClasspathMain --quietAdjust the dependency configurations for the target project when compileClasspath or kotlinCompilerPluginClasspathMain is not applicable. Verify the plugin marker and expected Metro compiler, runtime, and interop artifacts all resolve to the unique version.
Report:
Recheck Metro's commit and worktree state after the downstream run. Keep temporary consumer edits out of the Metro change set. Do not delete Maven Local or Gradle caches; the unique version isolates the verification without destructive cleanup.
© ZacSweers, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in .agents/skills/test-metro-locally of ZacSweers/metro.
Open the folder on GitHubat commit ba2f45f
Test Metro Locally next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Test Metro Locally this skillZacSweers/metro | 1.4k | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Capturing Preview Screenshots In CIskydoves/android-testing-skills | 334 | — | ~4.5k | Automated safety check: Notes | Apache-2.0 | |
| UI Dialogx DialogafkT/DevUtils | 1.6k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Setting Up Compose HotswanrosuH/EasyWatermark | 1.9k | 1 repos | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Android Cicddavila7/claude-code-templates | 33k | — | ~2.2k | Automated safety check: Pass | MIT | |
| Plan ReviewKenjiOhtsuka/harmonica | 131 | — | ~1k | Automated safety check: Pass | MIT |
skydoves/android-testing-skills
A skill your agent uses to render every Jetpack Compose @Preview as a screenshot on a real Android device or emulator and publish a browsable HTML catalog from CI.
afkT/DevUtils
需要对话框、弹窗、菜单、加载等待、轻提示(Toast 替代)、应用内通知、底部弹窗、 上下文菜单、全屏/自定义弹层或操作引导时,默认使用 DialogX (com.github.kongzue.DialogX,本工程已依赖)而非系统 AlertDialog/Toast/PopupMenu。
rosuH/EasyWatermark
A skill your agent uses to install and verify Compose HotSwan end to end so a developer goes from zero to working sub-second hot reload on a real device or emulator in one session.
davila7/claude-code-templates
Automated Android CI/CD pipeline to Google Play — supports TWA, React Native, Flutter, and native Android.
KenjiOhtsuka/harmonica
A skill your agent uses when reviewing the Harmonica restart plan against reality — after a phase PR or milestone merges, before proposing the next phase, or when asked "are the specs up to date" /…
tobihagemann/turbo
Detect package managers and CI action pins, then discover outdated or vulnerable dependencies.
ZacSweers/metro
Query and analyze Metro's perfetto compiler traces to find real hot spots and untraced time.
ZacSweers/metro
Run Metro's IDE plugin from source in a sandboxed local IDE against a consumer project.
ZacSweers/metro
Adds a new compiler option to Metro.
Categories
Publish the current Metro checkout to Maven Local and verify it in an external consumer or reproducer. Test Metro Locally is an agent skill from ZacSweers/metro. Publish the current Metro checkout to Maven Local and verify it in an external consumer or reproducer.
Test Metro Locally fits situations like: testing an unreleased Metro compiler; gradle plugin change downstream; validating a GitHub issue reproduction; comparing released and local behavior.
Run `npx skills add ZacSweers/metro --skill test-metro-locally -a claude-code`. Or copy the skill folder (.agents/skills/test-metro-locally in ZacSweers/metro) into .claude/skills/test-metro-locally in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ZacSweers/metro --skill test-metro-locally -a codex`. Or copy the skill folder (.agents/skills/test-metro-locally in ZacSweers/metro) into .agents/skills/test-metro-locally in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ZacSweers/metro --skill test-metro-locally -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-metro-locally, .gemini/skills/test-metro-locally, .github/skills/test-metro-locally and .opencode/skills/test-metro-locally in your project.
SKILL.md names no scripts, command-line tools or credentials: Test Metro Locally is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Test Metro Locally is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Test Metro Locally: Capturing Preview Screenshots In CI (skydoves/android-testing-skills, 334 stars), UI Dialogx Dialog (afkT/DevUtils, 1.6k stars), Setting Up Compose Hotswan (rosuH/EasyWatermark, 1.9k stars) and Android Cicd (davila7/claude-code-templates, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ZacSweers (a GitHub user) maintains it in ZacSweers/metro, which has 1,408 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 11, 2026.
Source: ZacSweers/metro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.