Chooses and specifies a deployment strategy (rolling, blue-green, canary or feature-flagged) with health gates, automated rollback triggers and database-change ordering. Use when deploys feel risky.
2 stars
0 votes
0 copies
0 views
Added November 26, 2026
ai-agentsrustgokubernetesapidatabasedevopsci/cd
Works with
cli
api
Security analysis
B75/100
criticalImpersonates system messages to override safety constraints
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Design Deployment Strategy?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hermes-hq-design-deployment-strategy-hodios-dist)
---
name: design-deployment-strategy
description: Chooses and specifies a deployment strategy (rolling, blue-green, canary or feature-flagged) with health gates, automated rollback triggers and database-change ordering. Use when deploys feel risky.
license: CC0-1.0
metadata:
version: 1.0.0
kind: prompt
category: devops
source: https://hermes-ide.com/prompts/design-deployment-strategy
catalog: 2026.1014.1
---
# Design a deployment strategy
## Inputs
- [SYSTEM] (required): What is being deployed - services, how state is stored, traffic volume and shape, clients (web, mobile, partner APIs), and how often it ships.
- [PLATFORM] (optional): Where it runs and deploys from (Kubernetes, ECS, VMs, serverless, PaaS; CI/CD tool; service mesh or load balancer).
- [RISK_PROFILE] (optional): What a bad deploy costs - users affected, money, compliance, contractual SLAs - and recent deploy incidents.
- [CURRENT_PROCESS] (optional): How deploys happen today, how long they take, how rollback works and what has gone wrong.
Take each value from the invocation or the user’s message. If a required value is missing, ask for it once.
<context>
Deploys are scary when a bad release reaches every user at once, when nobody knows it is bad until customers complain, and when rollback is a manual procedure that has never been practised. The fix is not one technique but a combination sized to the system: limiting how many users see a release before it is trusted, automated checks that compare the new version against the old, a rollback that is one action and tested, schema changes ordered so old and new code both work, and separating deploying code from releasing features. Each technique has costs: blue-green needs double capacity, a canary needs enough traffic to produce a signal, and feature flags add code paths that must be cleaned up.
</context>
<task>
Design the deployment strategy for:
[SYSTEM]
Only if [PLATFORM] was provided:
Platform: [PLATFORM]
Only if [RISK_PROFILE] was provided:
Risk profile: [RISK_PROFILE]
Only if [CURRENT_PROCESS] was provided:
Current process: [CURRENT_PROCESS]
1. Choose the strategy and justify it against the system's properties: stateless or stateful, traffic volume (enough requests in a canary slice to detect a regression within minutes), long-lived connections or sessions, client versions you do not control (mobile apps, partner integrations), capacity cost, and the risk profile. Say why the alternatives are worse here. Combine techniques where it helps, for example a canary for the deploy plus feature flags for risky behaviour changes.
2. Define the rollout stages: traffic share or instance count per stage, bake time per stage, and whether each promotion is automatic or needs approval.
3. Define health gates for each stage: pre-traffic checks (readiness, smoke tests against the new version), and live comparisons of the new version against the current one on error rate, latency percentiles, saturation and one business signal (checkouts, sign-ins). Give each gate a threshold, a comparison window and a minimum sample size, as starting values.
4. Define automated rollback triggers: which gate failures roll back without a human, how fast, and what alerts and records are produced. Say which failures should page someone even after an automatic rollback.
5. Order database and schema changes with expand and contract: migrations must work with both the current and the new code; destructive steps ship in a later release after the old code is gone; backfills run separately and are throttled. State the rule for what may ship together in one deploy.
6. Specify the rollback procedure: one command or button, how long it takes, what it does not undo (migrations, messages already sent, cache entries, data written in a new format), and how often it is rehearsed.
7. Describe the implementation on the platform: which native features or tools provide traffic splitting, analysis and rollback, the pipeline stages, deploy markers on dashboards, and deploy freeze rules.
8. Plan the move from the current process in small steps, each one an improvement on its own.
If the system description lacks traffic volume, state handling or how rollback works today, and the choice depends on it, ask for it before choosing. Otherwise state assumptions.
</task>
<constraints>
- Choose the simplest strategy that meets the risk profile. A low-traffic internal tool does not need a five-stage canary.
- Every threshold is a starting value with the reason for it, to be tuned from real deploys.
- Name tools only as examples of a capability available on the platform.
- Never treat "roll back" as free: list what a rollback cannot undo.
- Separate what you verified from what you inferred. Mark inferences as such.
- When you do not know, say "I don't know" once and state what would settle it.
</constraints>
<output_format>
## Recommendation
The strategy in two or three sentences, and why the alternatives lose.
## Rollout stages
Table: stage | traffic or instances | bake time | promotion (automatic or approval).
## Health gates and rollback triggers
Table: signal | comparison | threshold | window | action on failure.
## Database and schema changes
Numbered rules, then an example sequence for a column rename across releases.
## Rollback procedure
Steps, expected duration, and what it does not undo.
## Implementation
How to build it on the platform, with a pipeline sketch as a code block in the platform's format where possible.
## Migration plan
Numbered steps from today's process to the target.
## Risks and open questions
Bullets.
</output_format>