investigate-issue
Coordinate incident investigations and identify root causes based on evidence.
Install
mkdir -p .claude/skills/investigate-issue && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15202" && unzip -o skill.zip -d .claude/skills/investigate-issue && rm skill.zipInstalls to .claude/skills/investigate-issue
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Top-level diagnostic workflow for investigating issues and incidents using evidence, dynamically routing to the correct specialist agent, identifying symptoms and failing boundaries, evaluating hypotheses, and determining the most likely root cause only when supported. Use when asked to debug why an issue occurred or produce an investigation report before RCA writing; do not use to write formal RCAs or generate PDFs.Key capabilities
- →Gather objective facts like error messages and timestamps.
- →Identify visible symptoms from user reports or logs.
- →Identify the suspected failing boundary (e.g., frontend, backend).
- →Assign a primary investigator and supporting specialists based on evidence.
- →Generate multiple plausible hypotheses for the issue.
- →Evaluate each hypothesis with supporting, contradicting, and missing evidence.
How it works
The skill gathers objective facts and visible symptoms, identifies failing boundaries, and assigns specialist agents. It then generates and evaluates hypotheses to determine the most likely root cause.
Inputs & outputs
When to use investigate-issue
- →Investigating a production incident
- →Routing a bug report to the right expert
- →Gathering evidence for a system failure
About this skill
Investigate Issue
Purpose
Investigate why a reported issue occurred using evidence. Act as a diagnostic coordinator and investigator, not an RCA writer.
Use this model:
- Skill = reusable workflow.
- Agent = specialist role.
- Tool = executable capability.
- Coordinator = decides which agent leads or participates.
Do not hard-code this workflow to one specialist. Route by evidence. Do not assume a root cause without evidence. If the available evidence is insufficient, explicitly state that the root cause has not been determined.
Inputs
Use any provided or discoverable evidence, including:
- Bug reports and reproduction steps.
- Application logs, stack traces, metrics, and monitoring data.
- API requests and responses.
- Database records.
- Source code, configuration files, commits, and deployment history.
Specialist Routing
Use evidence to assign the primary investigator:
- Frontend/UI evidence:
frontend-ui-ux-developer - API or business logic evidence:
backend-database-engineer - Database, query, or schema evidence:
backend-database-engineer - Infrastructure, deployment, network, startup, DNS, or container evidence:
devops-engineer - Authentication, authorization, permission, secrets, or security evidence:
security-engineer - Architecture boundary, ownership, or data-flow confusion:
system-architect - Reproduction, acceptance, regression, or test-gap evidence:
sqa-engineer - Cross-cutting evidence: assign one lead investigator and list supporting specialists.
When evidence is unclear, use these defaults:
- User-facing bug:
sqa-engineer - Cross-service or unclear ownership:
system-architect - Deployment, outage, startup, DNS, container, or infrastructure issue:
devops-engineer - Auth or security issue:
security-engineer
Workflow
- Gather objective facts first: error messages, status codes, timestamps, affected endpoints, affected users, services, versions, deployments, and relevant records.
- Identify visible symptoms from user reports, UI behavior, logs, APIs, monitoring, or tests.
- Identify the suspected failing boundary, such as frontend, backend, database, auth, infrastructure, deployment, integration, or cross-service flow.
- Assign a primary investigator and supporting specialists using the routing rules.
- Identify observations and patterns from the facts without jumping to conclusions.
- Generate multiple plausible hypotheses, such as permission mapping, missing data, migration issues, configuration mismatch, dependency failure, or a regression.
- Evaluate each hypothesis with supporting evidence, contradicting evidence, and missing evidence.
- Determine the most likely cause only when evidence supports it.
- Assign a confidence level: High, Medium, or Low.
- Recommend fixes and the next evidence to collect.
- Decide whether a formal RCA is needed.
Boundaries
investigate-issue= find evidence, isolate failing boundary, rank hypotheses.execute-code-change= modify files.generate-rca= write final formal RCA after evidence exists.- Do not auto-fix.
- Do not write formal RCA.
- Do not generate PDFs.
Rules
- Separate symptoms, facts, observations, hypotheses, evidence, and conclusions.
- Prefer code references, logs, database records, API responses, configuration, and deployment evidence.
- Do not present assumptions as facts.
- Do not fabricate missing evidence.
- It is valid to conclude:
Root cause could not be confirmed with the available evidence. - Do not write the formal RCA.
- Do not generate PDFs.
Required Output
# Investigation Report
## Summary
Brief summary of the issue.
## Symptoms
Visible symptoms reported by the user, system, logs, UI, API, or monitoring tools.
## Facts
Objective facts discovered.
## Observations
Analysis of the facts and patterns.
## Suspected Failing Boundary
The likely failing layer or boundary, such as frontend, backend, database, auth, infrastructure, deployment, integration, or cross-service flow.
## Primary Investigator
The specialist agent best suited to lead the investigation based on the evidence.
## Supporting Specialists
Other agents that should participate, if the issue crosses multiple domains.
## Hypotheses
List plausible causes. For each hypothesis, include:
- Supporting evidence
- Contradicting evidence
- Missing evidence
## Evidence
Code references, logs, database records, API responses, configuration settings, deployment history, screenshots, or other supporting information.
## Most Likely Root Cause
Provide only if the evidence supports it. If not confirmed, state:
> Root cause not yet determined.
## Confidence Level
High / Medium / Low
## Recommended Fixes
Potential remediation actions.
## Open Questions
Information still required to complete the investigation.
## RCA Needed?
Yes / No
Explain whether a formal RCA should be generated.
When not to use it
- →When the task is to write formal RCAs.
- →When the task is to generate PDFs.
- →When the task is to auto-fix an issue.
Limitations
- →It does not write formal RCAs.
- →It does not generate PDFs.
- →It does not auto-fix issues.
How it compares
This workflow systematically gathers evidence and evaluates hypotheses before determining a root cause, unlike an approach that might jump to conclusions or apply fixes without full understanding.
Compared to similar skills
investigate-issue side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| investigate-issue (this skill) | 0 | 1mo | No flags | Intermediate |
| analyzing-logs | 14 | 1mo | Review | Beginner |
| sentry | 10 | 4mo | Caution | Beginner |
| obsidian-incident-runbook | 3 | 1mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by work-w-chrstnrpj
View all by work-w-chrstnrpj →You might also like
analyzing-logs
jeremylongshore
Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.
sentry
openai
Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.
obsidian-incident-runbook
jeremylongshore
Troubleshoot Obsidian plugin failures with systematic incident response. Use when plugins crash, data is corrupted, or users report critical issues with your Obsidian plugin. Trigger with phrases like "obsidian crash", "obsidian plugin broken", "obsidian incident", "debug obsidian failure", "obsidian emergency".
obsidian-observability
jeremylongshore
Set up comprehensive logging and monitoring for Obsidian plugins. Use when implementing debug logging, tracking plugin performance, or setting up error reporting for your Obsidian plugin. Trigger with phrases like "obsidian logging", "obsidian monitoring", "obsidian debug", "track obsidian plugin".
langsmith-observability
davila7
LLM observability platform for tracing, evaluation, and monitoring. Use when debugging LLM applications, evaluating model outputs against datasets, monitoring production systems, or building systematic testing pipelines for AI applications.
network-info
UKGovernmentBEIS
Gather network configuration and connectivity information including interfaces, routes, and DNS