deploy

deploy is a command for Claude Code from travisjneuman/.claude. It costs 8 tokens per session (1,121 once invoked), scanned A, original, MIT.

A deployment workflow that checks code, builds the application, deploys it, and verifies its health afterward.

In plain words
What is it for?
Use it to deploy applications to staging or production with pre-deployment checks and post-deployment status reporting.
Why use it?
It helps catch failed tests, type errors, lint problems, or unhealthy deployments before they cause trouble.

Command for Claude Code

Written for Claude Code: arguments in frontmatter. Also seen: mentions Claude Code.

Good fit Use it to deploy applications to staging or production with pre-deployment checks and post-deployment status reporting.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/travisjneuman/.claude/deploy
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.

Clone the repo
git clone --depth 1 https://github.com/travisjneuman/.claude

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/travisjneuman/.claude/deploy.svg)](https://agentmods.dev/commands/travisjneuman/.claude/deploy)
Your own site
<a href="https://agentmods.dev/commands/travisjneuman/.claude/deploy"><img src="https://agentmods.dev/badge/commands/travisjneuman/.claude/deploy.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,121 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.00008 $0.01121
Opus 5 $0.00004 $0.00561
Sonnet 5 $0.00002 $0.00224
Haiku 4.5 $0.00001 $0.00112

Measured 4d ago against content hash 55e2eb57c7f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 4d 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 -sf "$DEPLOY_URL" -o /dev/null && echo "HEALTHY" || echo "UNHEALTHY"
commands/deploy.md · 199 lines

How it starts

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

Deploy Application

Runs a full deployment pipeline: pre-flight checks, build, deploy, health verification, and status report.


Execution Flow

Step 1: Pre-Flight Checks

Before deploying, verify the codebase is ready:

# Ensure clean working tree
git status --porcelain

# Run tests
npm run test 2>/dev/null || pytest 2>/dev/null || go test ./... 2>/dev/null || echo "NO_TEST_RUNNER"

# Run type checks (if applicable)
npm run type-check 2>/dev/null || npx tsc --noEmit 2>/dev/null || mypy src/ 2>/dev/null || echo "NO_TYPE_CHECK"

# Run linter
npm run lint 2>/dev/null || ruff check . 2>/dev/null || golangci-lint run 2>/dev/null || echo "NO_LINTER"

If any check fails: Stop deployment, report the failure, and suggest fixes.


Step 2: Detect Environment

Target: {{target}} Environment: {{environment}} (default: staging)

If environment is production, add an extra confirmation step:

WARNING: You are deploying to PRODUCTION.
Confirm: Have tests passed? Is this change reviewed?

Step 3: Build

# Build the project
npm run build 2>/dev/null || python -m build 2>/dev/null || go build ./... 2>/dev/null || cargo build --release 2>/dev/null

If build fails: Stop. Report error with context.


Step 4: Deploy by Target

Vercel
# Staging
npx vercel --confirm

# Production
npx vercel --prod --confirm

Pre-requisites: vercel CLI installed, project linked (vercel link).

Docker
# Build image
docker build -t app:latest .

# Tag for registry
docker tag app:latest registry.example.com/app:$(git rev-parse --short HEAD)

# Push
docker push registry.example.com/app:$(git rev-parse --short HEAD)

# Deploy (compose)
docker compose -f docker-compose.{{environment}}.yml up -d

Pre-requisites: Dockerfile exists, Docker daemon running.

AWS
# Detect AWS deployment type
[ -f "serverless.yml" ] && echo "SERVERLESS"
[ -f "cdk.json" ] && echo "CDK"
[ -f "template.yaml" ] && echo "SAM"
[ -f "copilot/.workspace" ] && echo "COPILOT"

# Serverless Framework
npx sls deploy --stage {{environment}}

# AWS CDK
npx cdk deploy --require-approval never

# AWS SAM
sam build && sam deploy --no-confirm-changeset

# AWS Copilot
copilot deploy --env {{environment}}

Read the full file on GitHub · 199 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. 4d ago First seen · 199 lines · 8 tokens per session scan A 55e2eb57c7f1

Subscribe to this mod's changes

deploy is a command published in the GitHub repository travisjneuman/.claude (96 stars, last pushed 3d ago), licensed MIT. It adds 8 tokens to every session and 1,121 once invoked, about $0.0000 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-09-03.