gpc-games
Skill1 starsChanged 8 months agoMITView on GitHub
Use when managing Google Play Games Services achievement and leaderboard configurations with GPC. Make sure to use this skill whenever the user mentions gpc games, games achievements, games leaderboards, achievement config, leaderboard config, Play Games, Play Games Services, gamesconfiguration, achievement CRUD, leaderboard CRUD, points value, incremental achievement, stepsToUnlock, score order, score format, --game-id, GPC_GAME_ID, games.applicationId, or wants to create, update, delete, list, diff, push, pull, or set the icon of achievement and leaderboard definitions for a game (games set-icon, API_ENDPOINT_RETIRED, imageConfigurations). Also trigger when someone wants to sync local achievement/leaderboard JSON against the remote Play Games configuration, read the runtime (player-facing) leaderboards or achievements, or find a game's numeric application ID. For app releases and tracks, see gpc-release-flow. For in-app purchases and subscriptions, see gpc-monetization.
In this repository18 other files it gives its agents.
- gpc-android-cli-interopSkill
- gpc-ci-integrationSkill
- gpc-enterpriseSkill
- gpc-metadata-syncSkill
- gpc-migrate-fastlaneSkill
- gpc-monetizationSkill
- gpc-multi-appSkill
- gpc-onboardingSkill
- gpc-plugin-developmentSkill
- gpc-preflightSkill
- gpc-release-flowSkill
- gpc-sdk-usageSkill
- gpc-securitySkill
- gpc-setupSkill
- gpc-trainSkill
- gpc-troubleshootingSkill
- gpc-user-managementSkill
- gpc-vitals-monitoringSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Use this skill when defining or syncing the achievements and leaderboards for a game: creating, updating, deleting, listing, or diffing …
- Very specific: line 17
Do NOT use this skill for app releases, tracks, or AAB uploads (see gpc-release-flow), or for in-app purchases and subscriptions (see …
- Very specific: line 134
After a create/update, re-run diff with the same file: a clean diff confirms the remote matches local.
- Very specific: line 135
Use --dry-run on every create/update to preview the request without writing.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
gpc-games
Manage Google Play Games Services achievement and leaderboard configurations with GPC, through the Games Configuration API (gamesconfiguration v1configuration).
When to use
Use this skill when defining or syncing the achievements and leaderboards for a game: creating, updating, deleting, listing, or diffing their configuration. This is publisher-side configuration (the catalog of achievements/leaderboards), not the player-facing runtime that unlocks them in a session.
Do NOT use this skill for app releases, tracks, or AAB uploads (see gpc-release-flow), or for in-app purchases and subscriptions (see gpc-monetization).
Inputs required
- An authenticated GPC setup (
gpc-setup). The same service account / OAuth used for publishing works here. - A numeric game application ID (the Play Games "Application ID", distinct from the Android package name). Resolve it once and reuse it (see Procedure step 1).
- For create/update: a JSON config file. See
references/games-config-schema.mdfor the achievement and leaderboard shapes.
Procedure
0. Verify setup
gpc doctorConfirm auth is configured before any games command. All write operations support --dry-run.
1. Resolve and set the game ID
gpc games needs the numeric game application ID. Provide it one of three ways (highest precedence first):
# Per-command flag
gpc games achievements list --game-id 1234567890
# Environment variable (CI-friendly)
export GPC_GAME_ID=1234567890
# Config file: set games.applicationId in .gpcrc.json
gpc config set games.applicationId 1234567890The numeric ID is shown in the Play Console under Play Games Services > Configuration. It is NOT the com.example.mygame package name.
2. Achievements
# List (supports --limit / --next-page; --json returns the standard envelope)
gpc games achievements list
gpc games achievements list --limit 10 --json
# Get one by its achievement ID
gpc games achievements get CgkI1234567890
# Create from a JSON file (preview first)
gpc games achievements create --file achievement.json --dry-run
gpc games achievements create --file achievement.json
# Update an existing achievement
gpc games achievements update CgkI1234567890 --file achievement.json
# Delete (prompts for confirmation; --yes to skip)
gpc games achievements delete CgkI1234567890 --yesAchievement config is STANDARD or INCREMENTAL. Incremental achievements add stepsToUnlock. initialState is HIDDEN or REVEALED. See references/games-config-schema.md.
3. Leaderboards
# List / get
gpc games leaderboards list --json
gpc games leaderboards get CgkI9876543210
# Create / update from a JSON file
gpc games leaderboards create --file leaderboard.json --dry-run
gpc games leaderboards create --file leaderboard.json
gpc games leaderboards update CgkI9876543210 --file leaderboard.json
# Delete (prompts for confirmation)
gpc games leaderboards delete CgkI9876543210Leaderboard config sets scoreOrder (LARGER_IS_BETTER / SMALLER_IS_BETTER) and a scoreFormat.numberFormatType (NUMERIC, TIME_DURATION, or CURRENCY).
4. Diff and sync workflow
diff compares a local JSON file against the remote configuration field-by-field, so you can review drift before pushing it. Use it as the dry-run for a sync:
gpc games achievements diff CgkI1234567890 --file achievement.json
gpc games leaderboards diff CgkI9876543210 --file leaderboard.jsonPattern: keep each achievement/leaderboard as a versioned JSON file in the repo, diff in CI to detect config drift, then update --file to apply.
push and pull bulk-sync a whole directory (v0.9.90+):
gpc games achievements push ./game-config/achievements # creates files without an id, updates those with one
gpc games achievements pull ./game-config/achievements # writes every config to <id>.json
gpc games leaderboards push ./game-config/leaderboards
gpc games leaderboards pull ./game-config/leaderboardsset-icon uploads a 512x512 PNG or JPG for a single achievement or leaderboard (content type inferred from the extension, honors --dry-run):
gpc games achievements set-icon CgkI1234567890 ./icons/first-win.png
gpc games leaderboards set-icon CgkI9876543210 ./icons/high-scores.png
set-icondepends on an endpoint Google has retired. Icon upload uses the Games Configuration API'simageConfigurationsresource, which Google removed from its published API (discovery revision 20260820). If the route has been switched off the command fails withAPI_ENDPOINT_RETIRED-- as of v0.9.96 that is reported with Google's own message and a pointer to the Play Console, instead of a bare 404. Set the icon in Play Console in that case. Every othergamescommand,pushandpullincluded, is unaffected.
5. Runtime (read-only)
The runtime commands read the player-facing definitions for a published game. They are read-only and keyed by the app package, not the game ID:
gpc games runtime leaderboards --app com.example.mygame
gpc games runtime achievements --app com.example.mygameVerification
gpc games achievements list --json/leaderboards list --jsonreturn the standard list envelope:{ <key>, nextPageToken, meta.count, message? }.- After a
create/update, re-rundiffwith the same file: a clean diff confirms the remote matches local. - Use
--dry-runon every create/update to preview the request without writing.
Failure modes / debugging
- "No game ID" / missing application ID: set
--game-id,GPC_GAME_ID, orgames.applicationId(step 1). Remember it is the numeric Play Games ID, not the package name. gpc games eventsno longer exists (removed in v0.9.86) — events are configured in the Play Console UI only.- Runtime commands moved under
gpc games runtimein v0.9.86; the old top-level runtime list commands are gone. API_ENDPOINT_RETIREDonset-icon: Google removed theimageConfigurationsicon-upload route from its published API. Not a fixable configuration problem -- upload the icon in Play Console.push/pulland every othergamescommand still work.- Permission errors: the service account needs access to the game in Play Games Services; see
gpc-troubleshootingfor the error catalog.
Related skills
gpc-setup— authentication and configuration.gpc-release-flow— app releases, tracks, and AAB uploads for the game binary.gpc-monetization— in-app purchases and subscriptions inside the game.gpc-troubleshooting— exit codes and the error catalog.
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
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.

