/bbrewington-tools:flyiofrom bbrewington-tools
Deploys and manages applications on Fly.io using Docker containers and Fly Machines. Helps with fly.toml configuration, multi-region deployment, and debugging deployment issues.
Ships in bbrewington-tools. 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.
Read when SKILL.md points to them; scripts run unread.
Deploy applications globally using Fly.io's platform of hardware-virtualized containers (Fly Machines) with instant launch capabilities and edge networking.
Common workflows:
fly launch - Initialize and deploy new app (auto-generates fly.toml and Dockerfile)fly deploy - Deploy changes to existing appfly status - Check app health and machine statusfly logs - View application logsfly ssh console - SSH into running machinePrerequisites:
fly auth loginFrom your project directory:
fly launch
This command:
Customization flags:
--no-deploy - Configure without deploying--name <app-name> - Specify app name--region <code> - Set primary region (e.g., atl for Atlanta)--org <org-name> - Deploy to specific organization--image <image> - Use existing Docker imagePython (Flask/FastAPI/Django):
requirements.txt or pyproject.tomlNode.js:
package.jsonFor data engineering/dbt projects:
The fly.toml file controls app deployment. Key sections:
# App metadata
app = "my-app"
primary_region = "atl"
# Build configuration
[build]
dockerfile = "Dockerfile" # or use [build.image = "..."]
# Environment variables (non-sensitive)
[env]
PORT = "8080"
ENVIRONMENT = "production"
# HTTP service configuration
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
# Health checks
[[http_service.checks]]
grace_period = "10s"
interval = "30s"
method = "GET"
timeout = "5s"
path = "/health"
# Process groups (for multi-process apps)
[processes]
web = "gunicorn main:app"
worker = "celery -A tasks worker"
# Volume mounts (persistent storage)
[[mounts]]
source = "data_volume"
destination = "/data"
# VM resources
[[vm]]
size = "shared-cpu-1x"
memory = "256mb"
Common configurations:
Auto-scaling for cost optimization:
[http_service]
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0 # Stop all when idle
Multiple regions:
fly scale count 2 --region atl,ord
Secrets management:
fly secrets set API_KEY=xxx DATABASE_URL=yyy
fly secrets list
Specify strategy with fly deploy --strategy <type>:
rolling (default) - Update machines sequentiallyimmediate - Update all at once (brief downtime)canary - Deploy to one machine, verify, then roll outbluegreen - Deploy alongside existing, switch traffic when readyfly deploy
fly logs # Live logs
fly logs --region atl # Specific region
fly scale count 3 # Set machine count
fly scale memory 512 # Increase RAM (MB)
fly scale vm shared-cpu-2x # Change VM size
fly scale count 2 --region atl,ord # Multi-region
fly volumes create data_volume --size 1 # Create 1GB volume
fly volumes list
fly postgres create --name myapp-db # Postgres
fly redis create # Redis (via Upstash)
fly ssh console # Interactive shell
fly ssh console -C "python manage.py migrate" # Run command
fly releases # List releases
fly deploy --image <app>:<release> # Deploy specific release
Typical structure:
project/
├── app/
│ ├── __init__.py
│ └── main.py
├── requirements.txt
├── Dockerfile # Generated by fly launch
├── fly.toml # Generated by fly launch
└── .dockerignore
Minimal Dockerfile for Python (if customizing):
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["gunicorn", "app.main:app", "--bind", "0.0.0.0:8080"]
Example workflow for automated deployments:
name: Deploy to Fly.io
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
Generate token: fly tokens create deploy
In fly.toml:
[processes]
web = "gunicorn main:app"
worker = "celery -A tasks worker"
# Different scaling per process
[[http_service]]
processes = ["web"]
internal_port = 8080
[[services]]
processes = ["worker"]
# No HTTP service for workers
Deploy:
fly deploy
fly scale count web=2 worker=1
Build failures:
fly logs --region atlApp won't start:
internal_port matches your app's portfly logsConnection issues:
fly ips listfly statusPerformance issues:
fly scale memory 1024fly regions add ord laxfly statusfly-toml-reference.md - Complete fly.toml configuration optionsdeployment-patterns.md - Common deployment architecturespython-examples.md - Python-specific deployment examplesfly.toml.template - Starter templates for common app typesgithub-actions-workflow.yml - CI/CD workflow templateassets/fly.toml.template (opens in a new tab)assets/github-actions-workflow.yml (opens in a new tab)references/deployment-patterns.md (opens in a new tab)references/fly-toml-reference.md (opens in a new tab)references/python-examples.md (opens in a new tab)scripts/generate_fly_config.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (bbrewington/software-data-and-ai-tools) — no native marketplace selected
npx claudepluginhub p/bbrewington-bbrewington-tools4 skills in this plugin
/dbtUse when building dbt models, adding tests, or designing data models. Covers dimensional modeling, model organization (staging/intermediate/marts), testing patterns, and warehouse-specific configurations./service-designService design methodology for creating sustainable solutions and optimal experiences for both customers and service providers. Use when designing end-to-end service experiences, creating customer journey maps, building service blueprints, mapping service ecosystems, identifying touchpoints and pain points, designing frontstage/backstage interactions, or improving existing service delivery. Applicable to digital services, physical services, and hybrid product-service systems./strategy-frameworksReference for strategic frameworks and models used in product, business, and service strategy. Use when evaluating strategic alternatives, designing products or services, analyzing business models, mapping customer experiences, or conducting strategic planning. Includes frameworks for journey mapping, capability analysis, growth strategy, metrics design, opportunity prioritization, and value stream optimization.2 plugins in one repository ship this exact skill · first indexed Oct 1, 2026
Other plugins' skills for the same job