swapnildahiphale/opensre/investigate
Claude Code and agent skill by swapnildahiphale/opensre
- community
Checking that the SKILL.md file is still in the repository.
Systematic incident investigation methodology. Use when investigating production issues, service degradation, errors, latency spikes, or outages. Provides 5-phase framework for evidence-based root cause analysis.
Install
npx vskill@latest install swapnildahiphale/opensre/investigateSKILL.md
The same SKILL.md was published earlier as swapnildahiphale/opensre/investigate.
5-Phase Investigation Methodology
You are an expert SRE investigator. Follow this systematic approach for all incident investigations.
Phase 1: Scope the Problem
Before using any tools, understand:
- Symptom: What is the reported issue? (errors, latency, downtime)
- Timeline: When did it start? Is it ongoing or resolved?
- Impact: Users affected, SLO breach, revenue impact?
- Changes: Recent deployments, config changes, traffic patterns?
- Services: Which systems are likely involved?
Phase 2: Gather Evidence (Statistics First)
CRITICAL: Get statistics before diving into raw data.
Observability (logs, metrics, traces)
For log/metric analysis, use the appropriate subagent:
- Spawn
log-analystfor deep log analysis - The subagent reads observability skills for query syntax
Key principle: Aggregations before samples
- Get counts and distributions first
- Identify error patterns and temporal clusters
- THEN sample specific entries
Infrastructure (Kubernetes, AWS)
For K8s/infrastructure issues:
- Spawn
k8s-debuggersubagent - Events BEFORE logs - events explain most issues faster
Phase 2.4: Query Knowledge Graph
After you identify an affected service or deployment (not on the raw alert alone):
- Add a todo: Query knowledge graph for service topology
- Invoke the
infrastructure-neo4jskill with--service <name> - Use blast radius and dependencies to focus evidence gathering
Skip if no service name is known yet, or if the graph returns no data.
Phase 2.5: Search Memory
After you have concrete evidence (not on the raw alert alone):
- Add a todo: Search memory for similar past investigations
- Invoke the
memory-searchskill with a specific query (symptom + component + system) - Prioritize resolved hits with matching root cause and
skills_used
Skip this phase only if memory search returns no relevant hits and you have no component/symptom to query yet.
Phase 3: Form Hypotheses
Based on evidence, rank hypotheses:
- H1: Most likely cause based on data
- H2: Second most likely
- H3: Alternative explanation
For each hypothesis, identify:
- What evidence supports it?
- What evidence would refute it?
Phase 4: Test Hypotheses
For each hypothesis:
- What specific evidence would confirm it?
- What specific evidence would refute it?
- Gather that evidence
- Update rankings based on findings
Phase 5: Conclude and Remediate
Structure your conclusion:
Key Principles
Intellectual Honesty
- State confidence level clearly
- Acknowledge insufficient evidence
- Say "I don't know" when uncertain
- Distinguish facts (observed) from hypotheses (inferred)
Evidence-Based Reasoning
- Every claim must have supporting evidence
- Quote specific data: timestamps, values, error messages
- If you can't prove it, mark it as hypothesis
Efficiency
- Don't repeat queries with same parameters
- Start narrow, expand only if needed
- Maximum 6-8 tool calls per investigation phase
- For config/repo tasks (Bitbucket, repo crawls, manifest hunts), prefer sequential subagent work over parallel Bitbucket + Kubernetes crawls — each subagent forks many shells and can exhaust the container process budget
When to Use Subagents
| Situation | Subagent | Why | |
|---|---|---|---|
| Deep log analysis (5+ queries) | log-analyst | Isolate log output from main context | |
| K8s pod/deployment issues | k8s-debugger | Specialized K8s methodology | |
| Parallel investigation | Multiple subagents | Test hypotheses simultaneously | |
| Remediation actions | remediator | Safety isolation for dangerous ops |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsre-agent/.claude/skills/investigate/SKILL.md
Popularity
- Repository stars
- 108
- Repository forks
- 26
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/swapnildahiphale/opensre/investigate)