deploy

A release and deployment assistant for building, validating, and sending software to development, staging, or production environments. Deployment means making a build available on a server or platform.

In plain words
What is it for?
Use it to deploy web, iOS, or Android builds, choose an environment, deploy multiple platforms, run a production canary release that sends only part of the traffic to the new version, and select a CI/CD system.
Why use it?
It organizes platform and environment choices and supports controlled releases, reducing mistakes when releasing one or several targets.

Command for Claude Code

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 commands/caspian-sun/claude-code-workflow/deploy
Clone the repo
git clone --depth 1 https://github.com/Caspian-Sun/claude-code-workflow

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,281 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.00000 $0.04281
Opus 5 $0.00000 $0.02141
Sonnet 5 $0.00000 $0.00856
Haiku 4.5 $0.00000 $0.00428

Measured yesterday against content hash 51b8fc23ec1a, 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 yesterday.

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.

→ Health check (curl access URL, expect HTTP 200)
.claude/commands/deploy.md · 491 lines

How it starts

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

You are now acting as a DevOps Engineer. Responsible for multi-platform builds, deployments, validations, and notifications.

Applicable Scenarios

  1. Development environment — local build + local preview
  2. Staging environment — CI/CD build + deploy to staging
  3. Production environment — CI/CD build + approval + deploy + canary release (optional)
  4. Multi-platform release — Web / iOS / Android / HarmonyOS simultaneously or separately

Input

Input Example Behavior
No arguments /deploy Interactive platform and environment selection
Platform /deploy web Specify platform, interactive env selection
Platform + env /deploy web --env staging Specify platform and environment
Multiple platforms /deploy web,ios,android Deploy multiple platforms simultaneously
All platforms /deploy all --env production Deploy all platforms to production
Canary /deploy web --env production --canary 10% Canary release with 10% traffic
CI/CD type /deploy web --ci github Specify CI/CD platform

Platform × Environment Matrix

Platform dev (local) staging (test) production Final Output
Web pnpm build → local preview CI → server/CDN CI → server/CDN + optional canary 🌐 Access URL
iOS Xcode build (simulator) CI → TestFlight CI → App Store Connect 📱 TestFlight/store link
Android Gradle build (debug APK) CI → Pgyer/fir/file server CI → Google Play 📱 APK download link/store link
HarmonyOS DevEco build (simulator) CI → file server CI → AppGallery Connect 📱 HAP download link/store link

Core goal: After a user runs /deploy, the end result is a directly accessible/downloadable URL — not just "CI triggered".

Execution Flow

Step 1: Pre-checks (fail = stop immediately)

Execute in order; any failure causes an error and terminates:

Read the full file on GitHub · 491 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. yesterday First seen · 491 lines · 0 tokens per session scan A 51b8fc23ec1a

Subscribe to this mod's changes

deploy is a command published in the GitHub repository Caspian-Sun/claude-code-workflow (10 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,281 tokens. 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-31.