/flyio-pack:flyio-deploy-integrationfrom flyio-pack
Deploys Node.js applications on Fly.io with Docker containers, rolling updates, and health checks. Supports blue-green and canary deployment strategies.
Ships in flyio-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Deploy edge applications on Fly.io with Docker containers and the fly.toml configuration file. This skill covers building production images optimized for Fly's micro-VM architecture, configuring fly.toml for services, health checks, and multi-region placement, verifying API connectivity from edge locations, and executing rolling updates with automatic rollback. Fly.io deploys as Firecracker micro-VMs, so containers start in under a second and scale to zero when idle.
FROM node:20-slim AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY tsconfig.json ./
COPY src/ ./src/
RUN npm run build
FROM node:20-slim
RUN addgroup --system app && adduser --system --ingroup app app
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY package*.json ./
USER app
EXPOSE 8080
CMD ["node", "dist/index.js"]
# fly.toml
app = "my-integration"
primary_region = "iad"
[build]
dockerfile = "Dockerfile"
[env]
LOG_LEVEL = "info"
PORT = "8080"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_start_machines = true
[[http_service.checks]]
interval = "30s"
timeout = "5s"
grace_period = "10s"
method = "GET"
path = "/health"
export FLY_API_TOKEN="fo1_xxxxxxxxxxxx"
fly secrets set FLYIO_APP_NAME="my-integration"
fly secrets set LOG_LEVEL="info"
import express from 'express';
const app = express();
app.get('/health', async (req, res) => {
try {
const region = process.env.FLY_REGION || 'unknown';
const appName = process.env.FLY_APP_NAME || 'unknown';
res.json({ status: 'healthy', service: 'flyio-integration', region, app: appName, timestamp: new Date().toISOString() });
} catch (error) {
res.status(503).json({ status: 'unhealthy', error: (error as Error).message });
}
});
fly launch --no-deploy
fly deploy --strategy rolling
fly status
curl -s https://my-integration.fly.dev/health | jq .
fly deploy --strategy rolling --wait-timeout 300
fly releases --image
fly releases rollback # if health check fails
| Issue | Cause | Fix |
|---|---|---|
Machine failed to start | Missing env vars or port mismatch | Check fly logs and verify internal_port matches EXPOSE |
Health check failing | App not listening on correct port | Ensure app binds to 0.0.0.0:8080 not 127.0.0.1 |
No machines in region | Region not added to app | Run fly scale count 1 --region iad |
401 Unauthorized | Invalid FLY_API_TOKEN | Regenerate token with fly tokens create deploy |
| Slow cold starts | Large image or heavy startup | Use multi-stage build, set auto_stop_machines = false for latency-critical apps |
See flyio-webhooks-events.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 skills in this plugin
/flyio-ci-integrationConfigure CI/CD pipelines for Fly.io with GitHub Actions, Docker builds,
deploy tokens, and automated deployment workflows.
Trigger: "fly.io CI", "fly.io GitHub Actions", "fly deploy CI/CD".
/flyio-common-errorsDiagnose and fix common Fly.io errors including deployment failures, health check
failures, machine issues, and networking problems.
Trigger: "fly.io error", "fly deploy failed", "fly.io not working", "fly health check".
/flyio-core-workflow-aExecute Fly.io primary workflow: deploy, scale, and manage apps with flyctl and fly.toml.
Use when deploying applications, configuring regions, setting secrets,
or managing the app lifecycle on Fly.io.
Trigger: "fly deploy", "fly.io app management", "fly scale", "fly.io regions".
/flyio-core-workflow-bExecute Fly.io secondary workflow: Postgres clusters, persistent volumes, and private networking.
Use when adding databases, persistent storage, or internal service communication.
Trigger: "fly postgres", "fly volumes", "fly.io database", "fly.io persistent storage".
/flyio-cost-tuningOptimize Fly.io costs with auto-stop/suspend, right-sizing VMs,
volume management, and monitoring spend across apps and regions.
Trigger: "fly.io costs", "fly.io pricing", "fly.io billing", "reduce fly.io spend".
/flyio-debug-bundleCollect Fly.io debug evidence for support tickets including machine status,
logs, health checks, volume state, and networking diagnostics.
Trigger: "fly.io debug", "fly.io support", "fly.io diagnostic", "fly doctor".
npx claudepluginhub flight505/skill-forge --plugin flyio-packOther plugins' skills for the same job