/incident-response:aws-cloudwatch-investigationfrom incident-response
Investigates AWS production incidents using CloudWatch Logs Insights, Metrics, Alarms, CloudTrail correlation, blast-radius narrowing, metric math, and incident timeline reconstruction. Useful for debugging alarms, querying logs, correlating deployments, and analyzing Lambda cold starts, OOMs, timeouts, or throttling.
Ships in incident-response. 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.
Take an AWS incident signal, transform it into scoped CloudWatch Logs, Metrics, Alarm, and CloudTrail evidence, and return a timeline, blast-radius conclusion, likely root event, and next validation steps.
| Situation | Query |
|---|---|
| Error spike detection | `fields @timestamp, @message, @logStream\n |
| P99 latency by operation | `fields @timestamp, @duration, operation\n |
| Lambda cold starts | `fields @timestamp, @duration, @initDuration, @memorySize, @maxMemoryUsed\n |
| OOM events | `fields @timestamp, @message, @logStream, @memorySize, @maxMemoryUsed\n |
| Memory trend before OOM | `fields @timestamp, @maxMemoryUsed, @memorySize\n |
| Timeout detection | `fields @timestamp, @duration, @logStream, @requestId\n |
| First error timeline | `fields @timestamp, @message\n |
Use the alarm transition timestamp as the anchor. Query CloudTrail for deployment-related events in [alarm_time - 30min, alarm_time]:
SELECT eventTime, eventName, userIdentity.arn, requestParameters
FROM <event-data-store-id>
WHERE eventTime > '<alarm_time_minus_30m>'
AND eventTime < '<alarm_time>'
AND eventName IN (
'UpdateFunctionCode', 'UpdateFunctionConfiguration',
'UpdateService', 'CreateDeployment', 'RegisterTaskDefinition',
'CreateChangeSet', 'ExecuteChangeSet',
'StartPipelineExecution', 'PutImage'
)
ORDER BY eventTime DESC
| Correlation strength | Evidence |
|---|---|
| Strong | Same service/resource, completed within 15 minutes before alarm, CI/CD actor such as an assumed GitHub Actions deploy role, and alarm was OK in the previous deployment cycle. |
| Medium | Same account or service but partial resource match, nearby timing, or ambiguous actor. |
| Weak | Only temporal proximity, human hotfix, missing prior healthy cycle, or simultaneous environmental changes. |
| Not correlated | No deploy/config/image/change-set event before the first symptom. |
Strengthen the correlation by checking canary or synthetic monitor failures, scaling events, config changes, and whether any other environmental change happened in the same window.
START
|
v
[1] ACCOUNT — Which account(s) show the alarm?
| - Multi-account: suspect shared service such as SSO, networking, or deployment pipeline
| - Single account: proceed to Region
v
[2] REGION — Which region(s) are affected?
| - Multi-region: suspect global service such as IAM, Route53, or S3 global behavior
| - Single-region: proceed to Service
v
[3] SERVICE — Which service namespace shows degradation?
| - Multiple services: suspect VPC, NAT, DNS, IAM, shared database, cache, or external API
| - Single service: proceed to Operation
v
[4] OPERATION — Which API action, function, stage, resource, method, ECS service, or task definition is failing?
| - All operations: suspect service-level throttling or quota
| - Specific operation: proceed to Resource
v
[5] RESOURCE — Which Function ARN, Task ID, DB instance identifier, or other resource instance is the investigation target?
When multiple services are affected, investigate in this order: VPC/Networking (NAT Gateway ErrorPortAllocation, packet drops, DNS), IAM/STS (ThrottlingException on AssumeRole, token vending latency), downstream dependency, shared deployment pipeline, then AWS Health Dashboard and Service Health.
| Signal | MetricDataQueries pattern |
|---|---|
| Error rate percentage | errors = AWS/Lambda Errors Sum, invocations = AWS/Lambda Invocations Sum, error_rate = errors / invocations * 100, label Error Rate %. |
| Latency anomaly | current_p99 = AWS/Lambda Duration p99 for current window, baseline_p99 = AWS/Lambda Duration p99 for same window last week, anomaly_ratio = current_p99 / baseline_p99, label Latency vs Baseline (ratio > 2 = anomaly). |
| Throttling pressure | Sum lambda_throttles, api_gw_429s from AWS/ApiGateway 4XXError, and dynamo_throttles from AWS/DynamoDB ThrottledRequests into throttle_pressure. |
| Concurrent execution headroom | concurrent = AWS/Lambda ConcurrentExecutions Maximum, headroom = 1000 - concurrent, label Remaining Concurrency (account limit 1000). |
Replace TARGET, FunctionName, ApiName, and TableName with the scoped resource. Treat 1000 as a default example account concurrency limit; use the account's actual quota when known.
Collect timestamped evidence and sort by event time:
| Source | Query or API | Yields |
|---|---|---|
| CloudWatch Alarms | Alarm history API | State transition times |
| CloudWatch Metrics | GetMetricData with 1-minute period | First anomaly datapoint |
| CloudWatch Logs | Logs Insights with earliest(@timestamp) | First error occurrence |
| CloudTrail | LookupEvents or CloudTrail Lake | Deployment and configuration events |
| AWS Health | DescribeEvents | AWS-side incidents |
Root event rule: walk backward from the first symptom to the most recent deploy, config change, scaling event, quota pressure, or external dependency shift that can explain all later symptoms.
14:05 covers 14:04-14:05.eventTime, not ingestion time.periods x evaluation periods; the anomaly often started earlier.Retain these CloudWatch incident terms in investigations and reports: 5/min, ALARM, AWS/ECS, Deployment/change, IAM/STS**, STRONG, StartTime/EndTime, VPC/Networking**, agent/SDK, alarm-to-deployment, assumed-role, assumed-role/github-actions-deploy/session, built-in, canary/synthetic, github-actions-deploy, multi-region, payment-processor, payments-api, service/task, single-region, stage/resource/method, us-east-1, EndTime, MetricName, MetricStat, PaymentProcessorErrors, and StartTime.
## CloudWatch investigation — <alarm, service, or incident>
**Status:** investigating | likely cause found | inconclusive | blocked
**Window:** <start> to <end> UTC
**Scope:** account=<id>, region=<region>, service=<namespace>, resource=<resource>
### Findings
| Time | Source | Evidence | Interpretation |
| --- | --- | --- | --- |
| `<timestamp>` | CloudTrail | `<eventName by actor>` | `<deploy/config/change candidate>` |
| `<timestamp>` | Logs Insights | `<query result>` | `<first symptom or dominant error>` |
### Blast radius
- Account: <single | multiple>
- Region: <single | multiple>
- Service: <single | multiple>
- Operation/resource: <specific target>
### Correlation
**Deployment correlation:** strong | medium | weak | none
**Root event:** <earliest plausible change or unknown>
**Confidence:** high | medium | low
### Queries used
- `<Logs Insights or MetricDataQueries summary>`
### Next checks
- <one concrete validation or mitigation step>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/bug-receiptClose bugs and incidents with an auditable BUG RECEIPT that states VERIFIED, PARTIAL, or BLOCKED based on baseline, root cause, change, proof, gaps, and evidence source. Use when the user asks for defect repair, regression proof, production incident closeout, issue closure, machine-readable receipt JSON, or CI integration of bug evidence./bug-reproduction-briefTurn vague, intermittent, or environment-specific bug reports into minimal evidence-backed reproductions before diagnosis or repair. Use when a bug report is incomplete, mixed with an assumed cause, hard to reproduce, or needs observed failure, environment, expected/actual behavior, repeatability, and safe next hypothesis./devops-rollout-planGenerate production-ready DevOps rollout plans for infrastructure, application, configuration, and data changes, including preflight checks, phased deployment, verification signals, rollback procedures, communication plan, contingency handling, and post-deployment tasks. Use when the user asks for a rollout plan, deployment plan, release plan, production change plan, or go/no-go checklist./impediment-prioritizationRank impediments and countermeasures with a value-stream scoring model using ROI, Cost to Implement, Ease of Deployment, Risk Factor, and a fixed priority formula. Use when prioritizing, sequencing, triaging, or ranking remediation items, risks, findings, gaps, action items, GHQR findings, audit results, retrospective actions, or improvement backlogs./incident-postmortemUse when an outage, production incident, or significant service degradation has occurred and the team needs to write a structured blameless post-mortem. Triggers on phrases like "write a post-mortem", "incident review", "what went wrong", "outage report", "root cause analysis", or "RCA". Covers timeline reconstruction, contributing factor analysis, impact quantification, and action item generation with owners.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin incident-responseOther plugins' skills for the same job