agentleFS
AWSKnown publisheraws/tools-for-devops-agent/skills/crm-production-investigation-guidelines/SKILL.md

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.

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
  1. Distinctive:

    Start a completely new, independent investigation for it.

    line 22
  2. Distinctive:

    Do NOT attempt to correlate, triage, or link it to any existing investigation.

    line 23
  3. Distinctive:

    Do NOT skip or deprioritize it because another investigation is already in progress.

    line 24
  4. Distinctive:

    Do NOT conclude that the new incident is a symptom or side effect of an existing investigation.

    line 25
  5. Distinctive:

    Only if the incoming payload title matches an already-running investigation's title exactly should you consider them related and fold the …

    line 27
  6. Distinctive:

    Every incident is real and requires thorough investigation.

    line 31
  7. Distinctive:

    Do not dismiss or downplay any findings.

    line 33
  8. Distinctive:

    Follow the evidence. Use CloudWatch Logs, CloudTrail, CloudWatch Metrics, and Datadog to trace the timeline of events and identify what …

    line 35
  9. Distinctive:

    Start with symptoms: What metrics are anomalous?

    line 39
  10. Distinctive:

    Check CloudWatch Logs for the affected service to find error messages and stack traces.

    line 40
  11. Distinctive:

    Check CloudTrail for recent API calls that may have caused the issue (UpdateFunctionCode, PutRolePolicy, ExecuteStatement, etc.).

    line 41

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. Start a completely new, independent investigation for it.
  2. Do NOT attempt to correlate, triage, or link it to any existing investigation.
  3. Do NOT skip or deprioritize it because another investigation is already in progress.
  4. 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:

  1. Start with symptoms: What metrics are anomalous? What errors are users seeing?
  2. Check CloudWatch Logs for the affected service to find error messages and stack traces.
  3. Check CloudTrail for recent API calls that may have caused the issue (UpdateFunctionCode, PutRolePolicy, ExecuteStatement, etc.).
  4. Correlate the timeline: When did the issue start? What AWS API calls happened just before?
  5. Identify the root cause: What specific change caused the degradation?
  6. 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)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.