Sets up mobile releases for an existing native app: dev (plus staging if asked) to Firebase App Distribution daily, prod to TestFlight and Play internal. Works on any Gradle Android or Xcode iOS app (XcodeGen or plain .xcodeproj, CocoaPods, SPM), standalone or in a monorepo: maps the channels onto the app's existing flavors and configurations or adds them, env-based signing, fastlane with match, GitHub Actions nightly and tag workflows, and a RELEASE.md runbook for console-only steps. Needs no account yet. Use when the user wants mobile deployment, beta distribution or app CI/CD: "모바일 배포 세팅해줘", "파이어베이스 앱 디스트리뷰션으로 매일 빌드 뿌려줘", "테스트플라이트 자동 업로드", "플레이 내부 테스트 트랙에 올리게 해줘", "fastlane 깔아줘", "앱 CI/CD 만들어줘", "set up TestFlight and Play internal testing from CI". Do NOT use for: creating the apps (android-bootstrap, ios-bootstrap, project-setup), backend or web deploys (setup-deploy, land-and-deploy), commit or push (auto-commit-push, ship), store production releases and listings, or React Native, Flutter and Expo apps.
Ships in mobile. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Adds a release pipeline to a native Android app (Gradle) and/or iOS app (Xcode), wherever they sit in the
repo. This file is the control flow: run the phases in order, pass each phase's gate, and stop
(don't cascade) on failure. Details live in references/*.md, generated files in assets/,
deterministic work in scripts/ (detect.sh finds the layout, render.sh writes the pipeline,
verify.sh is the gate, xcodeproj.rb edits a plain Xcode project).
| Channel | Android | iOS | When |
|---|---|---|---|
| dev | a release-like variant with its own application id, APK to Firebase | a release-type configuration with its own bundle id, ad hoc IPA to Firebase | nightly |
| staging (optional) | the same, another id | the same, another id | nightly, only when phase 0 chose it |
| prod | the store variant, AAB to the Play internal track | the store configuration, App Store IPA to TestFlight | mobile-v* tag or by hand |
Staging is off unless the user picks it in phase 0: by default dev is the only nightly channel. Where the
app already has those variants or configurations (flavors dev/qa/prod, configurations Staging,
...) the channels use them; otherwise this skill adds build type dev and configuration Dev, and
staging and Staging too when staging is on. Debug and the other variants and configurations developers run do not
change; the prod configuration (usually Release) does switch to match signing, so archiving or profiling
it from Xcode then needs the match profile (RELEASE.md says how).
CONFIG as TODO until the user has them.
Lanes refuse to run while a value they need is TODO, and refuse to upload a build whose API host
is a placeholder. RELEASE.md carries the one-time console steps no API can do.CONFIG is the record. Phase 0 decides the layout (where fastlane goes, the Gradle
root and app module, the Xcode project, scheme and target) and the channel mapping (variant or
configuration and app id per channel); render.sh writes them into CONFIG, and the lanes,
verify.sh and mobile:mobile-release-connect all read them from there. Nothing else stores them.verify.sh baseline records which
build checks pass (Gradle assembleDebug testDebugUnitTest lintDebug spotlessCheck ktlintCheck detekt,
whichever exist; the iOS Debug simulator build) and every existing configuration's id and signing. The
gates then hold the run to that: what passed must still pass, a configuration no channel uses must not
change, and a check that already failed is reported, not fixed. Never edit the user's code to make a
pre-existing failure pass.fastlane/, Gemfile, Gemfile.lock, .ruby-version,
RELEASE.md, the missing .gitignore lines and the gitignored .bundle/, vendor/bundle/, .mobile-release/; .github/workflows/mobile-*.yml; and the app files the
phase references name (the Android app module's build file and src/<build type>/res/values/strings.xml;
the iOS project, its xcconfigs, Info.plist and Podfile-generated files). Everything else is read-only:
the repo-root .env*, other apps, CI files, the user's existing signing files. No .env* file in
fastlane/ (references/pipeline.md says why).verify.sh creates under <mobile dir>/.mobile-release/ and deletes.skipped; one
that differs is the user's: leave it and report the difference. render.sh never overwrites.<cmd> > <log> 2>&1; echo "rc=$?",
logs under the gitignored <mobile dir>/.mobile-release/, never /tmp. verify.sh writes its own to
.mobile-release/verify/. Run its parts one at a time, never in parallel: they share build
directories and the throwaway key. Never ./gradlew --stop (it kills sibling builds sharing the Gradle home).Plan: line and wait for a yes
before the first write. In a non-interactive run (subagent, claude -p, cron) print it and stop
unless the caller explicitly said to proceed; then continue and record the plan in the report.
Installing a tool (Ruby, actionlint, xcodegen) needs its own yes even then; without one, take the
reduced gate and report the gap. The gems bundle install fetches (fastlane, and CocoaPods for a
Pods app) are project dependencies in the gitignored vendor/bundle, like the dependencies Gradle
downloads, not a tool install: the plan's yes covers them. A real upload or gh workflow run is
outward-facing: only on an explicit yes in this turn, never in a non-interactive run.| # | Phase | Reference | Gate |
|---|---|---|---|
| 0 | Preflight, layout, channels, Plan: line | references/android.md, ios.md ("Channels") | layout and mapping decided, inputs decided, Plan: composed; confirmed or proceed given |
| 1 | fastlane, workflows, runbook; baseline | references/pipeline.md | render.sh ran; verify.sh <ROOT> layout: no FAIL; verify.sh <ROOT> baseline recorded |
| 2 | Android channels + signing | references/android.md | verify.sh <ROOT> android: no FAIL |
| 3 | iOS channels + signing | references/ios.md | verify.sh <ROOT> ios: no FAIL |
| 4 | Verify + report | none | verify.sh <ROOT> (all parts) run once more after the last edit, report written |
A gate passes on no FAIL. Every SKIP goes in the report with its reason: the iOS ones (app icon,
required-reason APIs) are TestFlight blockers, failing before mobile-release ran too is the app's own
state, the app has no API host means there is nothing to check, the rest are a declined tool or no network.
Skip phase 2 when there is no Android app and phase 3 when there is no iOS app. Create one todo per phase so progress is visible and resumable.
0. Preflight, layout, channels. Look before asking.
Layout. ROOT is the git root. Run bash <this skill>/scripts/detect.sh <ROOT> and read every file
it names before deciding. A stop: line ends the run: report it (a Flutter, React Native, Expo,
Capacitor or Cordova app; a fastlane setup this skill did not write, whose lanes and Gemfile would
collide; mobile workflows from elsewhere). No app at all: point at toolkit:project-setup,
mobile:android-bootstrap or mobile:ios-bootstrap. Decide:
project.yml) or a plain .xcodeproj; the .xcworkspace when CocoaPods
made one; the application target and the shared scheme that builds it (none shared: phase 3 shares
one); more than one app target or project, ask.fastlane/, Gemfile and RELEASE.md go, detect.sh's suggestion (the
nearest directory holding every app root) unless the user names another. An existing Gemfile there
is the user's: phase 1 adds its lines to it.app_name, bundle id and display name, Gradle version (JDK 17 below
8.5, else 21), a CocoaPods version from Podfile.lock.Resume. An earlier run: line means CONFIG already holds the layout and the mapping: use those
values, don't re-derive them (staging is on exactly when CONFIG has android_staging_variant or
ios_staging_config; pass STAGING=yes then, since a run from before the choice existed has staging),
and let every phase's idempotency check decide what is left. Turning staging on later for a dev-only
setup is a resume too: ask the step 3 and 5 staging questions, run render.sh with STAGING=yes, and
merge the staging lines of each differs rendered copy into its file, keeping the values already
filled in CONFIG; phases 2 and 3 then add the staging variant and configuration, and
mobile:mobile-release-connect registers the staging Firebase apps.
Connecting the accounts (console steps, secrets, the CONFIG ids) is mobile:mobile-release-connect,
not a re-run of this skill; say so if that is what the user asks. The values this skill owns sit on
known lines: the hosts of the channels it created, the Firebase group aliases in CONFIG, the cron,
timezone and DEVELOPER_DIR lines in the workflows, the tag pattern. A new value from the user is
edited in place on that line, and the report lists old and new. render.sh then reports those files
as differs, which is expected when its rendered copy differs only on those lines; any other
difference is the user's. When phases 1 to 3 change nothing, one full verify.sh run is the gate for
all of them; on Ruby, bundle check replaces the lock and install sequence unless it fails.
Channels, per platform: read "Channels" in references/android.md and references/ios.md and decide
dev and prod, and staging when it is on (step 5): the variant or configuration, and the app id it
builds, distinct per channel.
Note the API host setting: the build setting that carries the host (detect.sh lists host-like
ones), or none. A channel mapped onto an existing variant keeps that variant's host; one this run
creates gets a host only when such a setting exists. A host the user gives that differs from a mapped
variant's own is a mapping question: ask; without an answer keep the app's and report both.
Toolchain, each probe run directly:
/usr/libexec/java_home -v 21, or -v 17; prefix every Gradle
command with that JAVA_HOME), the SDK with licenses/android-sdk-license ($ANDROID_HOME,
local.properties sdk.dir, ~/Library/Android/sdk).DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer when
xcode-select -p ends in CommandLineTools), xcodegen for an XcodeGen app..xcodeproj or a CocoaPods
app (xcodeproj.rb and pod run from the bundle). Take the first that exists: a Ruby on PATH,
/opt/homebrew/opt/ruby/bin, a mise, asdf or rbenv install, skipping macOS system Ruby (2.6) and
Homebrew's internal Library/Homebrew/vendor/portable-ruby wherever they appear. Only when none
exists, use the portable Ruby whose major.minor matches assets/ruby-version (else the newest of
3.2 or later) (it works, but it is Homebrew's private runtime and moves on
brew update) and say so in the report. Prefix PATH with the chosen Ruby for every Ruby
command in this run. Its patch need not match .ruby-version, which pins CI. None: offer
brew install ruby and wait; declined, phase 1 still writes every file but the Gemfile.lock and
the lane checks are skipped and reported, and phase 3 stops for a plain project or a Pods app.actionlint (optional): missing, offer brew install actionlint; declined, workflows are only
YAML-parsed and the report says so.Inputs, asked once and together, defaults in brackets. Skip any the caller already passed.
.invalid, as a bootstrapped app ships).
Unknown: dev-api.example.invalid, staging-api.example.invalid, api.example.invalid, and the
report lists them as placeholders to fill. A reserved or local name the user gives (.test, .example,
example.com, localhost) is written as given, but the lanes refuse to upload a build against
it; the report says so.mobile-v], Firebase tester
group aliases [dev devs, staging qa when on]. "Every day" means every day something changed: the
nightly skips a platform whose paths did not change since its last success, and one whose
CONFIG values are still TODO (references/pipeline.md). Say this in the plan.TODO in CONFIG. Never ask for a secret value.Compose the plan as one line:
Plan: ROOT=<path>, mobile dir=<dir>, android=<gradle root>:<module> dev=<variant> <id> <created|existing> staging=<... or off> prod=..., ios=<project> scheme <S> dev=<config> <id> <created|existing> staging=<... or off> prod=..., hosts <per created channel, or "app has none">, nightly=<cron> <tz> (skips unchanged or unconfigured platforms), tag=<prefix>*, groups=<dev>/<staging>, edits: <app files>, side effects: <list>
Leave out the part of a platform the repo does not have. Side effects to list: Gradle and Xcode builds (the baseline and the gates), bundle install of
about 110 gems (more with CocoaPods) into <mobile dir>/vendor/bundle (network), pod install,
reading GitHub's runner image README (network, for XCODE_APP), any tool install, writing into the
repo, and for iOS that the channel configurations switch to manual signing with match profiles.
Interactively show it and wait for a yes; with permission to proceed, continue. The report's plan
row repeats the whole line, not a pointer to it: the report is often all that is read.
Gate: layout read, mapping and inputs decided, Plan: line composed, and confirmation received (or
permission to proceed given).
1. fastlane, workflows, runbook; baseline. Read references/pipeline.md. Run
bash <this skill>/scripts/render.sh <ROOT> KEY=VALUE... with the phase 0 values (the key table is in
pipeline.md) and handle any differs line as pipeline.md says. Then, if Ruby is available, the
bundle config / bundle lock --add-platform / bundle install sequence from pipeline.md. Gate:
bash <this skill>/scripts/verify.sh <ROOT> layout prints no FAIL; a FAIL there is a phase 0 decision
that does not match the repo, so fix the value in CONFIG (the line render.sh wrote) and re-run.
Then bash <this skill>/scripts/verify.sh <ROOT> baseline, once, before any app file changes. It keeps
the first baseline on a resume; never delete it after an app edit, since a baseline of edited files
proves nothing. Run verify.sh with the phase 0 Ruby first on PATH.
2. Android channels + signing. Read references/android.md. Edit the app module's build file
(signing from the environment, versionCode from -PversionCode, and the channel build types when this
run creates them) and add the string overrides it names. Gate:
bash <this skill>/scripts/verify.sh <ROOT> android prints no FAIL. Fallback: a style-check FAIL
(spotless, ktlint) that passed in the baseline means the edit is not clean; run the formatter's apply
task once (spotlessApply, ktlintFormat), then re-run the gate.
3. iOS channels + signing. Read references/ios.md. Add the configurations this run creates, then
set the per-channel ids, names, signing, hosts, and the version and encryption keys: in project.yml
and the xcconfigs for XcodeGen, through scripts/xcodeproj.rb for a plain project, then pod install
for a Pods app. Gate: bash <this skill>/scripts/verify.sh <ROOT> ios prints no FAIL. A SKIP on the
app icon is expected for a fresh app; it becomes a blocker for TestFlight only, and the report lists it.
4. Verify + report. Run bash <this skill>/scripts/verify.sh <ROOT> once more for every part,
including fastlane, ci and hygiene, after all edits: earlier gates ran before later phases touched
shared files. Stop anything the run started that is still running (Gradle daemons stay; they are
shared). Report:
모바일 배포 세팅: <ROOT> (android, ios)
| Check | Result | Evidence |
|---|---|---|
| plan | as run | Plan: <the whole line again, even if it was shown before> |
| layout | pass | mobile dir apps/mobile; android android:app; ios ios/Acme.xcodeproj scheme Acme |
| channels | as mapped | android dev=devRelease com.acme.dev (existing flavor), ...; ios dev=Dev com.acme.dev (created), ... |
| android contract | pass | assembleDebug testDebugUnitTest (lintDebug failing before, unchanged) |
| android dev/staging/prod | pass | APKs and the prod AAB signed with a throwaway key, versionCode 4242 |
| android no secret in the build | pass | staging without ANDROID_* builds unsigned |
| ios configurations | pass | Dev com.acme.dev (match AdHoc), Staging ..., Release com.acme (match AppStore), Debug unchanged |
| ios staging archive (unsigned) | pass | com.acme.staging 1.4.0 (4242), API_BASE_URL https://... |
| ios debug contract | pass | build-for-testing Debug |
| fastlane | pass | lanes android.firebase android.play ios.firebase ..., smoke stops at its own checks, Gemfile.lock arm64-darwin x86_64-linux |
| workflows | pass | actionlint clean; every secret documented in RELEASE.md |
| hygiene | pass | no .env in fastlane/, no new key material tracked, build output ignored |
Placeholders: <hosts still .invalid>, Fastfile CONFIG TODO: <keys>
No host check: <platforms whose app has no API host setting, or none>
Same launcher name: <channels that install under the same name, e.g. mapped flavors without their own app_name; or none>
TestFlight blockers: <from verify.sh's SKIP lines: app icon, required-reason APIs without PrivacyInfo.xcprivacy; or none>
Not verified: any real upload or signing with real certificates (needs the accounts in RELEASE.md), a run on GitHub's hosted runners, Play and App Store Connect permissions
Next: <mobile dir>/RELEASE.md from "전체 흐름" (who does what, in order); commit the mobile dir, the app edits and .github/workflows/mobile-*.yml first, since the schedule only runs from the default branch
Every skip and failure gets a row. Then name the next steps: RELEASE.md's one-time setup is the
user's, written for someone who has never shipped an app (accounts and costs, console steps, what
to hand back, how testers install, the road to a store release), and mobile:mobile-release-connect
does most of it with them.
Store listings, screenshots and metadata, App Store review submission and Play production rollout, Crashlytics and other Firebase SDKs, push notifications, code signing for macOS or other Apple platforms, app extensions that need their own provisioning profiles, Expo, React Native, Flutter, Capacitor and Cordova apps, an existing fastlane setup, and any CI other than GitHub Actions. Name them as next steps when they come up; don't scaffold them.
assets/Fastfile (opens in a new tab)assets/Gemfile (opens in a new tab)assets/Pluginfile (opens in a new tab)assets/RELEASE.md (opens in a new tab)assets/gitignore (opens in a new tab)assets/mobile-nightly.yml (opens in a new tab)assets/mobile-release.yml (opens in a new tab)assets/ruby-version (opens in a new tab)evals/behavior.sh (opens in a new tab)evals/trigger-eval.json (opens in a new tab)references/android.md (opens in a new tab)references/ios.md (opens in a new tab)references/pipeline.md (opens in a new tab)scripts/detect.sh (opens in a new tab)scripts/fastfile-options.rb (opens in a new tab)scripts/layout.sh (opens in a new tab)scripts/render.sh (opens in a new tab)scripts/verify.sh (opens in a new tab)scripts/xcodeproj.rb (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/mobile:mobile-releasefrom mobile
npx claudepluginhub siu9068/ggyul-skills --plugin mobileOther plugins' skills for the same job
10 skills in this plugin
/android-bootstrapScaffolds a native Android app (Kotlin, Compose, AGP 9) from zero, standalone or apps/mobile/android in a monorepo. Not for iOS. House convention: Gradle 9 + version catalog, Compose Material3, Navigation 3, Hilt/KSP, Retrofit + kotlinx.serialization, Room + DataStore, ViewModel + StateFlow, JUnit/Turbine, ktlint, a seeded /ping status screen. Use when the user wants to start, set up or scaffold a new Android or Kotlin app: "안드로이드 앱 세팅해줘", "코틀린 컴포즈 프로젝트 만들어줘", "apps/mobile/android 만들어줘", "bootstrap an Android app", "set up a Jetpack Compose project in our monorepo". Do NOT use for: an iOS or Swift app (ios-bootstrap), a whole project or two or more bootstrap legs in one ask like backend + web + mobile (project-setup), adding a screen or feature to an existing Android app (android-screen-creator) or generating that skill (android-screen-creator-bootstrap), a theme from design references (native-design-system-import), React Native, Flutter or Kotlin Multiplatform, or a Next.js web frontend (nextjs-bootstrap)./android-screen-creator-bootstrapGenerates an Android repo's own android-screen-creator + android-component-checker pair from its real Compose code. Not for scaffolding. Android twin of screen-creator-bootstrap: discovers THIS Kotlin + Compose repo's conventions (modules, Nav3 or Nav2, Hilt, ViewModel and UiState, stateful/stateless split, Retrofit DTOs, theme, shared composables, tests, Gradle verify chain) and welds them into a gated screen builder and a composable auditor, harvesting design hardcoded in Kotlin (Color(0x..), raw dp) into the Android sections of docs/design-system/mobile/. Use for "안드로이드 화면 생성 스킬 이 레포에 맞게 만들어줘", "set up android-screen-creator here", "컴포즈 컴포넌트 공통화 스킬 만들어줘". Do NOT use to scaffold an app (android-bootstrap), for Next.js (screen-creator-bootstrap) or iOS (ios-screen-creator-bootstrap), to import a design reference (native-design-system-import, design-system-import), for a whole new project (project-setup), to build a screen now (the generated android-screen-creator), or to edit skills (skill-ops).