技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
china-incident-triage【数据与研究】First-response triage for an incoming alarm, ticket, or failure report originating from either China account (aws-cn or aws-cn-2). Use this skill when the trigger is an alarm name, CloudWatch alarm payload, SIM ticket body, error log snippet, or a user phrase such as 告警, 出事了, 服务挂了, incident, triage, 分类, 初步判断, 看一下这个告警, what happened. Determines which …
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Routing is governed by china-region-multi-account-routing. This skill
assumes an incident signal has just arrived and needs initial
classification in < 60 seconds of wall time.
Upload with Agent Type Incident Triage selected.
Do not use this skill for known-classified incidents (user already said "this is a network issue, investigate" → skip triage, go to RCA).
Every invocation produces a Triage Card with exactly these fields. Anything longer dilutes triage speed.
╭─ Triage Card ─────────────────────────────────────────────────────────╮
│ Account: aws-cn (Ningxia, cn-northwest-1) │
│ Class: Network │
│ Severity: SEV-2 (customer-facing impact probable) │
│ Resource: arn:aws-cn:elasticloadbalancing:.../app/prod-alb/... │
│ First seen: 2026-05-11 14:22 CST │
│ Duplicate? No (no similar alarm in last 24h) │
│ Next step: Hand off to china-incident-rca with this card │
╰───────────────────────────────────────────────────────────────────────╯
From the signal, extract account attribution in this order (first match wins):
arn:aws-cn:...) and 12-digit
account ID segmentcn-northwest-1 → aws-cn, cn-north-1 → aws-cn-2Account=aws-cn)aws-cn.example.cloud vs aws-cn-2.example.cloudBucket the signal into exactly one class:
| Class | Typical signals |
|---|---|
| Compute | EC2 status check failed, ASG unable to launch, EKS pod crashloop, Lambda throttled, ECS task exits |
| Network | ALB 5xx spike, target unhealthy, NAT gateway errors, VPC Lattice disconnect, DNS resolution failure, Route 53 health check failed |
| Identity/Credentials | AuthFailure, ExpiredToken, InvalidClientTokenId, SignatureDoesNotMatch, IAM policy eval errors, STS AssumeRole failures |
| Data | RDS connection errors, DynamoDB throttle, S3 4xx/5xx, OpenSearch red status, replication lag |
| Cost | Budget alarm, anomaly detection trigger, quota-based alarm (API throttling from quota) |
| Unknown | Signal is ambiguous — log a note and request user clarification |
If the signal spans multiple classes (e.g., compute failure caused by credentials), pick the root-evident class and note the secondary.
Use a simple rubric:
| Severity | Criterion |
|---|---|
| SEV-1 | Complete account outage, multiple services down, data loss in progress |
| SEV-2 | Single service customer-facing impact, 5xx rate > 5%, MCP endpoint down |
| SEV-3 | Degraded latency, single-AZ impact, partial feature failure |
| SEV-4 | Monitoring-only, internal tool affected, no customer impact |
| SEV-5 | Informational, metric threshold crossed without user-visible effect |
Default to SEV-3 when the signal is ambiguous — escalate via RCA findings later if needed.
Before handing off, query:
aws cloudwatch describe-alarms --alarm-name-prefix <prefix>
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=<event> \
--max-items 20 --start-time <24h ago>
If a very similar alarm fired within the last 24 hours and is still active or recently resolved, mark Duplicate? Yes with the original incident ID. This prevents RCA duplication.
Emit the Triage Card. Based on severity:
Input: CloudWatch alarm prod-alb-5xx-rate state=ALARM in cn-northwest-1
Action:
Account: aws-cn (cn-northwest-1)
Class: Network
Severity: SEV-2
Resource: prod-alb (ALB)
First seen: <alarm.StateChangeTime>
Duplicate? <check last 24h>
Next step: Hand off to china-incident-rca
Input: "aws-cn-2 Lambda throwing AuthFailure since 14:00"
Action:
Account: aws-cn-2 (cn-north-1)
Class: Identity/Credentials
Severity: SEV-2 (likely wide-impact — credentials power all calls)
Resource: <Lambda function ARN if provided, else "Lambda fleet">
First seen: ~14:00 today
Duplicate? Check recent AuthFailure rate
Next step: Hand off to china-incident-rca (prioritize: check recent
Secrets Manager update, check IAM key age)
Input: "中国区好像不太对劲"
Action: Signal too vague for triage. Ask: "Which account, aws-cn or aws-cn-2? And what symptom — slow response, error, or metric anomaly?" Do not emit a Triage Card on speculation.