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
累計下載
4441
星標
3
全站排名
#2,190
全站前 44% · 「運維安全」前 47%
平台累計安裝累計下載星標評論
ClawHub ↗12044413-
SkillHub ↗11740193—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文強調遷移需向後相容、先增加可空列再回填、每項遷移要考慮回滾,並在釋出後觀察錯誤率和關鍵指標。該技能只提供指南,不會執行命令或訪問系統;執行前要依據目標環境審查釋出計劃和命令,核驗金鑰處理、遷移相容性、回滾步驟與監控方案。

資料釋出於 2026-10-29

可以用來做什麼

  • 比較滾動、藍綠和金絲雀釋出方式的適用條件
  • 規劃向後相容的資料庫遷移、回滾和釋出後監控
  • 審查 CI/CD、秘密管理、健康檢查與釋出流程

什麼時候用

  • 需要規劃或審查應用部署,並能在執行前按目標平台驗證命令、金鑰和遷移方案時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

為一次應用釋出制定 CI/CD、資料庫遷移、回滾和監控檢查清單,不執行任何變更。
比較滾動、藍綠和金絲雀策略,並列出選擇前需要核實的環境約束。

月度資料趨勢

累計下載4441
1922327546282026-03 · 累計下載 21092026-05 · 累計下載 30542026-06 · 累計下載 33022026-07 · 累計下載 38502026-08 · 累計下載 42302026-09 · 累計下載 444126-0326-09
星標3
2342026-03 · 星標 32026-05 · 星標 32026-06 · 星標 32026-07 · 星標 32026-08 · 星標 32026-09 · 星標 326-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094441—3
2026-084230+9.9%3
2026-073850+16.6%3
2026-063302+8.1%3
2026-053054—3
2026-032109—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),按月更新。口徑說明見資料方法。