Skip to content
Development
Skill

/cm-safe-deploy

Use when setting up deployment infrastructure or enforcing a gated release path. Routes to deploy gates, setup, or rollback based on the current deployment stage.

From plugin
cm
5662 skills8 agents11 commands3 hooks
+1

Claude Code

$ npx -y skills add tody-agent/codymaster --skill cm-safe-deploy --agent claude-code

SKILL.md

cm-safe-deploy.SKILL.md
name: cm-safe-deploy
description: Use when setting up deployment infrastructure or enforcing a gated release path. Routes to deploy gates, setup, or rollback based on the current deployment stage.
token_budget: 1500
token_core: 500
token_refs:
  gate-0-secret-hygiene: 620
  gate-0-5-security-scan: 300
  gate-1-syntax: 280
  gate-2-test-suite: 380
  gate-3-i18n: 260
  gate-4-5-build-dist: 340
  gate-6-deploy-smoke: 320
  setup-new-project: 360
  rollback: 220
compressed: true
deprecated: false

Safe Deploy Pipeline v2

TL;DR

  • **Use before/during** staging or production deployment
  • **Model**: gated deploy pipeline with hard stops
  • **Decision**: choose setup, active gate execution, or rollback
  • **Next**: `cm-quality-gate` for verification evidence

The Iron Law

NO DEPLOY WITHOUT PASSING ALL GATES.
GATES ARE SEQUENTIAL.
IF A GATE FAILS, FIX FIRST.

When to Use

  • Establishing deploy infrastructure for a new project
  • Hardening an existing project that deploys without gates
  • Recovering after incidents caused by weak release validation
  • Running or reviewing a release pipeline before production changes

Choose Your Path

Need to create deploy infrastructure for a project?
└─ YES → Setup path

Already have infrastructure and need to run or review gates?
└─ YES → Gate path

Did a deploy fail or need reversal?
└─ YES → Rollback path

| Path | Summary | Load | |---|---|---| | Setup | Establish scripts, tests, and deploy workflow | `references/setup-new-project.md` | | Gate 0 | Secret hygiene | `references/gate-0-secret-hygiene.md` | | Gate 0.5 | Security scanning | `references/gate-0-5-security-scan.md` | | Gate 1 | Syntax validation | `references/gate-1-syntax.md` | | Gate 2 | Test suite | `references/gate-2-test-suite.md` | | Gate 3 | i18n parity | `references/gate-3-i18n.md` | | Gates 4-5 | Build + dist verification | `references/gate-4-5-build-dist.md` | | Gate 6 | Deploy + smoke verification | `references/gate-6-deploy-smoke.md` | | Rollback | Recovery and reversal | `references/rollback.md` |

Gate Map

0   Secret hygiene
0.5 Security scan
1   Syntax
2   Test suite
3   i18n parity
4   Build verification
5   Dist verification
6   Deploy + smoke test

Load Rules

  • Load only the gate reference for the current stage.
  • Load `setup-new-project.md` only when establishing infrastructure.
  • Load `rollback.md` only when deployment fails or rollback planning is required.

Integration

| Skill | Why | |---|---| | `cm-quality-gate` | verification and evidence checks | | `cm-identity-guard` | deploy identity verification | | `cm-safe-i18n` | i18n-specific gate setup | | `cm-terminal` | monitored execution of gate commands |

Rules

  • Gates are sequential and blocking.
  • Do not skip to later gates when an earlier gate fails.
  • Keep deploy setup and active deploy execution separate in your head and in your prompts.
  • Security and secret hygiene remain part of this skill; do not rely on deprecated skills.

The Bottom Line

**Choose setup, the current gate, or rollback. Load only that path, and stop on failure.**

Read more
@tody-agent
Ships withcm

"I can't write code. But in 6 months, I shipped 12 real products using AI. CodyMaster is everything I learned — so you don't have to repeat my mistakes." — Tody Le, Head of Product, Creator of CodyMaster 50+ skills. One install.

5662 skills8 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
56
Star history of tody-agent/codymaster on GitHub, a chart by star-history.com

Other skills on cm.

cm-autopilot

cm-autopilot

Easy-to-use conversational CLI (Claude Code style) for non-technical users to spawn parallel AI tasks supervised by a visual web…

@tody-agent@tody-agentInstall Skill
cm-brainstorm-idea

cm-brainstorm-idea

Strategic analysis gate for existing products — multi-dimensional evaluation (tech, product, design, business) using Design…

@tody-agent@tody-agentInstall Skill
cm-browse

cm-browse

Fallback local Playwright daemon for real-browser visual QA / screenshots / smoke. Use ONLY when the host platform has no native…

@tody-agent@tody-agentInstall Skill
cm-clean-code

cm-clean-code

Code hygiene gate — detect and eliminate dead code, duplicates, naming mess, and code smells. TRIZ-powered. Run after features,…

@tody-agent@tody-agentInstall Skill
cm-code-review

cm-code-review

Full review lifecycle — request reviews, handle feedback with technical rigor, and complete branch integration. Use when…

@tody-agent@tody-agentInstall Skill
cm-codeintell

cm-codeintell

Unified code intelligence — routes to Skeleton Index, CodeGraph, Architecture Diagram, or Smart Context Builder based on task…

@tody-agent@tody-agentInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about cm-safe-deploy.

Which coding agents can use cm-safe-deploy?
cm-safe-deploy installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.