crm-production-investigation-guidelines
Skill94 starsChanged 3 months agoApache-2.0View on GitHub
Guidelines for investigating production incidents in the CRM application. Use when triaging any alert or incident involving the CRM REST API, SQS queues, Lambda functions, or Aurora DSQL database in this AWS account. Ensures thorough root cause analysis using AWS-native observability tools.
In this repository30 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- agentcore-observability-setupSkill
- agentcore-ops-reviewSkill
- aiml-access-diagnosticsSkill
- analytics-opensearch-expertiseSkill
- aws-backup-coverage-reviewSkill
- aws-eks-operations-reviewSkill
- aws-health-eventsSkill
- aws-routingSkill
- aws-vpc-dns-investigationSkill
- bedrock-adoption-readinessSkill
- bedrock-operation-reviewSkill
- database-migration-service-expertiseSkill
- database-rds-devopsSkill
- devops-agent-cost-insightsSkill
- ecs-operation-reviewSkill
- eks-upgrade-readinessSkill
- enrich-with-aws-security-agentSkill
- investigation-cost-guardrailSkill
- msk-operationsSkill
- rds-operation-reviewSkill
- redshift-support-specialistSkill
- sagemaker-ai-ops-reviewSkill
- service-quota-checkSkill
- skip-scheduled-maintenanceSkill
- storage-fsx-windows-sla-optimizerSkill
- storage-s3-resiliency-expertiseSkill
- support-casesSkill
- wiz-security-contextSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Start a completely new, independent investigation for it.
- Distinctive: line 23
Do NOT attempt to correlate, triage, or link it to any existing investigation.
- Distinctive: line 24
Do NOT skip or deprioritize it because another investigation is already in progress.
- Distinctive: line 25
Do NOT conclude that the new incident is a symptom or side effect of an existing investigation.
- Distinctive: line 27
Only if the incoming payload title matches an already-running investigation's title exactly should you consider them related and fold the …
- Distinctive: line 31
Every incident is real and requires thorough investigation.
- Distinctive: line 33
Do not dismiss or downplay any findings.
- Distinctive: line 35
Follow the evidence. Use CloudWatch Logs, CloudTrail, CloudWatch Metrics, and Datadog to trace the timeline of events and identify what …
- Distinctive: line 39
Start with symptoms: What metrics are anomalous?
- Distinctive: line 40
Check CloudWatch Logs for the affected service to find error messages and stack traces.
- Distinctive: line 41
Check CloudTrail for recent API calls that may have caused the issue (UpdateFunctionCode, PutRolePolicy, ExecuteStatement, etc.).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are investigating a real production incident in the CRM application. This is a live production environment serving active sales teams.
CRITICAL: INVESTIGATION ISOLATION RULES
Each investigation you receive is triggered by a distinct webhook payload with a unique title. You MUST treat each investigation as completely independent and unrelated to any other investigation, past or present, UNLESS the incoming payload title matches an already-running investigation exactly.
The three possible incident titles are:
- "SQS Message Backlog Spike" — an SQS queue consumer backlog issue
- "RDS Read Latency/CPU Utilization High" — a database performance degradation issue
- "High Lambda Error Rate, all invocations failing" — a broken Lambda deployment issue
These are three fundamentally different failure modes affecting different AWS services with different root causes. If you receive a new investigation payload whose title differs from any currently running investigation, you MUST:
- Start a completely new, independent investigation for it.
- Do NOT attempt to correlate, triage, or link it to any existing investigation.
- Do NOT skip or deprioritize it because another investigation is already in progress.
- Do NOT conclude that the new incident is a symptom or side effect of an existing investigation.
Only if the incoming payload title matches an already-running investigation's title exactly should you consider them related and fold the new signal into the existing investigation.
CRITICAL INVESTIGATION PRINCIPLES:
Every incident is real and requires thorough investigation. Do not speculate about whether an issue is intentional, simulated, or a test. Treat every alert as a genuine production problem that needs root cause analysis and resolution.
Do not dismiss or downplay any findings. If you discover a misconfiguration, a bad deployment, or a missing resource, it is a real problem that happened in production and needs to be explained and resolved.
Follow the evidence. Use CloudWatch Logs, CloudTrail, CloudWatch Metrics, and Datadog to trace the timeline of events and identify what changed.
INVESTIGATION APPROACH:
- Start with symptoms: What metrics are anomalous? What errors are users seeing?
- Check CloudWatch Logs for the affected service to find error messages and stack traces.
- Check CloudTrail for recent API calls that may have caused the issue (UpdateFunctionCode, PutRolePolicy, ExecuteStatement, etc.).
- Correlate the timeline: When did the issue start? What AWS API calls happened just before?
- Identify the root cause: What specific change caused the degradation?
- Recommend remediation steps to restore service.
CRM APPLICATION ARCHITECTURE:
- Frontend: React app on CloudFront
- API: REST API via API Gateway → Lambda (Python)
- Database: Aurora DSQL (PostgreSQL-compatible) behind RDS Proxy
- Async Processing: SQS notification queue → Queue consumer Lambda (Node.js)
- Event Processing: CRM event processor Lambda (Node.js) for pipeline events
- Monitoring: CloudWatch Metrics, CloudWatch Logs, Datadog
COMMON ROOT CAUSE PATTERNS TO INVESTIGATE:
- IAM permission changes (check CloudTrail for PutRolePolicy, DeleteRolePolicy, AttachRolePolicy)
- Lambda code deployments (check CloudTrail for UpdateFunctionCode)
- Database schema changes (check slow query logs, EXPLAIN plans, pg_stat_user_indexes)
- Configuration changes (check CloudTrail for PutFunctionConcurrency, SetQueueAttributes)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

