error-detective – Other skill for AI agents
Search logs and codebases for error patterns, stack traces, and anomalies. Correlates errors across systems and identifies root causes.
Install the error-detective skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/error-detective-93344.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /error-detective – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/error-detective-93344.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $error-detective – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/error-detective-93344.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /error-detective – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/error-detective-93344.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /error-detective – then describe the task you want done.
SKILL.md content
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.
Related skills
- esop-equity-tracker – ESOP and equity grant register: grant date, shares granted, strike price, vesting start…
- reflect – Mid-conversation reflection skill that pauses execution and zooms out from detail-mode…
- regulatory-affairs-head – Senior Regulatory Affairs Manager for HealthTech and MedTech companies. Prepares FDA…
- events-activities – Event register: type, date and time, venue, organizer, audience, budget against actual…
- evidence-hygiene – Evidence-capture and PoC-redaction discipline for bug-bounty submissions
- expense-management – Expense claim register: claim id, employee and department, amount and tax, approver and…
- explain-like-socrates – Explains concepts using Socratic-style dialogue. Use when the user asks to explain…
- expo-dev-client – Build Expo app for development