Tooluck logoTooluck
SKILL.md

aws-cloudwatch-investigation

Agent skill fromgithub/awesome-copilot

Reusable investigation patterns for AWS CloudWatch: Logs Insights query templates, alarm-to-deployment correlation, blast-radius narrowing decision tree, and PromQL-style metric query patterns for structured incident triage.

How to install aws-cloudwatch-investigation

install aws-cloudwatch-investigation
# install the awesome-copilot pack with the skills CLI
npx skills add github/awesome-copilot

# or add only this skill to Claude Code: copy the folder

skills/aws-cloudwatch-investigation/

# into

~/.claude/skills/aws-cloudwatch-investigation/ (all projects)

.claude/skills/aws-cloudwatch-investigation/ (one project)

skills/aws-cloudwatch-investigation/SKILL.md

MITFull file
1# AWS CloudWatch Investigation Skill
2
3Reusable patterns for investigating production incidents using CloudWatch Logs, Metrics, and Alarms. These patterns are designed to be composed together during incident triage.
4
5---
6
7## Pattern 1: Logs Insights Query Templates
8
9### Error Spike Detection
10
11Find the top errors in a time window, grouped by error type:
12
13```
14fields @timestamp, @message, @logStream
15| filter @message like /(?i)(error|exception|fatal|critical)/
16| stats count(*) as errorCount by bin(5m), @logStream
17| sort errorCount desc
18| limit 20
19```
20
21### P99 Latency Breakdown by Operation
22
23Identify which operations are driving latency spikes:
24
25```
26fields @timestamp, @duration, operation
27| filter ispresent(@duration)
28| stats avg(@duration) as avgMs,
29 pct(@duration, 50) as p50Ms,
30 pct(@duration, 95) as p95Ms,
31 pct(@duration, 99) as p99Ms,
32 count(*) as invocations
33 by operation
34| sort p99Ms desc
35| limit 15
36```
37
38### Lambda Cold Start Detection
39
40Quantify cold start impact during an incident:
41
42```
43fields @timestamp, @duration, @initDuration, @memorySize, @maxMemoryUsed
44| filter ispresent(@initDuration)
45| stats count(*) as coldStarts,
46 avg(@initDuration) as avgInitMs,
47 max(@initDuration) as maxInitMs,
48 avg(@duration) as avgDurationMs
49 by bin(5m)
50| sort @timestamp desc
51```
52
53### Out-of-Memory (OOM) Detection
54
55Find Lambda functions or containers killed by memory pressure:
56
57```
58…

Excerpt shown under the repository's MIT license.

More skills in awesome-copilot

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

cathrynlavery /

diagram-design
66k

Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.

CCCXCUGH1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates