flyio
Skill38 starsChanged 8 months agoMITView on GitHub
Manage Fly.io apps, machines, volumes and certificates via Machines API
In this repository36 other files it gives its agents.
- abacatepaySkill
- appsignalSkill
- clickupSkill
- cloudflareSkill
- cloudinarySkill
- datadogSkill
- digitaloceanSkill
- discordSkill
- firebaseSkill
- google-sheetsSkill
- herokuSkill
- honeybadgerSkill
- hostingerSkill
- hubspotSkill
- intercomSkill
- jiraSkill
- linearSkill
- mercadopagoSkill
- n8nSkill
- notionSkill
- openaiSkill
- planetscaleSkill
- posthogSkill
- railwaySkill
- resendSkill
- rewriteSkill
- sentrySkill
- shopifySkill
- slackSkill
- stripeSkill
- supabaseSkill
- trelloSkill
- twilioSkill
- vercelSkill
- xSkill
- zendeskSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 48
If the output is OK, proceed to the Flow section.
- Very specific: line 50
If the output is SETUP_NEEDED, guide the user step by step.
- Distinctive: line 71
If the script outputs an error, the token is invalid.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
/flyio
Connect to the Fly.io Machines API to manage apps, machines, volumes, certificates and more. Pure Ruby, zero gems — stdlib only.
Structure
scripts/
├── auth.rb # Bearer token auth + flyio_request helper (required by all scripts)
├── check_setup.rb # Check if token exists (outputs OK or SETUP_NEEDED)
├── save_token.rb # Save and validate an API token
├── apps.rb # List apps in an organization
├── app.rb # Get app details
├── create_app.rb # Create a new app
├── delete_app.rb # Delete an app
├── machines.rb # List machines for an app
├── machine.rb # Get machine details
├── create_machine.rb # Create a new machine
├── update_machine.rb # Update machine configuration
├── start_machine.rb # Start a stopped machine
├── stop_machine.rb # Stop a running machine
├── delete_machine.rb # Delete a machine
├── machine_wait.rb # Wait for machine to reach a state
├── volumes.rb # List volumes for an app
├── volume.rb # Get volume details
├── create_volume.rb # Create a volume
├── extend_volume.rb # Extend a volume size
├── delete_volume.rb # Delete a volume
├── snapshots.rb # List snapshots for a volume
├── certificates.rb # List certificates for an app
├── certificate.rb # Get certificate details for a hostname
└── create_certificate.rb # Request ACME certificate for a hostnameSetup (check before using)
ruby ~/.claude/skills/flyio/scripts/check_setup.rbIf the output is OK, proceed to the Flow section.
If the output is SETUP_NEEDED, guide the user step by step. Present ONE step at a time, wait for the user to confirm before moving to the next.
Step 1 — Ask the user to create an API token:
You need a Fly.io API token. You can create one with the flyctl CLI:
fly tokens deployOr create a personal access token at: https://fly.io/dashboard → Account → Access Tokens
Copy the token and paste it here.
Step 2 — When the user pastes the token, save it:
ruby ~/.claude/skills/flyio/scripts/save_token.rb 'PASTED_TOKEN'If the script outputs an error, the token is invalid. Ask the user to double-check and try again.
If setup is not complete, DO NOT proceed to the Flow. Complete all steps first.
Flow
The argument $ARGUMENTS may contain an app name or machine reference.
Step 1: List apps
ruby ~/.claude/skills/flyio/scripts/apps.rb ORG_SLUGPresent the apps. If $ARGUMENTS matches an app name, use that app. Otherwise ask which app to work with.
Step 2: Show app details
ruby ~/.claude/skills/flyio/scripts/app.rb APP_NAMEPresent the app info and ask what the user wants to do.
Step 3: Actions
List machines:
ruby ~/.claude/skills/flyio/scripts/machines.rb APP_NAMEGet machine details:
ruby ~/.claude/skills/flyio/scripts/machine.rb APP_NAME MACHINE_IDCreate a machine (requires user confirmation):
Show the config first, then ask to confirm before creating.
ruby ~/.claude/skills/flyio/scripts/create_machine.rb APP_NAME --image "registry.fly.io/APP:latest" --region "gru" --cpus 1 --memory 256 --name "my-machine"Update a machine (requires user confirmation):
ruby ~/.claude/skills/flyio/scripts/update_machine.rb APP_NAME MACHINE_ID --image "registry.fly.io/APP:latest" --cpus 2 --memory 512Start a machine (requires user confirmation):
ruby ~/.claude/skills/flyio/scripts/start_machine.rb APP_NAME MACHINE_IDStop a machine (requires user confirmation):
ruby ~/.claude/skills/flyio/scripts/stop_machine.rb APP_NAME MACHINE_IDDelete a machine (requires user confirmation):
Show the machine first, then ask: "Do you want to permanently delete this machine?" Only execute after a "yes".
ruby ~/.claude/skills/flyio/scripts/delete_machine.rb APP_NAME MACHINE_IDWait for machine state:
ruby ~/.claude/skills/flyio/scripts/machine_wait.rb APP_NAME MACHINE_ID --state started --timeout 30Create an app (requires user confirmation):
ruby ~/.claude/skills/flyio/scripts/create_app.rb APP_NAME --org ORG_SLUGDelete an app (requires user confirmation):
Show the app first, then ask: "Do you want to permanently delete this app?" Only execute after a "yes".
ruby ~/.claude/skills/flyio/scripts/delete_app.rb APP_NAMEList volumes:
ruby ~/.claude/skills/flyio/scripts/volumes.rb APP_NAMEGet volume details:
ruby ~/.claude/skills/flyio/scripts/volume.rb APP_NAME VOLUME_IDCreate a volume (requires user confirmation):
ruby ~/.claude/skills/flyio/scripts/create_volume.rb APP_NAME --name "data" --region "gru" --size 1Extend a volume (requires user confirmation):
ruby ~/.claude/skills/flyio/scripts/extend_volume.rb APP_NAME VOLUME_ID --size 10Delete a volume (requires user confirmation):
Show the volume first, then ask: "Do you want to permanently delete this volume? This cannot be undone." Only execute after a "yes".
ruby ~/.claude/skills/flyio/scripts/delete_volume.rb APP_NAME VOLUME_IDList volume snapshots:
ruby ~/.claude/skills/flyio/scripts/snapshots.rb APP_NAME VOLUME_IDList certificates:
ruby ~/.claude/skills/flyio/scripts/certificates.rb APP_NAMEGet certificate details:
ruby ~/.claude/skills/flyio/scripts/certificate.rb APP_NAME HOSTNAMERequest ACME certificate (requires user confirmation):
ruby ~/.claude/skills/flyio/scripts/create_certificate.rb APP_NAME HOSTNAMENotes
- Pure Ruby, zero gems — stdlib only (json, net/http, uri, fileutils)
- Auth via Bearer token (
Authorization: Bearer TOKEN) - Token file:
~/.config/flyio/token(outside the repo, never commit) - Base URL:
https://api.machines.dev - Creating, updating, starting, stopping, deleting machines/apps/volumes and requesting certificates require explicit user confirmation
- Machine states:
created,started,stopped,suspended,destroyed - Rate limits: 1 req/s per action (burst 3), GET machine 5 req/s (burst 10)
- Regions: use 3-letter codes (e.g.
gru,iad,lhr,nrt)
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.

