claude-code-workflow: Command for Claude Code

.claude/commands/deploy.md

deploy is a command for Claude Code from Caspian-Sun/claude-code-workflow. It costs 0 tokens per session (4,281 once invoked), scanned A, original, MIT.

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

Written for Claude Code: $ARGUMENTS substitution.

This is Caspian-Sun/claude-code-workflow's own configuration. It tells Claude Code how to work on claude-code-workflow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-workflow configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Caspian-Sun/claude-code-workflow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Caspian-Sun/claude-code-workflow/main/.claude/commands/deploy.md
Clone the repo
git clone --depth 1 https://github.com/Caspian-Sun/claude-code-workflow

Made for: Claude Code.

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 deploy

README.md
[![agentmods](https://agentmods.dev/badge/commands/caspian-sun/claude-code-workflow/deploy/github.svg)](https://agentmods.dev/commands/caspian-sun/claude-code-workflow/deploy)
Your own site
<a href="https://agentmods.dev/commands/caspian-sun/claude-code-workflow/deploy"><img src="https://agentmods.dev/badge/commands/caspian-sun/claude-code-workflow/deploy/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 deploy

Your own site · 80×15
<a href="https://agentmods.dev/commands/caspian-sun/claude-code-workflow/deploy"><img src="https://agentmods.dev/badge/commands/caspian-sun/claude-code-workflow/deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00000 $0.04281
Opus 5.5 $0.00000 $0.01712
Sonnet 5.5 $0.00000 $0.00856
Haiku 4.5 $0.00000 $0.00428

Measured 2mo ago against content hash 51b8fc23ec1a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.

→ 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. 2mo ago 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 1mo 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.