AgentSkillsCN

Deploy Skill

部署技能

SKILL.md
<!-- Template from Agentic Academy Full course: https://agentic-academy.dev/training/claude-code Created by Silvio Gobet | youtube.com/@silviogobet -->

name: deploy description: Safe deployment workflow with pre-checks and rollback capability

Deploy Skill

Pre-Deployment Checks

  • All tests passing
  • No uncommitted changes
  • Version bumped
  • Changelog updated
  • Branch is up to date with main

Safety Rules

  • NEVER deploy on Friday after 3pm
  • ALWAYS create a backup before deploying
  • REQUIRE manual confirmation for production

Workflow

1. Pre-flight Check

bash
git status                    # Check for uncommitted changes
npm test                      # Run tests
npm run build                 # Verify build succeeds

2. Version Bump (if needed)

bash
npm version patch|minor|major

3. Deploy

Vercel

bash
vercel --prod

Docker

bash
docker build -t app:latest .
docker push registry/app:latest

Custom

bash
npm run deploy

4. Post-Deploy Verification

  • Check health endpoint
  • Monitor logs for errors
  • Verify critical user flows
  • Check error tracking dashboard

Rollback Plan

If issues detected:

  1. Revert to previous version
  2. Check logs for root cause
  3. Fix and re-deploy
  4. Document incident

Notifications

Notify team in #deployments channel:

  • What was deployed
  • Any notable changes
  • Who to contact for issues