devops/deploy-flyio

devops/deploy-flyio is a skill for Claude Code from echoVic/boss-skill. It costs 43 tokens per session (2,032 once invoked), scanned A, original, MIT.

A deployment guide for running backend services on Fly.io with the flyctl command-line tool. It covers Docker images, edge locations, PostgreSQL, Redis, persistent storage, workers, and scheduled jobs.

In plain words
What is it for?
Use it to deploy services in different programming languages, place them near users, attach databases or persistent volumes, and run background workers or scheduled jobs.
Why use it?
It gives a repeatable path from a Dockerfile to a running Fly.io service instead of requiring you to work out the platform settings yourself.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: agent in frontmatter.

Part of the boss plugin — 39 skills, 10 commands, 9 agents, 8 hooks shipped together

Good fit Use it to deploy services in different programming languages, place them near users, attach databases or persistent volumes, and run background workers or scheduled jobs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/echovic/boss-skill/deploy-flyio
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add echoVic/boss-skill --skill deploy-flyio
Clone the repo
git clone --depth 1 https://github.com/echoVic/boss-skill

Made for: Claude Code.

Or install boss, the plugin that ships this one along with the rest of its 39 skills, 10 commands, 9 agents, 8 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for devops/deploy-flyio

README.md
[![agentmods](https://agentmods.dev/badge/skills/echovic/boss-skill/deploy-flyio/github.svg)](https://agentmods.dev/skills/echovic/boss-skill/deploy-flyio)
Your own site
<a href="https://agentmods.dev/skills/echovic/boss-skill/deploy-flyio"><img src="https://agentmods.dev/badge/skills/echovic/boss-skill/deploy-flyio/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for devops/deploy-flyio

Your own site · 80×15
<a href="https://agentmods.dev/skills/echovic/boss-skill/deploy-flyio"><img src="https://agentmods.dev/badge/skills/echovic/boss-skill/deploy-flyio.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,032 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.02032
Opus 5.5 $0.00017 $0.00813
Sonnet 5.5 $0.00009 $0.00406
Haiku 4.5 $0.00004 $0.00203

Measured today against content hash ba73f5582f6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

devops/deploy-flyio scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill/skills/devops/deploy-flyio/SKILL.md · 321 lines

How it starts

The opening of the file, as written. The whole thing — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fly.io 部署

适用场景

  • Docker 化后端服务:任意语言(Node.js、Python、Go、Java、Rust、Elixir)
  • 全球边缘部署:需要低延迟、靠近用户的后端
  • 有状态服务:需要持久化存储(Volumes)
  • 托管 PostgreSQL:Fly Postgres
  • 后台 Worker / Cron Job:Machines 模式

前置条件

  1. 安装 flyctl CLI:

    # macOS
    brew install flyctl
    # Windows(PowerShell)
    iwr https://fly.io/install.ps1 -useb | iex
    # Linux 及其他平台请参考 fly.io 官方文档安装 flyctl
    
  2. 登录 Fly.io:fly auth login(需要用户交互完成授权)

  3. 验证登录:fly auth whoami

部署流程

1. 准备 Dockerfile

Fly.io 是 Docker 优先的平台,项目必须有 Dockerfile。

多阶段构建示例(Node.js):

FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/package*.json ./
RUN npm ci --omit=dev
ENV NODE_ENV=production
EXPOSE 3000
CMD ["node", "dist/server.js"]

Python 示例:

FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]

Go 示例:

FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o server .

FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/server .
EXPOSE 8080
CMD ["./server"]

2. 初始化 Fly 应用

# 交互式初始化(会生成 fly.toml)
fly launch

# 非交互式初始化
fly launch --name my-api --region iad --no-deploy

fly launch 会自动检测 Dockerfile 并生成 fly.toml 配置。

3. fly.toml 配置

app = "my-api"
primary_region = "iad"

[build]
  dockerfile = "Dockerfile"

[http_service]
  internal_port = 3000
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 1
  processes = ["app"]

  [http_service.concurrency]
    type = "requests"
    soft_limit = 200
    hard_limit = 400

[[vm]]
  memory = "256mb"
  cpu_kind = "shared"
  cpus = 1

[env]
  NODE_ENV = "production"
  PORT = "3000"

# 健康检查
[http_service.checks]
  [http_service.checks.health]
    path = "/health"
    interval = "30s"
    timeout = "5s"
    grace_period = "10s"

Read the full file on GitHub · 321 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 321 lines · 43 tokens per session scan A ba73f5582f6b

Subscribe to this mod's changes

devops/deploy-flyio is a skill published in the GitHub repository echoVic/boss-skill (544 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 2,032 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-28.

Related

Other skills, from other repositories

dokploy-deploy

This skill should be used when user asks to "deploy with Dokploy", "use Dokploy Cloud", "manage self-hosted Dokploy", "deploy Docker Compose on Dokploy", "manage Dokploy databases", "configure Dokploy domains", or "look up Dokploy CLI commands".

fcakyon/claude-codex-settings · 63 tokens

qdrant-deployment-options

Guides Qdrant deployment selection. Use when someone asks 'how to deploy Qdrant', 'Docker vs Cloud', 'local mode', 'embedded Qdrant', 'Qdrant EDGE', 'which deployment option', 'self-hosted vs cloud', or 'need lowest latency deployment'. Also use when choosing between deployment types for a new project.

qdrant/skills · 79 tokens

qwenpaw-usage

A QwenPaw command-line guide for setting up scheduled self-checks and packaging a QwenPaw workspace for another server.

alibaba/anolisa · 84 tokens

runpod-usage

Explain Runpod architecture and design choices: Pods versus Serverless, GPU/VRAM, image construction, storage, networking, and workload development. For creating or improving a complete template project use runpod-build-template; execute infrastructure with runpodctl/runpod-mcp and code-first work with flash.

runpod/runpod-plugins-official · 65 tokens

mirrord-operator

Help users install and configure the mirrord Operator for team/enterprise environments. Use when users ask about operator setup, Helm installation, cloud API key or license configuration, air-gapped/offline licensing, enabling features (queue splitting, DB branching, preview environments, multi-cluster), internal…

metalbear-co/skills · 124 tokens

cometchat-self-host

Run CometChat on your own infrastructure — when to self-host, the deployment models (Docker Swarm, Kubernetes, air-gapped), sizing & prerequisites, and how to point your app at the self-hosted instance. CometChat's enterprise differentiator: full data sovereignty. Triggers: 'self-host cometchat', 'on-prem cometchat'…

cometchat/cometchat-skills · 124 tokens