agentleFS
yasserstudioyasserstudio/gpc-skills/gpc-android-cli-interop/SKILL.md

gpc-android-cli-interop

Skill1 starsChanged 16 days agoMITView on GitHub

Use when the agent has just finished building an Android app with Google's official `android` CLI (android create, android run, android sdk install, android build), or when the user says their app is built and they need to ship to Play Store, their AAB is ready, they just finished scaffolding, the APK is generated, or they want the next step after `android run`. Trigger whenever a prompt bridges the build-and-device half (Google's Android CLI) to the publishing half (GPC) -- even without explicit product names. For the release mechanics themselves, see gpc-release-flow. For offline compliance checks, see gpc-preflight. For CI/CD, see gpc-ci-integration. For private enterprise apps, see gpc-enterprise.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If no bundle exists, the build hasn't completed — loop back to Google's Android CLI skills, not this one.

    line 53
  2. Distinctive:

    Run once per environment:

    line 57
  3. Distinctive:

    Before any network call:

    line 67
  4. Very specific:

    If preflight reports billing-library-deprecated, the fix is on the build side: hand back to Google's Android CLI, install its upgrade skill …

    line 75
  5. Distinctive:

    After the release is live, check vitals:

    line 91

≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GPC Android CLI Interop

What this skill is

A router. Google's official Android CLI covers the build-and-device half of Android app development (scaffold, SDK, emulator, run). GPC covers the Play Store half (preflight, upload, release, vitals, metadata, subscriptions). This skill handles the transition between the two — the moment an AAB or APK is on disk and needs to be shipped.

When to use

Trigger this skill when:

  • An agent has just run android run, android build, or equivalent and has an AAB/APK on disk
  • The user is coming from a "build worked, now ship it" posture
  • A prompt spans both toolchains ("scaffold a Compose app and ship it to internal")
  • The user asks "what's the next step" after a successful Google CLI operation

When NOT to use

This skill is a dispatcher, not an implementation. For actual Play Store operations, delegate to the right GPC skill:

TaskSkill
Upload, release, promote, rolloutgpc-release-flow
Offline AAB policy scanninggpc-preflight
Crash rate, ANR, startup, reviewsgpc-vitals-monitoring
Store listings, screenshots, metadatagpc-metadata-sync
Subscriptions, IAP, pricing, RTDNgpc-monetization
Service account, ADC, profilesgpc-setup
GitHub Actions, GitLab CI, JSON outputgpc-ci-integration
Managed Google Play private appsgpc-enterprise
Fastlane-to-GPC migrationgpc-migrate-fastlane
Multiple apps / profilesgpc-multi-app
GPC-specific errors and exit codesgpc-troubleshooting

Handoff procedure

1) Confirm you're at the handoff point

You have an AAB or APK at a known path. Typical locations after android run --release or Gradle:

app/build/outputs/bundle/release/app-release.aab
app/build/outputs/apk/release/app-release.apk

If no bundle exists, the build hasn't completed — loop back to Google's Android CLI skills, not this one.

2) Confirm GPC is configured

Run once per environment:

gpc doctor

Exit code 0 means auth, config, and API reach are all healthy. Non-zero means the user must authenticate first — delegate to gpc-setup.

3) Offline compliance scan

Before any network call:

gpc preflight app-release.aab --fail-on error

9 offline policy scanners (target SDK, permissions, 64-bit libs, secrets, etc.). Catches Play Store rejections before upload. For deeper config, delegate to gpc-preflight.

If preflight reports billing-library-deprecated, the fix is on the build side: hand back to Google's Android CLI, install its upgrade skill with android skills add play-billing-library-version-upgrade, upgrade the Play Billing Library, rebuild, and run preflight again before shipping.

4) Ship

Hand off to gpc-release-flow for upload, rollout, and promote. Typical one-command release:

gpc publish app-release.aab \
  --app com.example.app \
  --track internal

gpc publish handles the full edit lifecycle (open → upload → release → commit). For staged production rollouts, promote, or halt, see gpc-release-flow.

5) Verify post-release

After the release is live, check vitals:

gpc vitals crashes --app com.example.app --days 1 --json
gpc vitals anr --app com.example.app --days 1 --json

For thresholds, alerting, and review monitoring, delegate to gpc-vitals-monitoring.

End-to-end example

A user says: "Scaffold a Compose app called Notes, ship a 10% production rollout, and check crash rate after one day."

The full agent path:

# Google's Android CLI (not this skill)
android create --template compose-tutorial --name Notes
android sdk install --platform 34
android run --release

# Handoff (this skill)
gpc doctor
gpc preflight app-release.aab --fail-on error

# GPC release flow (delegate to gpc-release-flow)
gpc publish app-release.aab --app com.example.notes --track production --rollout 10

# GPC vitals (delegate to gpc-vitals-monitoring, typically after waiting a day)
gpc vitals crashes --app com.example.notes --days 1 --json

Output contract for agents

GPC commands that this skill delegates to all share the same machine-readable contract:

  • --json on every command. Output is a table by default, in a terminal, in a pipe and in CI alike, so pass --json (or --output json / --ci) whenever you intend to parse it. There is no result envelope: each command prints its own object, list commands print { <key>, nextPageToken, meta.count }, and errors go to stderr as plain text (Error [CODE]: ...), never as JSON
  • Semantic exit codes: 0 success, 1 error, 2 usage, 3 auth, 4 API, 5 network, 6 threshold breach
  • --dry-run on every write operation
  • gpc changelog generate --format prompt for LLM-ready release-notes prompts (no model bundled — the CLI emits the prompt, the agent runs the inference)

For the full contract, see gpc-sdk-usage and the JSON Output Contract in the docs.

Related

  • Android CLI Interop guide (docs) — the user-facing version of this skill, with screenshots and end-to-end example
  • Google's Android CLI announcement — scope definition and commands
  • gpc-release-flow — the actual release procedure this skill hands off to
  • gpc-preflight — the compliance scanner
  • gpc-vitals-monitoring — post-release monitoring

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.