writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
flyio-core-workflow-aOperate a Fly.io application release from configuration review through deploy, scale, secret change, and rollback. Use when shipping or changing a Fly Launch app. Trigger with: "deploy Fly app", "scale Fly Machines", "roll back Fly release".
Independent GitHub snapshot · Automated classification · Original documentation governs
name: flyio-core-workflow-a description: >- Operate a Fly.io application release from configuration review through deploy, scale, secret change, and rollback. Use when shipping or changing a Fly Launch app. Trigger with: "deploy Fly app", "scale Fly Machines", "roll back Fly release". allowed-tools: Read, Grep, Write, Edit version: 2.0.0 argument-hint: '[app-environment-and-release]' model: inherit effort: high license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
Treat the app release as a state transition with explicit configuration, image, capacity, health, and rollback boundaries. Fly Launch manages Machines from fly.toml, but production success still requires reconciliation against the running fleet.
fly.toml with process groups, services, health checks, and shutdown settingsRecord current release, running image, Machine counts and regions, health, IP allocation, secrets digests, and attached storage.
Review build, process groups, services, concurrency, autostart or autostop, VM resources, regions, mounts, release command, and deployment policy.
Use Fly secrets rather than plaintext [env] values. Decide whether a secret change should restart Machines immediately or be staged for the release.
Use rolling by default. Use canary only when temporary extra capacity is valid and no Machine volume blocks it; use blue-green only with health checks and compatible stateless capacity.
Bind the release to an immutable image, observe replacement, and wait for health and Machine convergence. Do not infer success from image push alone.
Compare desired and actual image, count, regions, health, and service behavior. Roll back if acceptance criteria or error budgets fail.
Use an app-scoped deploy token for a single app and a short-lived organization token only when the operation legitimately spans apps. Fly App secrets are encrypted at rest but become environment variables inside Machines; anyone with deploy access can deploy code that reads them.
Use Read and Grep to inspect application configuration, deployment evidence, provider documentation, fixtures, logs, schemas, and existing tests before proposing a change. Use Write or Edit only for an approved plan, configuration, implementation, test, or redacted receipt. Do not create, deploy, scale, restart, stop, suspend, destroy, rotate, revoke, expose, or migrate live Fly.io resources without explicit operator approval.
Return the target organization, app, environment, region set, Machine or database identifiers, source-contract fingerprint, evidence, unresolved risks, rollback state, and final decision without exposing tokens, secrets, connection strings, or customer data.
A stateless API with two healthy Machines uses a rolling release. The operator stages one secret, pins the image digest, deploys one Machine at a time, verifies the health endpoint and image on both Machines, and closes only after the previous image remains available for rollback.
| Failure | Response |
|---|---|
| Release command fails | Stop the release, retain its logs, and fix the migration or command contract before retrying. |
| Replacement cannot become healthy | Preserve the failed Machine evidence and roll back rather than widening unavailable capacity. |
| Desired and actual fleet differ | Re-read current state, identify an interrupted or concurrent change, and reconcile under one release owner. |