Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:26:08 +08:00
commit 8f22ddf339
295 changed files with 59710 additions and 0 deletions

View File

@@ -0,0 +1,79 @@
# Deployment.Engineer Agent
## Purpose
Create comprehensive deployment and release artifacts including deployment plans, CI/CD pipelines, release checklists, rollback procedures, runbooks, and infrastructure-as-code configurations. Applies deployment best practices (blue-green, canary, rolling) and ensures safe, reliable production deployments with proper monitoring and rollback capabilities.
## Skills
This agent uses the following skills:
## Artifact Flow
### Consumes
- `Application or service description`
- `Infrastructure and environment details`
- `Deployment requirements`
- `Release scope and components`
- `Monitoring and alerting requirements`
- `Compliance or change control requirements`
### Produces
- `deployment-plan: Comprehensive deployment strategy with steps, validation, and rollback`
- `cicd-pipeline-definition: CI/CD pipeline configuration with stages, gates, and automation`
- `release-checklist: Pre-deployment checklist with validation and approval steps`
- `rollback-plan: Rollback procedures with triggers and recovery steps`
- `runbooks: Operational runbooks for deployment, troubleshooting, and maintenance`
- `infrastructure-as-code: Infrastructure provisioning templates`
- `deployment-pipeline: Deployment automation scripts and orchestration`
- `smoke-test-suite: Post-deployment smoke tests for validation`
- `production-readiness-checklist: Production readiness assessment and sign-off`
## Example Use Cases
- Deployment strategy (blue-green with traffic shifting)
- Pre-deployment checklist (backups, capacity validation)
- Deployment sequence and dependencies
- Health checks and validation gates
- Traffic migration steps (0% → 10% → 50% → 100%)
- Rollback triggers and procedures
- Post-deployment validation
- Monitoring and alerting configuration
- Communication plan
- Build stage (npm install, compile, bundle)
- Test stage (unit tests, integration tests, coverage gate 80%)
- Security stage (SAST, dependency scanning, OWASP check)
- Deploy to staging (automated)
- Smoke tests and integration tests in staging
- Manual approval gate for production
- Deploy to production (blue-green)
- Post-deployment validation
- Slack/email notifications
- Deployment runbook (step-by-step deployment procedures)
- Scaling runbook (horizontal and vertical scaling procedures)
- Troubleshooting runbook (common issues and resolution)
- Incident response runbook (incident classification and escalation)
- Disaster recovery runbook (backup and restore procedures)
- Database maintenance runbook (schema changes, backups)
- Each runbook includes: prerequisites, steps, validation, rollback
## Usage
```bash
# Activate the agent
/agent deployment.engineer
# Or invoke directly
betty agent run deployment.engineer --input <path>
```
## Created By
This agent was created by **meta.agent**, the meta-agent for creating agents.
---
*Part of the Betty Framework*

View File

@@ -0,0 +1,65 @@
name: deployment.engineer
version: 0.1.0
description: Create comprehensive deployment and release artifacts including deployment
plans, CI/CD pipelines, release checklists, rollback procedures, runbooks, and infrastructure-as-code
configurations. Applies deployment best practices (blue-green, canary, rolling)
and ensures safe, reliable production deployments with proper monitoring and rollback
capabilities.
status: draft
reasoning_mode: iterative
capabilities:
- Design deployment strategies with rollback and validation procedures
- Automate delivery pipelines and operational runbooks
- Coordinate release governance, approvals, and compliance requirements
skills_available:
- artifact.create
- artifact.validate
- artifact.review
permissions:
- filesystem:read
- filesystem:write
artifact_metadata:
consumes:
- type: Application or service description
description: Input artifact of type Application or service description
- type: Infrastructure and environment details
description: Input artifact of type Infrastructure and environment details
- type: Deployment requirements
description: Input artifact of type Deployment requirements
- type: Release scope and components
description: Input artifact of type Release scope and components
- type: Monitoring and alerting requirements
description: Input artifact of type Monitoring and alerting requirements
- type: Compliance or change control requirements
description: Input artifact of type Compliance or change control requirements
produces:
- type: 'deployment-plan: Comprehensive deployment strategy with steps, validation,
and rollback'
description: 'Output artifact of type deployment-plan: Comprehensive deployment
strategy with steps, validation, and rollback'
- type: 'cicd-pipeline-definition: CI/CD pipeline configuration with stages, gates,
and automation'
description: 'Output artifact of type cicd-pipeline-definition: CI/CD pipeline
configuration with stages, gates, and automation'
- type: 'release-checklist: Pre-deployment checklist with validation and approval
steps'
description: 'Output artifact of type release-checklist: Pre-deployment checklist
with validation and approval steps'
- type: 'rollback-plan: Rollback procedures with triggers and recovery steps'
description: 'Output artifact of type rollback-plan: Rollback procedures with
triggers and recovery steps'
- type: 'runbooks: Operational runbooks for deployment, troubleshooting, and maintenance'
description: 'Output artifact of type runbooks: Operational runbooks for deployment,
troubleshooting, and maintenance'
- type: 'infrastructure-as-code: Infrastructure provisioning templates'
description: 'Output artifact of type infrastructure-as-code: Infrastructure provisioning
templates'
- type: 'deployment-pipeline: Deployment automation scripts and orchestration'
description: 'Output artifact of type deployment-pipeline: Deployment automation
scripts and orchestration'
- type: 'smoke-test-suite: Post-deployment smoke tests for validation'
description: 'Output artifact of type smoke-test-suite: Post-deployment smoke
tests for validation'
- type: 'production-readiness-checklist: Production readiness assessment and sign-off'
description: 'Output artifact of type production-readiness-checklist: Production
readiness assessment and sign-off'