safe-deployment

safe-deployment is a skill for Claude Code, Codex from aethrox/doctrine. It costs 93 tokens per session (1,074 once invoked), scanned A, original, MIT.

A release-planning method for shipping risky software changes in reversible stages. It separates deploying code to production from releasing its behaviour to users.

In plain words
What is it for?
Use it to decide on feature flags, internal or percentage-based rollouts, health criteria, rollback triggers, and cleanup deadlines for temporary flags.
Why use it?
It limits the number of users affected by a problem and makes rollback a planned action instead of an emergency decision.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the doctrine plugin — 34 skills shipped together

Good fit Use it to decide on feature flags, internal or percentage-based rollouts, health criteria, rollback triggers, and cleanup deadlines for temporary flags.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aethrox/doctrine/safe-deployment
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.

Any agent
npx skills add aethrox/doctrine --skill safe-deployment
Clone the repo
git clone --depth 1 https://github.com/aethrox/doctrine

Made for: Claude Code, Codex.

Or install doctrine, the plugin that ships this one along with the rest of its 34 skills.

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 safe-deployment

README.md
[![agentmods](https://agentmods.dev/badge/skills/aethrox/doctrine/safe-deployment/github.svg)](https://agentmods.dev/skills/aethrox/doctrine/safe-deployment)
Your own site
<a href="https://agentmods.dev/skills/aethrox/doctrine/safe-deployment"><img src="https://agentmods.dev/badge/skills/aethrox/doctrine/safe-deployment/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 safe-deployment

Your own site · 80×15
<a href="https://agentmods.dev/skills/aethrox/doctrine/safe-deployment"><img src="https://agentmods.dev/badge/skills/aethrox/doctrine/safe-deployment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,074 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00093 $0.01074
Opus 5.5 $0.00037 $0.00430
Sonnet 5.5 $0.00019 $0.00215
Haiku 4.5 $0.00009 $0.00107

Measured 3mo ago against content hash 7e0f19316a29, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

safe-deployment scanned grade A with 0 findings 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 3mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/safe-deployment/SKILL.md · 51 lines

How it starts

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

Safe Deployment

Every deploy is reversible before it becomes visible. That means treating "code reaches production" and "users see the new behaviour" as two separate, independently controllable events, rolling exposure out in steps instead of all at once, and deciding what "unhealthy, roll back" means while writing the deploy plan, not while paged at 3am reading dashboards for the first time.

Phase 1: Decouple deploy from release

Before choosing a rollout strategy, decide whether this change needs a feature flag:

  • If the change is risky, user-visible, or its blast radius is unclear; put it behind a flag. The code ships to production dark (compiled in, disabled), and "release" becomes flipping a config value, not another deploy.
  • A flagged change can be enabled for an internal allowlist first, then a percentage of traffic, then everyone; all without a redeploy, and all instantly reversible by flipping the flag back off.
  • Flags accumulate cost (branches to test, config to reason about); remove a flag once the change has fully rolled out and stabilized; a flag left in forever is dead code with a stated deadline that got ignored.

Phase 2: Choose the rollout strategy

Strategy How it works Reach for it when
Rolling replace instances a few at a time, old and new versions serve traffic simultaneously during the rollout default for stateless services with no schema change; simplest, no extra infrastructure
Canary route a small percentage (often 1–5%) of real traffic to the new version, watch its signals, then widen the change is risky enough to want real-traffic validation before full exposure, and the service has per-version metrics to compare
Blue-green two full identical environments, traffic cut over from old to new all at once, old kept warm for instant rollback the change can't safely run two versions concurrently (e.g. a coordinated multi-service release), and instant full rollback matters more than gradual exposure

Read the full file on GitHub · 51 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 51 lines · 93 tokens per session scan A 7e0f19316a29

Subscribe to this mod's changes

safe-deployment is a skill published in the GitHub repository aethrox/doctrine (19 stars, last pushed 2mo ago), licensed MIT. It adds 93 tokens to every session and 1,074 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

safe-deployment compared with skills from other repositories

safe-deployment next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
safe-deploymentaethrox/doctrineSkill192mo agoMITA93Claude Code, Codex
release-preparationgithub/github-mcp-serverSkill35kyesterdayMITA59Claude Code, Codex
release-changelog-harnessArenukvern/mcp_flutterSkill4015d agoMITA84Claude Code
aiwg-prjmagly/aiwgSkill233todayMITA25Claude Code, Codex
artifact-metadatajmagly/aiwgSkill233todayMITA21Claude Code, Codex
git-mirror-auditjmagly/aiwgSkill233todayMITA22Claude Code, Codex
deploy-runbooknirholas/three.wsSkill289todayApache-2.0A38Claude Code