google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
deployment-runbook
Deployment procedures, health checks, and rollback strategies. Use this skill when deploying applications, performing health checks, managing releases, or handling deployment failures. Provides systematic deployment workflows, verification scripts, and troubleshooting guides. Complements the devo...
Full skill instructions
This skill provides deployment procedures, automated health checks, and rollback strategies to ensure safe, reliable deployments. Use it to standardize deployment workflows and reduce deployment-related incidents.
Before any production deployment:
Best for: Zero-downtime deployments, easy rollbacks
Process:
Commands:
# Deploy to green environment
./deploy.sh --env green
# Run health checks
python3 scripts/health_check.py --env green
# Switch traffic (gradual)
./switch_traffic.sh --from blue --to green --percentage 10
./switch_traffic.sh --from blue --to green --percentage 50
./switch_traffic.sh --from blue --to green --percentage 100
# If issues: instant rollback
./switch_traffic.sh --from green --to blue --percentage 100
Best for: Risk-averse deployments, gradual rollouts
Process:
Monitoring During Canary:
Best for: Standard updates, resource-constrained environments
Process:
# 1. Verify staging environment
./verify_staging.sh
# 2. Create deployment tag
git tag -a v1.2.3 -m "Release 1.2.3"
git push origin v1.2.3
# 3. Trigger production build
./build_production.sh --tag v1.2.3
# 4. Backup database
./backup_db.sh --environment production
# 5. Notify team
./notify_slack.sh "🚀 Starting deployment v1.2.3 in 30 minutes"
# 1. Enable maintenance mode (if needed)
./maintenance_mode.sh --enable
# 2. Run database migrations
./run_migrations.sh --environment production
# 3. Deploy application
./deploy.sh --environment production --version v1.2.3
# 4. Disable maintenance mode
./maintenance_mode.sh --disable
# Run comprehensive health checks
python3 scripts/health_check.py --environment production
# Expected output:
# ✓ API health endpoint responding
# ✓ Database connectivity OK
# ✓ Cache layer accessible
# ✓ External services reachable
# ✓ Error rate within threshold
# ✓ Response time within SLA
Monitor these metrics:
Application Metrics:
Infrastructure Metrics:
Business Metrics:
Rollback immediately if:
# Blue-green: instant rollback
./switch_traffic.sh --from green --to blue --percentage 100
# Verification
python3 scripts/health_check.py --environment production
# Deploy previous version
./deploy.sh --environment production --version v1.2.2
# Run health checks
python3 scripts/health_check.py --environment production
# If migrations were applied
./rollback_migration.sh --environment production --steps 1
# Restore from backup (last resort)
./restore_db.sh --backup latest --environment production
Verify system health
python3 scripts/health_check.py --environment production
Notify stakeholders
./notify_slack.sh "⚠️ Deployment v1.2.3 rolled back. System stable on v1.2.2"
Create postmortem
Use the included health check script:
# Run all checks
python3 scripts/health_check.py --env production
# Run specific check
python3 scripts/health_check.py --env production --check api
# Verbose output
python3 scripts/health_check.py --env production --verbose
See scripts/health_check.py for implementation.
Symptoms:
Diagnosis:
# Check service logs
kubectl logs -f deployment/app-name
# Check events
kubectl get events --sort-by='.lastTimestamp'
Resolution:
Symptoms:
Diagnosis:
# Check application logs
tail -f /var/log/app/error.log
# Check error distribution
grep "ERROR" /var/log/app/* | awk '{print $NF}' | sort | uniq -c | sort -nr
Resolution:
Symptoms:
Diagnosis:
# Test database connectivity
python3 scripts/test_db_connection.py
# Check connection pool
psql -h db-host -U user -c "SELECT * FROM pg_stat_activity;"
Resolution:
🚀 **Production Deployment Scheduled**
**Version**: v1.2.3
**Time**: 2024-01-15 14:00 UTC (30 minutes)
**Duration**: ~15 minutes
**Impact**: No expected downtime
**Changes**:
- Feature: New user dashboard
- Fix: Payment processing bug
- Performance: API response time improvements
**Rollback Plan**: Blue-green switch (instant)
**On-Call**: @engineer-name
✅ **Deployment Complete**
**Version**: v1.2.3
**Status**: Successful
**Duration**: 12 minutes
**Health Checks**: All passing ✓
**Metrics**: Within normal range
**Next Check**: T+30 minutes
Monitoring dashboard: [link]
⚠️ **Deployment Rolled Back**
**Version**: v1.2.3 → v1.2.2 (rollback)
**Reason**: Elevated error rate (2.1%)
**Status**: System stable on v1.2.2
**Action Items**:
- [ ] Root cause analysis
- [ ] Fix identified issue
- [ ] Re-test in staging
- [ ] Schedule re-deployment
Incident report: [link]
Emergency Rollback:
./switch_traffic.sh --from green --to blue --percentage 100
Health Check:
python3 scripts/health_check.py --env production
View Logs:
kubectl logs -f deployment/app-name --tail=100
Check Metrics:
curl https://metrics.example.com/api/health
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.