/agenticops:autopilot-deploy [deployment-target, e.g. rag-qa-agent:v2.3.1]from agenticops
Automates production deployment of agents or skills through 4-stage canary rollout (1% → 10% → 50% → 100%) with SLO gating, continuous-eval checks, and automatic rollback via circuit breaker. Requires human approval for full promotion.
Ships in agenticops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
continuous-eval golden dataset를 통과했고 프로덕션 반영이 필요할 때self-improving-loop가 생성한 PR이 머지되어 canary 검증이 필요할 때사용 제외:
cost-governance가 예산 초과 veto를 건 배포.incident-response가 SEV1 상태로 freeze한 클러스터.agent_request_latency_seconds, agent_error_rate, agent_tokens_total).@latest 금지, PyPI 버전 pin 필수).continuous-eval 리포트가 pass 상태여야 합니다..omao/plans/slo/${target}.yaml)이 존재해야 합니다.각 단계는 트래픽 비율 상승 → 30분 soak → SLO 검증 → gate 통과 시 다음 단계 순서로 진행됩니다. 4단계 전체는 약 2~3시간 소요됩니다.
트래픽의 1%를 candidate 버전으로 라우팅합니다. 이 단계의 목적은 런타임 실패(CrashLoopBackOff, image pull error, RBAC 거부)를 빠르게 감지하는 것입니다.
kubectl argo rollouts set image rollout/${TARGET} \
agent=${REGISTRY}/${TARGET}:${VERSION}
kubectl argo rollouts promote rollout/${TARGET} --stage canary-1
통과 조건:
rate(agent_errors_total{version="$VERSION"}[5m]) < 0.01 (에러율 1% 미만)histogram_quantile(0.99, agent_request_latency_seconds_bucket) < 5.0 (P99 5초 미만)트래픽 10% 전환. 이 단계에서는 continuous-eval를 1회 inline 실행하여 품질 지표를 확인합니다.
kubectl argo rollouts promote rollout/${TARGET} --stage canary-10
/continuous-eval ${TARGET}:${VERSION} --mode canary
통과 조건 (Stage 1 조건 + 다음):
faithfulness ≥ baselineanswer_relevance ≥ baselinetoxicity == 0 (tolerance 0)pii_leakage == 0 (tolerance 0)트래픽 50% 전환. 본격적인 프로덕션 부하에 노출되므로 soak 시간을 60분으로 늘립니다.
통과 조건:
user_feedback_positive_ratio ≥ baseline × 0.95본 skill은 50% 단계까지 자동 진행하며 100% 승격은 사람 승인을 요구합니다. GitHub Issue comment 또는 Slack approval workflow로 명시적 승인 후 다음 명령을 실행합니다.
kubectl argo rollouts promote rollout/${TARGET} --full
각 단계에서 다음 조건 중 하나가 감지되면 즉시 이전 단계로 롤백합니다.
| 트리거 | 임계값 | 반응 |
|---|---|---|
| 에러율 spike | rate(errors) > 5 × baseline for 2m | 즉시 롤백 + SEV2 trigger |
| Latency regression | P99 > 2 × baseline for 5m | 즉시 롤백 + SEV3 trigger |
| Evaluation regression | continuous-eval faithfulness < baseline - 5pp | 즉시 롤백 + SEV3 trigger |
| Toxicity/PII positive | 1건 이상 | 즉시 롤백 + SEV1 trigger |
| Pod crash loop | pod_restart_total > 3 within 10m | 즉시 롤백 + 인프라 팀 호출 |
롤백은 kubectl argo rollouts abort rollout/${TARGET} 로 실행되며 이전 stable revision으로 자동 복귀합니다.
본 skill은 진행 상태를 .omao/state/autopilot-deploy/${target}.json 에 실시간 기록합니다.
{
"target": "rag-qa-agent",
"version": "v2.3.1",
"current_stage": "canary-50",
"started_at": "2026-04-21T10:15:00Z",
"stage_history": [
{"stage": "canary-1", "started": "10:15Z", "completed": "10:45Z", "result": "pass"},
{"stage": "canary-10", "started": "10:45Z", "completed": "11:15Z", "result": "pass"}
],
"circuit_breaker_status": "armed",
"awaiting_human_approval": false
}
incident-response skill은 이 파일을 읽어 SEV1/SEV2 이벤트 발생 시 circuit_breaker_status를 tripped로 갱신하고 본 skill의 진행을 중단시킵니다.
Input: /autopilot-deploy rag-qa-agent:v2.3.1
Output (성공):
[10:15Z] Stage 1 (canary-1): STARTED
[10:45Z] Stage 1: PASS (error_rate=0.002, p99_latency=3.1s)
[10:45Z] Stage 2 (canary-10): STARTED
[11:12Z] continuous-eval: faithfulness=0.89 ≥ baseline 0.87 PASS
[11:15Z] Stage 2: PASS
[11:15Z] Stage 3 (canary-50): STARTED
[12:15Z] Stage 3: PASS (user_feedback_positive=0.73 ≥ 0.71)
[12:15Z] AWAITING HUMAN APPROVAL for 100% promotion
Review at: https://grafana.example.com/d/rollout/rag-qa-agent
Approve via: gh issue comment <issue-id> --body "/approve-promotion"
Output (회귀):
[10:15Z] Stage 1 (canary-1): STARTED
[10:22Z] CIRCUIT BREAKER TRIPPED: error_rate=0.08 > 0.01 threshold
[10:22Z] Automatic rollback initiated
[10:23Z] Rolled back to v2.3.0 (previous stable)
[10:23Z] SEV2 incident opened: see .omao/state/incident/sev2-20260421-1023.json
What SKILL.md sets; muted values are Claude Code's defaults
claude-sonnet-4-6Three short reads, in order
npx claudepluginhub aws-samples/sample-oh-my-aidlcops --plugin agenticops11 skills in this plugin
/anomaly-detectionCloudWatch 메트릭과 Prometheus 시계열 데이터에서 통계적 이상 징후를 자동 탐지하여 incident-response의 입력 소스로 제공한다. 베이스라인 학습(7일 이동 평균 + 3σ), 다변량 상관 분석, 계절성 보정을 수행하며 탐지된 anomaly를 severity 분류하여 알람을 생성한다./audit-trail모든 사용자 발화·agent 행동·phase 전환·gate 판정을 ISO 8601 타임스탬프와 함께 감사 로그에 기록한다. 사용자 입력은 축약·요약 없이 verbatim blockquote로 보존하며, SOC2·ISMS-P 감사 요구사항에 매핑되는 보존 정책(30·90·365일)을 프로젝트별로 선택한다. 모든 AIDLC skill이 호출 가능한 공통 감사 계층을 제공한다./automated-remediation알려진 장애 패턴에 대해 사전 정의된 Runbook 기반 자동 복구를 실행한다. RCA 결과 또는 incident-response의 가설을 입력으로 받아 매칭되는 remediation playbook을 선택하고, 복구 전/후 상태를 검증하며, 실패 시 에스컬레이션한다. SEV2/3만 자동 복구 대상이며 SEV1은 사람 전용이다./continuous-evalRagas 기반 품질·안전 평가를 매 배포 직후와 매 1시간 cron으로 실행하여 faithfulness, answer relevance, context precision, toxicity, PII leakage 지표를 측정한다. Golden dataset 관리와 regression gate(baseline 대비 5%p 하락 시 차단)를 수행하며 autopilot-deploy의 canary gate에 사용된다./cost-governanceAWS Pricing과 Cost Explorer를 MCP로 조회하여 agent별 비용 귀속을 집계하고 예산 alert을 발행하며, 사용 패턴이 정당하면 Opus → Sonnet → Haiku 모델 다운그레이드를 권고한다. 월간 예산 ceiling을 초과할 것으로 예상되는 배포는 veto하여 autopilot-deploy의 pre-flight gate로 작동한다./incident-responseCloudWatch/Prometheus 알람을 수신하여 severity 분류, runbook 조회, hypothesis 생성, 진단 MCP 쿼리, 사람 승인 기반 remediation 수행까지 자동화한다. SEV1은 즉시 on-call 호출, SEV2/3은 agent가 drafted response를 준비한 뒤 사람 승인 후 실행한다.Other plugins' skills for the same job