Iván

Deploy

运维安全v1.0.0
作者:Iván更新于 2026-05-11deploy@clawhub_ivangdavila/deploy
服务器运维DevOps#Deploy#Deployment

据 AlphaMoat 统计,截至 2026-09,Deploy 累计下载 4,441 次、获 3 个星标,在全部 5,078 个 AI 技能中排名第 2,190 位,在「运维安全」分类(264 个)中排名第 123 位。

累计安装
120
累计下载
4,441
星标
3
全站排名
#2,190
全站前 44% · 「运维安全」前 47%
平台累计安装累计下载星标评论
ClawHub ↗1204,4413-
SkillHub ↗1174,0193—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文强调迁移需向后兼容、先增加可空列再回填、每项迁移要考虑回滚,并在发布后观察错误率和关键指标。该技能只提供指南,不会执行命令或访问系统;执行前要依据目标环境审查发布计划和命令,核验密钥处理、迁移兼容性、回滚步骤与监控方案。

资料发布于 2026-10-29

可以用来做什么

  • 比较滚动、蓝绿和金丝雀发布方式的适用条件
  • 规划向后兼容的数据库迁移、回滚和发布后监控
  • 审查 CI/CD、秘密管理、健康检查与发布流程

什么时候用

  • 需要规划或审查应用部署,并能在执行前按目标平台验证命令、密钥和迁移方案时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

为一次应用发布制定 CI/CD、数据库迁移、回滚和监控检查清单,不执行任何变更。
比较滚动、蓝绿和金丝雀策略,并列出选择前需要核实的环境约束。

月度数据趋势

累计下载4,441
1,9223,2754,6282026-03 · 累计下载 2,1092026-05 · 累计下载 3,0542026-06 · 累计下载 3,3022026-07 · 累计下载 3,8502026-08 · 累计下载 4,2302026-09 · 累计下载 4,44126-0326-09
星标3
2342026-03 · 星标 32026-05 · 星标 32026-06 · 星标 32026-07 · 星标 32026-08 · 星标 32026-09 · 星标 326-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,441—3
2026-084,230+9.9%3
2026-073,850+16.6%3
2026-063,302+8.1%3
2026-053,054—3
2026-032,109—3

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.7 KB · ClawHub v1.0.0
---
name: Deploy
description: Ship applications reliably with CI/CD, rollback strategies, and zero-downtime deployment patterns.
metadata: {"clawdbot":{"emoji":"🚀","os":["linux","darwin","win32"]}}
---

# Deployment Rules

## Pre-Deploy Checklist
- Tests passing in CI — never deploy with failing tests
展开全部(共 84 行)
- Environment variables set in target — missing secrets cause silent failures
- Database migrations run before code deploy — new code expecting new schema fails
- Rollback plan ready — know exactly how to revert before you need to

## Deployment Strategies
- **Rolling**: update instances one by one — safe, slower, no extra resources
- **Blue-green**: full parallel environment, instant switch — fast rollback, 2x resources
- **Canary**: route percentage to new version — catch issues early, complex routing
- Choose based on risk tolerance and resources — no universal best

## Zero-Downtime Deploys
- Health checks must pass before traffic routes — unhealthy instances stay out
- Graceful shutdown: finish in-flight requests before terminating
- Database changes must be backwards compatible — old code still running during deploy
- Session handling: sticky sessions or external session store — don't lose user state

## CI/CD Pipeline
- Build once, deploy everywhere — same artifact to staging and prod
- Cache dependencies between builds — save minutes per deploy
- Parallel steps where possible — tests, linting, security scans
- Fail fast: quick checks first — don't wait for slow tests to catch typos
- Pin action versions with SHA — tags can change unexpectedly

## Environment Management
- Staging mirrors prod — different configs cause "works in staging" bugs
- Secrets in secret manager, not environment files — rotation without redeploy
- Feature flags decouple deploy from release — ship dark, enable later
- Config as code in version control — except secrets

## Database Migrations
- Migrations must be backwards compatible during deploy window
- Add columns nullable first, then backfill, then add constraint
- Never rename columns in one step — add new, migrate data, remove old
- Test migrations on prod-size data — 10 rows is fast, 10 million isn't
- Rollback script for every migration

## Rollback
- Automated rollback on health check failure
- Keep previous version artifacts available — can't rollback what you deleted
- Database rollbacks are hard — design migrations to not need them
- Feature flags for instant rollback of functionality without deploy
- Document rollback procedure — panic time is not learning time

## Monitoring Post-Deploy
- Watch error rates for 15 minutes after deploy — most issues surface quickly
- Compare key metrics to pre-deploy baseline
- Alerting on anomalies: latency spike, error rate increase
- Log correlation: trace requests through systems
- User-facing smoke tests after deploy

## Platform-Specific

### Containers
- Image tagged with git SHA — know exactly what's running
- Health check endpoint that verifies dependencies
- Resource limits set — prevent runaway containers

### Serverless
- Cold start optimization — keep bundles small
- Provisioned concurrency for latency-sensitive paths
- Timeout set appropriately — default is often too short

### Static Sites
- CDN cache invalidation after deploy
- Immutable assets with content hashes — cache forever
- Preview deploys for PRs

## Common Mistakes
- Deploying Friday afternoon — issues surface when nobody's watching
- No rollback plan — hoping nothing goes wrong isn't a strategy
- Mixing code and migration deploys — one thing at a time
- Manual deploy steps — if it's not automated, it's wrong sometimes
- Deploying without monitoring — you won't know it's broken until users complain

「运维安全」分类下的热门技能

Iván 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。