Android Development
dpconde/claude-android-skill
Create production-quality Android applications following Google's official architecture guidance and NowInAndroid best practices.
“Adds a new compiler option to Metro.”
$ npx skills add ZacSweers/metro --skill add-compiler-option -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ZacSweers/metro add-compiler-option --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/add-metro-option .claude/skills/add-compiler-option && 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 "add-compiler-option" agent skill from https://github.com/ZacSweers/metro/tree/main/.agents/skills/add-metro-option into .claude/skills/add-compiler-option/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-compiler-option", 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/add-metro-optionType 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 add-compiler-option -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ZacSweers/metro add-compiler-option --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/add-metro-option .agents/skills/add-compiler-option && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-compiler-option" agent skill from https://github.com/ZacSweers/metro/tree/main/.agents/skills/add-metro-option into .agents/skills/add-compiler-option/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-compiler-option", 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 add-compiler-option -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ZacSweers/metro add-compiler-option --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/add-metro-option .cursor/skills/add-compiler-option && 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 "add-compiler-option" agent skill from https://github.com/ZacSweers/metro/tree/main/.agents/skills/add-metro-option into .cursor/skills/add-compiler-option/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-compiler-option", 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/add-metro-option--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 add-compiler-option -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ZacSweers/metro add-compiler-option --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/add-metro-option .gemini/skills/add-compiler-option && 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 "add-compiler-option" agent skill from https://github.com/ZacSweers/metro/tree/main/.agents/skills/add-metro-option into .gemini/skills/add-compiler-option/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-compiler-option", 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 add-compiler-optionInstalls 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 add-compiler-option -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/add-metro-option .github/skills/add-compiler-option && 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 "add-compiler-option" agent skill from https://github.com/ZacSweers/metro/tree/main/.agents/skills/add-metro-option into .github/skills/add-compiler-option/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-compiler-option", 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 add-compiler-option -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 add-compiler-option --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/add-metro-option .opencode/skills/add-compiler-option && 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 "add-compiler-option" agent skill from https://github.com/ZacSweers/metro/tree/main/.agents/skills/add-metro-option into .opencode/skills/add-compiler-option/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-compiler-option", 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.
add-compiler-optionAdd Compiler Option is a skill in ZacSweers/metro (1.4k stars). Its SKILL.md is about 1.1k tokens. Licence: Apache-2.0.
5 steps, taken from the step headings 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 kotlin).
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.
Add Compiler Option loads about 1.1k tokens when it runs. Until then it costs about 14 tokens; SKILL.md has 278 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). 278 words, ~1,130 tokens.
.claude/skills/add-compiler-option/SKILL.md (or your agent's skills folder).When adding a new option, you need to update these files in order:
metro-common/src/main/kotlin/dev/zacsweers/metro/compiler/MetroOptions.ktAdd the option in five places. These shared definitions serve both the compiler and the IDE plugin:
MetroOptionMY_NEW_OPTION(
RawMetroOption.boolean( // or RawMetroOption() for non-boolean types
name = "my-new-option", // kebab-case name used in CLI
defaultValue = false,
valueDescription = "<true | false>",
description = "Description of what this option does.",
required = false,
allowMultipleOccurrences = false,
)
),For non-boolean options, use the full RawMetroOption constructor with a valueMapper:
MY_INT_OPTION(
RawMetroOption(
name = "my-int-option",
defaultValue = 10,
valueDescription = "<count>",
description = "Description here",
required = false,
allowMultipleOccurrences = false,
valueMapper = { it.toInt() },
)
),MetroOptions constructorpublic val myNewOption: Boolean = MetroOption.MY_NEW_OPTION.raw.defaultValue.expectAs(),MetroOptions.Builderpublic var myNewOption: Boolean = base.myNewOptionBuilder.build() functionmyNewOption = myNewOption,MetroOptions.Builder.applyOptionValue()MetroOption.MY_NEW_OPTION -> myNewOption = value.expectAs()value has already been converted by RawMetroOption.valueMapper. Use value.expectAs<T>() for its mapped type and apply any additional conversion needed by the builder property.
Compiler loading in compiler/src/main/kotlin/dev/zacsweers/metro/compiler/MetroCompilerOptions.kt and IDE loading through MetroOptions.Builder.applyRawOptions() both delegate to this shared mapping. Do not add a second per-option loading switch to either caller.
gradle-plugin/src/main/kotlin/dev/zacsweers/metro/gradle/MetroPluginExtension.ktAdd a Gradle DSL property:
/**
* KDoc description of what this option does.
*
* Disabled by default.
*/
public val myNewOption: Property<Boolean> =
objects.booleanProperty("metro.myNewOption", false)For options that should support Gradle properties:
objects.booleanProperty("metro.propertyName", defaultValue)For options without Gradle property support:
objects.property(Boolean::class.java).convention(false)gradle-plugin/src/main/kotlin/dev/zacsweers/metro/gradle/MetroGradleSubplugin.ktIn applyToCompilation, add to the options list:
add(lazyOption("my-new-option", extension.myNewOption))Note: The option name here must match the name in RawMetroOption.
compiler/src/test/kotlin/dev/zacsweers/metro/compiler/MetroCompilerTest.ktIn toPluginOptions(), add handling for the new option:
MetroOption.MY_NEW_OPTION -> {
processor.option(entry.raw.cliOption, myNewOption)
}compiler-tests/src/test/kotlin/dev/zacsweers/metro/compiler/MetroDirectives.ktOnly needed if the option should be controllable from test directives:
val MY_NEW_OPTION by
valueDirective("Description of the directive.") { it.toBoolean() }Or for simple on/off directives:
val MY_NEW_OPTION by directive("Description of the directive.")Wire the directive into MetroOptions.buildOptions in compiler-tests/src/test/kotlin/dev/zacsweers/metro/compiler/MetroExtensionRegistrarConfigurator.kt so it affects the test configuration. Preserve the option's default when the directive is absent.
RawMetroOption.boolean() helperRawMetroOption() with valueMapper = { it.toInt() }RawMetroOption() with valueMapper = { it }RawMetroOption() with valueMapper = { it } and parse in Builder.applyOptionValue()<ClassId>: Use RawMetroOption() with valueMapper = { it.splitToSequence(':').mapToSet { ClassId.fromString(it, false) } }SCREAMING_SNAKE_CASEkebab-casecamelCasemetro.camelCase@DelicateMetroGradleApi for experimental options@Deprecated for options that will be removed© 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
Just SKILL.md in .agents/skills/add-metro-option of ZacSweers/metro.
Open the folder on GitHubat commit ba2f45f
Add Compiler Option 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 |
|---|---|---|---|---|---|---|
| Add Compiler Option this skillZacSweers/metro | 1.4k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Android Developmentdpconde/claude-android-skill | 336 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Diagnosing Compose StabilityrosuH/EasyWatermark | 1.9k | 1 repos | ~3.3k | Automated safety check: Pass | Apache-2.0 | |
| Claude Android NinjaDrjacky/claude-android-ninja | 124 | — | ~5.2k | Automated safety check: Pass | Apache-2.0 | |
| Expo Brownfield Integrationmweinbach/agent-coworker | 156 | 2 repos | ~900 | Automated safety check: Notes | Custom licence | |
| Jugg Android Dev Loopniki914/zafiro | 241 | — | ~2k | Automated safety check: Pass | MIT |
dpconde/claude-android-skill
Create production-quality Android applications following Google's official architecture guidance and NowInAndroid best practices.
rosuH/EasyWatermark
A skill your agent uses to diagnose Jetpack Compose stability problems by enabling and reading the Compose Compiler Reports (classes.txt, composables.txt, composables.csv, module.json).
Drjacky/claude-android-ninja
Build and migrate Android apps with Kotlin, Jetpack Compose, MVVM, Hilt, Room 3 (KSP, SQLiteDriver, Flow/suspend DAOs), Navigation3, and multi-module Gradle.
mweinbach/agent-coworker
Helps add Expo and React Native to an existing native iOS or Android app, and choose between a prebuilt AAR or XCFramework and a fully integrated build.
niki914/zafiro
A skill your agent uses when editing source files (Java/Kotlin/XML/layout/AndroidManifest/Gradle) in a Android project, or when user asks to build/deploy/verify an Android app.
nekomangaorg/Neko
Optimizes Gradle build scripts, compilation times, and Android Studio sync performance.
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
Publish the current Metro checkout to Maven Local and verify it in an external consumer or reproducer.
Categories
Run `npx skills add ZacSweers/metro --skill add-compiler-option -a claude-code`. Or copy the skill folder (.agents/skills/add-metro-option in ZacSweers/metro) into .claude/skills/add-compiler-option in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ZacSweers/metro --skill add-compiler-option -a codex`. Or copy the skill folder (.agents/skills/add-metro-option in ZacSweers/metro) into .agents/skills/add-compiler-option 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 add-compiler-option -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-compiler-option, .gemini/skills/add-compiler-option, .github/skills/add-compiler-option and .opencode/skills/add-compiler-option in your project.
SKILL.md names no scripts, command-line tools or credentials: Add Compiler Option 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.
Add Compiler Option 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.1k tokens (SKILL.md is roughly 4.5k 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 Add Compiler Option: Android Development (dpconde/claude-android-skill, 336 stars), Diagnosing Compose Stability (rosuH/EasyWatermark, 1.9k stars), Claude Android Ninja (Drjacky/claude-android-ninja, 124 stars) and Expo Brownfield Integration (mweinbach/agent-coworker, 156 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.