/doctrine:safe-deploymentfrom doctrine
Discipline for shipping changes reversibly: decouple deploy from release with feature flags, choose between canary/blue-green/rolling strategies, define automated rollback triggers before shipping.
Ships in doctrine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
Before choosing a rollout strategy, decide whether this change needs a feature flag:
| 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 |
Whichever strategy is chosen, a database migration under it follows the expand–contract pattern: add the new column/table (expand) → deploy code that writes both old and new, reads new with fallback → backfill → deploy code that only uses new → drop the old column (contract). Never ship a schema change and the code that depends on it in the same atomic step; the two must be independently rollback-safe, since a version rollback happens after the migration has already run.
Write down, before the deploy starts, not during an incident:
observability (error rate above X%, latency p99 above Y, saturation above Z) rather than "if it looks bad." A vague trigger gets argued about mid-incident instead of executed.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aethrox/doctrine --plugin doctrine34 skills in this plugin
/api-design-standardsAPI design discipline grounded in the Microsoft/Google REST guidelines, resource and URL conventions, a chosen versioning strategy, what counts as a backward-compatible vs breaking change, and consumer-driven contract testing. Use when designing a new API endpoint, changing an existing API's request/response shape, deciding how to version an API, or asking whether a change to a public interface is breaking./architecture-diagramProduce a software architecture diagram at the right level of zoom, using diagram as code so it can be shown inline, saved, or committed as the user or active workflow authorizes. Use when the user wants to draw, extract, or visualize a project's architecture, a component or request flow, a data flow, or a decision path a design principle hinges on./Other plugins' skills for the same job