# Diagnose Errors Across Logs and Code

Distributed errors are difficult to trace across noisy logs, stack traces, deployments, and service boundaries. This skill organizes evidence into timelines, correlations, root-cause hypotheses, fixes, and recurrence monitoring.

## Install

```bash
npx skillstore add sickn33/error-detective
```

## Metadata

- Status: approved
- Slug: sickn33-error-detective
- Skillstore revision: r2
- Version status: missing
- Tree hash: 13addfd9e4b4532d4995d630ae0fef511b610cd420c21e93cc229d460572d65b
- Author: sickn33
- GitHub username: sickn33
- License: MIT
- Repository: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/error-detective
- Ref: 88a8e9a07f4c54ab105c1c41b6267c287146b07b
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands
- Quality score: 79
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/sickn33-error-detective
- Manifest: https://skillstore.pages.dev/api/skills/sickn33-error-detective/manifest

## Capabilities

- Extracts error patterns from logs and suggests regex patterns.
- Analyzes stack traces across programming languages to identify likely failure points.
- Correlates errors by time window, service, deployment, and cascading behavior.
- Builds evidence-based root cause hypotheses with likely code locations.
- Proposes monitoring queries, immediate fixes, and prevention strategies.

## Use Cases

- Investigate Production Incidents: Correlate service errors with deployments and time windows to identify likely causes and recovery actions.
- Debug Application Failures: Analyze stack traces and nearby code to prioritize likely defect locations and verification steps.
- Improve Error Monitoring: Turn recurring symptoms into extraction patterns, monitoring queries, and alerts that detect future failures.

## Prompt Templates

### Triage Basic Logs

```
Review these logs: [logs]. Identify recurring errors, summarize their frequency and timing, and list the three most likely causes.
```

### Analyze a Stack Trace

```
Analyze this stack trace and related code: [stack trace and code]. Identify the likely failure point, explain the evidence, and propose verification steps.
```

### Correlate Service Failures

```
Correlate these service logs and deployment events across [time window]. Build a timeline, identify cascading failures, and rank root-cause hypotheses by evidence.
```

### Investigate a Complex Incident

```
Investigate [incident] using the provided logs, traces, metrics, code changes, and topology. Recommend immediate mitigation, durable fixes, and recurrence detection queries.
```

## Limitations

- Requires relevant logs, stack traces, deployment history, or code context from the user.
- Produces hypotheses that require validation in the target environment.
- Does not access log platforms or production systems unless the host tool provides that access.
- Cannot replace testing, incident review, or specialist judgment for critical systems.

## Best Practices

- Provide timestamps, service names, deployment events, and full stack traces when available.
- Separate observed evidence from hypotheses and assign each hypothesis a verification step.
- Validate proposed fixes in a safe environment and add monitoring for recurrence.

## Anti Patterns

- Do not infer a root cause from one error line without surrounding context.
- Do not expose secrets, tokens, personal data, or unrestricted production logs.
- Do not treat correlation as proof without testing alternative explanations.

## Security Audit

- Audited at: 2026-07-23T23:46:14.309\+00:00
- Summary: The only static finding is a false positive: Markdown backticks identify a referenced file and do not execute a shell command. No prompt injection, data exfiltration intent, or other semantic security issue was found in SKILL.md.

## Stats

- Views: 84
- Downloads: 11
- Favorites: 0
- Popularity score: 0
