跳到正文
cccskills
免费在 GitHub 公开

deploy-checklist

Deployment validation: env vars, dependencies, migrations, rollback plan. Use when the user asks about deployment preparation, pre-deploy checks, release validation, migration safety, or rollback planning.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation星标 5(GitHub 5 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md4.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Deploy Checklist

Pre-Deploy Validation

Environment Variables

# Verify all required env vars are set
REQUIRED_VARS=(
    "DATABASE_URL"
    "SECRET_KEY"
    "REDIS_URL"
    "API_KEY"
    "LOG_LEVEL"
)

for var in "${REQUIRED_VARS[@]}"; do
    if [ -z "${!var}" ]; then
        echo "ERROR: Missing required env var: $var"
        exit 1
    fi
done

# Check for hardcoded secrets
if grep -r "password\s*=\s*['\"][^'\"]\{8,\}" src/ --include="*.py" --include="*.js"; then
    echo "ERROR: Potential hardcoded password found"
    exit 1
fi

Dependency Check

# Python
pip install -r requirements.txt --dry-run
# or
pip check

# Node
npm ci --prefer-offline
npm audit --audit-level=high

# Go
go mod download
go mod verify

# Docker image layers
docker build --progress=plain -t app:deploy .

Migration Safety

# Django
python manage.py migrate --check
python manage.py sqlmigrate app 0002 --backwards

# Rails
rake db:migrate:status
rake db:rollback STEP=1  # test rollback path

# PostgreSQL (general)
psql -c "SELECT * FROM schema_migrations ORDER BY version DESC LIMIT 5;"

Deployment Command

# Blue-green deployment
./deploy.sh --strategy blue-green --slot green

# Canary deployment
./deploy.sh --strategy canary --weight 10%

# Rolling deployment
./deploy.sh --strategy rolling --max-surge=1 --max-unavailable=0

Rollback Plan

#!/bin/bash
# rollback.sh

VERSION=${1:-$(cat VERSION.prev)}
echo "Rolling back to version: $VERSION"

# 1. Stop new deployment
kubectl rollout undo deployment/app

# 2. Verify rollback
kubectl rollout status deployment/app --timeout=120s

# 3. Run health check
curl -f http://localhost:8080/health || exit 1

# 4. Verify database compatibility
python manage.py migrate --check

# 5. Notify team
echo "Rollback to $VERSION complete"

Post-Deploy Verification

# Health check
curl -f http://localhost:8080/health
curl -f http://localhost:8080/ready

# Smoke tests
pytest tests/smoke/ -v

# Verify key endpoints
for path in /api/users /api/orders /api/health; do
    response=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8080$path)
    if [ "$response" != "200" ]; then
        echo "FAIL: $path returned $response"
        exit 1
    fi
done

# Check error rate
errors=$(curl -s http://localhost:9090/api/errors | jq '.count')
if [ "$errors" -gt 10 ]; then
    echo "WARN: Elevated error count: $errors"
fi

# Verify database connections
psql -c "SELECT count(*) FROM pg_stat_activity WHERE state = 'active';"

Deployment Checklist

Before Deploy

  • All tests passing (unit, integration, smoke)
  • No pending database migrations that are backwards-incompatible
  • Environment variables verified
  • Secrets rotated if deployed to new environment
  • Rollback plan documented and tested
  • Team notified (Slack/DM)
  • Monitoring dashboards ready

During Deploy

  • Deployment strategy selected (rolling/blue-green/canary)
  • Progress monitored in real-time
  • Error rate tracked
  • Latency monitored
  • Rollback trigger defined (error rate > 1% for 5min)

After Deploy

  • Health checks pass
  • Key user flows verified (smoke tests)
  • Error rate within baseline
  • Database migrations applied successfully
  • Performance benchmarks within threshold
  • Rollback version recorded for future reference
  • Deployment log archived

Rollback Triggers

MetricThresholdAction
Error rate> 1% for 5 minAuto-rollback
p99 latency> 2x baselineAlert, prepare rollback
Database connection pool90% utilizedSlow down deployment
Disk usage> 85%Halt deployment
Out-of-memory errorsAnyImmediate rollback

Configuration Template

# deploy-config.yaml
version: "2.0"
strategy: blue-green
health_check:
  path: /health
  interval: 10s
  timeout: 5s
  healthy_threshold: 3
  unhealthy_threshold: 2
rollback:
  auto: true
  triggers:
    - metric: error_rate
      threshold: 0.01
      duration: 5m
    - metric: p99_latency_ms
      threshold: 1000
      duration: 3m
notifications:
  on_deploy: "#deployments"
  on_rollback: "#deployments"
  on_success: "#deployments"

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

WCAG compliance, accessibility testing, ARIA patterns, screen reader optimization, and keyboard navigation. Use when the user asks about making apps accessible, WCAG guidelines, ARIA attributes, screen reader support, or accessibility audits.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

ace-music

免费

Generate AI music using ACE-Step 1.5 via ACE Music's free API. Use when the user asks to create, generate, or compose music, songs, beats, instrumentals, or audio tracks. Supports lyrics, style prompts, covers, and repainting. Free API, no cost.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

A continuously adaptive skill suite that empowers Clawdbot to act as a versatile coder, business analyst, project manager, web developer, data analyst, and NAS metadata scraper. It intelligently discovers free resources, adapts to user context, and ensures reliable, proven guidance across multiple domains.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

High-fidelity intelligence gathering and data assimilation. Focuses on synthesizing fragmented data into a comprehensive target operational picture.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

Use when Codex needs proactive task queues, heartbeat routines, scheduled follow-up, or continuous work loops instead of waiting for prompts.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

查看 ProjectZeroDays 的全部技能

报告此技能的问题