deploy

Instructions for deploying a project to the cloud with Defang, a command-line deployment tool that uses Docker Compose service definitions. They cover checking the CLI, logging in, finding or creating a compose file, and selecting a deployment stack.

In plain words
What is it for?
Use them to verify Defang, authenticate, prepare deployment configuration, choose or create a stack, and deploy the project’s services.
Why use it?
They provide the required checks and decisions before turning local services into a cloud deployment.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/defanglabs/defang/deploy
Any agent
npx skills add DefangLabs/defang --skill deploy
Clone the repo
git clone --depth 1 https://github.com/DefangLabs/defang

Made for: Claude Code, Codex.

Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 902 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00031 $0.00902
Opus 5 $0.00015 $0.00451
Sonnet 5 $0.00006 $0.00180
Haiku 4.5 $0.00003 $0.00090

Measured 2d ago against content hash cbe9c51908fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

deploy scanned grade A with 1 finding 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 2d ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- curl: `eval "$(curl -fsSL s.defang.io/install)"`
claude-plugin/skills/deploy/SKILL.md · 112 lines

How it starts

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

Deploy the current project using the Defang CLI by following these steps:

Step 1: Validate the CLI

Run defang --version to confirm the CLI is installed. If it is not found, install it:

  • npm: npm install -g @defang-io/defang
  • Homebrew: brew install DefangLabs/defang/defang
  • curl: eval "$(curl -fsSL s.defang.io/install)"

If you installed defang for the first time, run /reload-plugins to activate the Defang MCP server.

Step 2: Authenticate

Run defang whoami to check if the user is already logged in. If not, run defang login and wait for authentication to complete.

Step 3: Find or Create a compose.yaml file

Look for any compose.yaml files in the current directory or parent directories. If multiple are found, ask the user to select one. If none are found, ask the user if they want to create a new one. If yes, ask them about the services they want to deploy and generate a compose.yaml based on their answers. You will need to know which command each service should run, any environment variables they require, whether or not they should listen on a port, and if so, which one, and so on.

Step 4: Select or create a stack

A stack is a single deployed instance of the project in a specific cloud account and region, for example: production is deployed to aws in us-east-1. Additional configuration associated with a stack can be specified in the stack file (e.g., .defang/production). Note that stack variables are read at deployment time, and are not available at runtime in your application services.

List existing stacks:

defang stack list
  • If one or more stacks exist, ask the user whether to use an existing one or create a new one.
  • If no stacks exist, create a new one.

To create a stack interactively:

defang stack new

Required parameters:

  • Name: alphanumeric, cannot start with a number (e.g., production)
  • Provider: aws, gcp, or digitalocean
  • Region: e.g., us-east-1 (AWS), us-central1 (GCP)
  • Deployment Mode: controls cost and resiliency

Read the full file on GitHub · 112 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. 2d ago First seen · 112 lines · 31 tokens per session scan A cbe9c51908fb

Subscribe to this mod's changes

deploy is a skill published in the GitHub repository DefangLabs/defang (164 stars, last pushed 4d ago), licensed MIT. It adds 31 tokens to every session and 902 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories