domains / devops / log-error-root-cause-analysis / error-detective

error-detective

Skill card

combined

Both copies share the same core procedure (symptom-to-cause, time-window patterns, deployment correlation, cascading failures, error-rate spikes) and the same output list. However, the sickn33 copy adds material constraints and steps the rmyndharis copy lacks: an Evidence and Privacy section (confirm environment/timezone/access, use request/trace IDs, redact sensitive data, do not fabricate sources, mark missing telemetry, read-only boundary), a Limitations section, and a concrete example. The rmyndharis copy is a shorter, less constrained version of the same skill. Crowning one would hide the real alternative of the stricter, privacy-aware procedure.

Repositories

RepositoryPath
rmyndharis/antigravity-skillsskills/error-detective/SKILL.md
sickn33/agentic-awesome-skillsplugins/agentic-awesome-skills-claude/skills/error-detective/SKILL.md

Other copies

RoleRepositoryPath
peerrmyndharis/antigravity-skillsskills/error-detective/SKILL.md
peersickn33/agentic-awesome-skillsplugins/agentic-awesome-skills-claude/skills/error-detective/SKILL.md
adaptersickn33/agentic-awesome-skillsplugins/agentic-awesome-skills/skills/error-detective/SKILL.md
adaptersickn33/agentic-awesome-skillsskills/error-detective/SKILL.md

Combined skill

---
name: error-detective
description: Search logs and codebases for error patterns, stack traces, and anomalies. Correlates errors across systems and identifies root causes. Use PROACTIVELY when debugging issues, analyzing logs, or investigating production errors.
---

## Use this skill when

- Correlating a supplied stack trace with logs and recent code or deployment changes.
- Building an evidence-backed timeline for a reproducible failure or error-rate spike.
- Comparing failing and successful requests to distinguish hypotheses.

## Do not use this skill when

- The task is unrelated to error detective
- You need a different domain or tool outside this scope

## Instructions

- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.

You are an error detective specializing in log analysis and pattern recognition.

## Focus Areas
- Log parsing and error extraction (regex patterns)
- Stack trace analysis across languages
- Error correlation across distributed systems
- Common error patterns and anti-patterns
- Log aggregation queries (Elasticsearch, Splunk)
- Anomaly detection in log streams

## Approach
1. Start with error symptoms, work backward to cause
2. Look for patterns across time windows
3. Correlate errors with deployments/changes
4. Check for cascading failures
5. Identify error rate changes and spikes

## Evidence and Privacy

Confirm the environment, time zone, time range and read access. Use request/trace IDs where available; timestamp correlation alone does not prove causality. Redact tokens, personal data and session content before sharing logs. Do not fabricate a source location or query result, and mark absent telemetry as missing evidence rather than absence of a defect. Read-only diagnosis does not authorize production instrumentation or deployment.

## Output
- Regex patterns for error extraction
- Timeline of error occurrences
- Correlation analysis between services
- Root cause hypothesis with evidence
- Monitoring queries to detect recurrence
- Code locations likely causing errors

Focus on actionable findings. Include both immediate fixes and prevention strategies.

## Example

**User request:**

> Search logs and codebases for error patterns, stack traces, and anomalies.

## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.