gpc-android-cli-interop
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:
| Task | Skill |
|---|---|
| Upload, release, promote, rollout | gpc-release-flow |
| Offline AAB policy scanning | gpc-preflight |
| Crash rate, ANR, startup, reviews | gpc-vitals-monitoring |
| Store listings, screenshots, metadata | gpc-metadata-sync |
| Subscriptions, IAP, pricing, RTDN | gpc-monetization |
| Service account, OAuth, ADC, profiles | gpc-setup |
| GitHub Actions, GitLab CI, JSON output | gpc-ci-integration |
| Managed Google Play private apps | gpc-enterprise |
| Fastlane-to-GPC migration | gpc-migrate-fastlane |
| Multiple apps / profiles | gpc-multi-app |
| GPC-specific errors and exit codes | gpc-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.
4) Ship
Hand off to gpc-release-flow for upload, rollout, and promote. Typical one-command release:
gpc publish \
--package com.example.app \
--file app-release.aab \
--track internal \
--rollout 1.0
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 --package com.example.app --days 1 --json
gpc vitals anr --package 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 --package com.example.notes --file app-release.aab --track production --rollout 0.1
# GPC vitals (delegate to gpc-vitals-monitoring, typically after waiting a day)
gpc vitals crashes --package com.example.notes --days 1 --json
Output contract for agents
GPC commands that this skill delegates to all share the same machine-readable contract:
--jsonon every command (TTY-aware — structured output when piped)- Semantic exit codes: 0 success, 1 error, 2 usage, 3 auth, 4 API, 5 network, 6 threshold breach
--dry-runon every write operationgpc changelog generate --format promptfor 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 togpc-preflight— the compliance scannergpc-vitals-monitoring— post-release monitoring
More from yasserstudio/gpc-skills
gpc-sdk-usage
Use when building applications that programmatically interact with the Google Play Developer API using GPC's TypeScript SDK packages. Make sure to use this skill whenever the user mentions @gpc-cli/api, @gpc-cli/auth, PlayApiClient, createApiClient, resolveAuth, Google Play API client, TypeScript SDK, programmatic access, API client, HTTP client, rate limiter, pagination, edit lifecycle in code, Node.js Google Play, server-side Play Store, backend integration — even if they don't explicitly say 'SDK.' Also trigger when someone wants to build a backend service, custom dashboard, automation script, or any TypeScript/JavaScript application that interacts with Google Play programmatically rather than through the CLI. For CLI usage, see other gpc-* skills. For building plugins, see gpc-plugin-development.
12gpc-release-flow
Use when uploading, releasing, promoting, or managing rollouts on Google Play. Make sure to use this skill whenever the user mentions gpc releases, upload AAB, upload APK, staged rollout, promote to production, halt rollout, gpc publish, release notes, track management, internal testing, beta release, production rollout, version code, rollout percentage, gpc bundles, bundle list, bundle wait, wait for bundle processing, in-app update priority, retain version codes, versioned changelogs, or wants to ship an Android app to any Play Store track. Also trigger when someone asks about the Google Play edit lifecycle, release validation, or how to do a phased rollout — even if they don't mention GPC by name. For metadata and listings, see gpc-metadata-sync. For CI/CD integration, see gpc-ci-integration.
12gpc-security
Use when dealing with GPC credential security, secret management, audit logging, or access control. Make sure to use this skill whenever the user mentions credentials, service account key, secret rotation, key rotation, credential storage, audit log, audit trail, security best practices, .gpcrc.json security, secrets in CI, GPC_SERVICE_ACCOUNT safety, keychain, token cache, credential leak, key compromise, secure deployment — even if they don't explicitly say 'security.' Also trigger when someone asks about where GPC stores credentials, how to rotate service account keys, how to audit who did what with GPC, how to securely pass credentials in CI/CD, or how to handle a compromised service account key. For auth setup, see gpc-setup. For CI configuration, see gpc-ci-integration.
12gpc-multi-app
Use when managing multiple Google Play apps with GPC. Make sure to use this skill whenever the user mentions multiple apps, multi-app, monorepo, white-label, batch operations, bulk upload, several apps, --app flag, app switching, profiles for different apps, fleet management, app portfolio, multiple package names — even if they don't explicitly say 'multi-app.' Also trigger when someone has more than one Android app and wants to manage them efficiently, when they need different configurations per app, when they're running the same command across multiple apps, or when they have a monorepo with multiple Android modules. For single-app setup, see gpc-setup. For CI automation, see gpc-ci-integration.
11gpc-setup
Use when setting up GPC (Google Play Console CLI): authentication with service accounts, OAuth, or Application Default Credentials; configuration files (.gpcrc.json, env vars, XDG paths); auth profiles; running gpc doctor; troubleshooting auth errors. Make sure to use this skill whenever the user mentions gpc auth, service account setup, gpc config, gpc doctor, GPC_SERVICE_ACCOUNT, gpc auth login, Google Play API credentials, Play Console authentication, gpc setup, gpc setup wizard, one-command onboarding, or wants to install/configure GPC — even if they don't explicitly say 'setup.' Also trigger when someone is troubleshooting auth failures, token expiration, keychain issues, or proxy/network configuration for GPC.
11gpc-monetization
Use when managing in-app purchases, subscriptions, pricing, or Real-Time Developer Notifications in Google Play. Make sure to use this skill whenever the user mentions gpc subscriptions, gpc iap, gpc purchases, gpc pricing, gpc rtdn, in-app products, base plans, subscription offers, one-time products, consumable products, purchase verification, purchase acknowledgement, purchase token, subscription cancellation, subscription deferral, voided purchases, refunds, regional pricing, currency conversion, price migration, SKU management, monetization, revenue, billing, subscription analytics, churn, trial conversion, subscriber count, RTDN, Real-Time Developer Notifications, Pub/Sub notifications, subscription events, purchase events — even if they don't explicitly say 'monetization.' Also trigger when someone wants to create or update subscriptions, manage base plan lifecycle (activate/deactivate), set up introductory offers, verify server-side purchases, handle refunds, convert prices across regions, sync IAP products from files, migrate subscribers to new prices, view subscription analytics, decode Pub/Sub notification payloads, or check RTDN topic configuration. For release management, see gpc-release-flow. For CI automation, see gpc-ci-integration.
11