add-compiler-option
CommunitySimplify adding a Metro compiler option.
System Documentation
What problem does it solve?
This skill provides a structured, repeatable guide for introducing a new compiler option in Metro. It consolidates the required edits across MetroOptions, the Gradle plugin extension, the Gradle subplugin, and tests to ensure consistent integration and avoid drift.
Core Features & Use Cases
- Stepwise updates to MetroOptions, including adding a new MetroOption entry and wiring builder properties and load logic.
- Integration with the Gradle tooling: GradlePluginExtension and GradleGradleSubplugin wiring to expose and apply the option in builds.
- Test coverage guidance and directives to validate the option across compiler tests.
Quick Start
Create a new option named my-new-option and implement the required changes across MetroOptions.kt, the Gradle plugin extension, the Gradle subplugin, and tests as described in the Files to Update section. Then run the test suite to verify behavior.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: add-compiler-option Download link: https://github.com/ZacSweers/metro/archive/main.zip#add-compiler-option Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.