Skip to content

Play Billing Library Upgrade

Guides an agent through upgrading an Android project's Google Play Billing Library to the latest version.

Repository
android/skills
Stars
10,278
Licence
Apache-2.0
Files
3 files

What it does

When you ask an AI agent to upgrade an Android app's Google Play Billing Library (the code that handles in-app purchases and subscriptions), this skill gives it a step-by-step procedure. The agent finds the current library version, works out the migration path (direct or in stages of two major versions), reads the official migration guides and release notes, edits the code and build files, and runs Gradle builds and tests. It also works from a checklist so deprecated APIs are not missed.

Great for

  • Android developers maintaining an app that uses Google Play Billing and is several versions behind
  • Teams who want a consistent, checklist-driven billing library upgrade process

Skip it if

  • Projects that do not use Google Play Billing, since the procedure is specific to that library
  • Production apps without version control or tests, because the agent edits code across the project and changes may be hard to review or revert
  • Anyone expecting the agent to verify purchase or payment behaviour on a real device; the skill relies on builds and unit tests

Try asking

  • “Upgrade my Android app from Play Billing Library 4 to the latest version”
  • “Migrate this project off SkuDetails to the current billing library”
  • “Check my build.gradle and libs.versions.toml for an outdated billing dependency and plan the upgrade”
Step-by-step guide: how to use Play Billing Library UpgradeInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 3 original files, the Apache-2.0 licence and an attribution note.

    play-billing-library-version-upgrade.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip play-billing-library-version-upgrade.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip play-billing-library-version-upgrade.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Use version control and commit before starting so you can review or revert the agent's changes
  • Review the checklist the agent prints in Phase 2 and confirm the purchase flow manually on a test device, since builds and unit tests do not prove billing works
  • Check the official migration guide yourself, because the skill points to a URL pattern and the agent may rely on its own knowledge of billing documentation

What's inside

  • references/migration-logic.md
  • references/version-checklist.md
  • SKILL.md

Redistributed unmodified from android/skills under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.