gpc-train
Skill1 starsChanged 8 months agoMITView on GitHub
Use when setting up or managing automated staged rollout pipelines with GPC. Trigger when the user mentions gpc train, release train, staged rollout automation, rollout pipeline, release gates, automatic rollout progression, auto-halt on regression, rollout stages — even if they don't explicitly say 'train.' Also trigger when someone wants to automatically progress a release from internal → alpha → production with time gates, or set up crash/ANR gates that pause a rollout.
In this repository18 other files it gives its agents.
- gpc-android-cli-interopSkill
- gpc-ci-integrationSkill
- gpc-enterpriseSkill
- gpc-gamesSkill
- 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-troubleshootingSkill
- gpc-user-managementSkill
- gpc-vitals-monitoringSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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 13
Use this skill when the task involves:
- Very specific: line 32
Add a release-train block to .gpcrc.json in the project root:
- Very specific: line 100
Before each stage transition, gpc train automatically checks the configured gates:
- Very specific: line 102
If all gates pass, the stage progresses (subject to the after time having elapsed).
- Distinctive: line 103
If any gate fails, progression is paused and a warning is shown.
≈ “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 Release Train
When to use
Use this skill when the task involves:
- Setting up a config-driven staged rollout pipeline
- Automatically progressing a release through tracks (internal → alpha → production) with time gates
- Gating progression on crash rate and ANR rate thresholds
- Pausing, resuming, or aborting an in-flight release train
- Checking the current stage and gate health of a running train
Inputs required
- Package name (or configured default in
.gpcrc.json) - Release train config: stages with tracks, rollout percentages, and time delays
- Gate thresholds: max crash rate and max ANR rate
- Whether to pause, resume, or abort the train
Procedure
1) Configure the release train
Add a release-train block to .gpcrc.json in the project root:
{
"release-train": {
"stages": [
{ "track": "internal", "rollout": 100 },
{ "track": "alpha", "rollout": 100, "after": "2d" },
{ "track": "production", "rollout": 10, "after": "7d" },
{ "track": "production", "rollout": 100, "after": "14d" }
],
"gates": { "crashes": { "max": 1.5 }, "anr": { "max": 0.5 } }
}
}Config keys:
| Key | Type | Description |
stages[].track | string | Target track: internal, alpha, beta, production |
stages[].rollout | number | Rollout percentage for this stage (1–100) |
stages[].after | string | Minimum time to wait before this stage (e.g., 2d, 12h, 30m). Omit for immediate. |
gates.crashes.max | number | Maximum crash rate percentage before pausing progression |
gates.anr.max | number | Maximum ANR rate percentage before pausing progression |
Read:
references/rollout-pipeline.md
2) Start the train
gpc train startThis reads .gpcrc.json, creates a state file at ~/.cache/gpc/train-<packageName>.json, and begins executing the first stage immediately. Subsequent stages are executed when the after time has elapsed and gates pass.
# Resume a paused train
gpc train start --resume3) Check train status
gpc train statusOutput:
Release Train · com.example.app
Stage 2 / 4 alpha @ 100% in progress
Last progressed: 2026-03-17 11:00 (2 days ago)
Next stage: production @ 10% eligible in 5 days
Gates (last check: 10 minutes ago)
crashes 0.82% ✓ (max 1.5%)
anr 0.19% ✓ (max 0.5%)# Resume if paused due to a gate failure
gpc train status --resume4) Monitor gate health
Before each stage transition, gpc train automatically checks the configured gates:
- If all gates pass, the stage progresses (subject to the
aftertime having elapsed). - If any gate fails, progression is paused and a warning is shown.
- The user must fix the regression and re-run
gpc train start --resumeorgpc train status --resume.
Gate checks call the same vitals API as gpc vitals crashes and gpc vitals anr. Data lag of 6–48 hours applies to new releases — avoid configuring gates on the very first stage.
5) Pause a running train
gpc train pausePauses automatic progression. Does not halt or change the active rollout on any track. Run gpc train start --resume to continue.
6) Abort the train
gpc train abortAborts the train and halts all active rollouts on tracks managed by this train. State file is cleared. Use when a critical regression is found and the release must be stopped immediately.
Verification
gpc train statusshows the correct current stage and gate health valuesgpc statusconfirms rollout percentages on each track match the active stage in the train config- Gate values (crashes, ANR) are below configured
maxthresholds - State file at
~/.cache/gpc/train-<packageName>.jsonreflects the current stage index and last progression timestamp
Failure modes / debugging
| Symptom | Likely Cause | Fix |
| Gate check fails | Crash/ANR rate above configured max | Fix the regression in a new release, then gpc train start --resume |
Train already running | Previous train was not completed or aborted | gpc train status to check state; gpc train abort if needed |
| Stage progression skipped | after time has not elapsed | gpc train status shows time remaining until next eligible stage |
| Train aborted unexpectedly | Gate threshold breached automatically | Check gpc vitals crashes and gpc vitals anr, fix regression, then restart |
| State file missing | Cache directory cleared or different machine | Re-run gpc train start — it will re-read .gpcrc.json and restart from stage 1 |
Read:
references/rollout-pipeline.md— full lifecycle: config → start → gate check → progress → complete
Related skills
- gpc-release-flow: Upload, promote, and manual rollout management
- gpc-vitals-monitoring: Crash and ANR monitoring used by gate checks
- gpc-ci-integration: Running
gpc trainin CI/CD pipelines
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.

