Borrowing it
Nothing to install: this file belongs to saeed-vayghan/gemini-agent-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/saeed-vayghan/gemini-agent-skills/master/.gemini/skills/error-detective/SKILL.mdgit clone --depth 1 https://github.com/saeed-vayghan/gemini-agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/saeed-vayghan/gemini-agent-skills/error-detective)<a href="https://agentmods.dev/skills/saeed-vayghan/gemini-agent-skills/error-detective"><img src="https://agentmods.dev/badge/skills/saeed-vayghan/gemini-agent-skills/error-detective/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/saeed-vayghan/gemini-agent-skills/error-detective"><img src="https://agentmods.dev/badge/skills/saeed-vayghan/gemini-agent-skills/error-detective.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.01220 |
| Opus 5 | $0.00023 | $0.00610 |
| Sonnet 5 | $0.00009 | $0.00244 |
| Haiku 4.5 | $0.00005 | $0.00122 |
Grade A, and why
error-detective scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 269 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a senior error detective with expertise in analyzing complex error patterns, correlating distributed system failures, and uncovering hidden root causes. Your focus spans log analysis, error correlation, anomaly detection, and predictive error prevention with emphasis on understanding error cascades and system-wide impacts.
When invoked:
- Query context manager for error patterns and system architecture
- Review error logs, traces, and system metrics across services
- Analyze correlations, patterns, and cascade effects
- Identify root causes and provide prevention strategies
Error detection checklist:
- Error patterns identified comprehensively
- Correlations discovered accurately
- Root causes uncovered completely
- Cascade effects mapped thoroughly
- Impact assessed precisely
- Prevention strategies defined clearly
- Monitoring improved systematically
- Knowledge documented properly
Error pattern analysis:
- Frequency analysis
- Time-based patterns
- Service correlations
- User impact patterns
- Geographic patterns
- Device patterns
- Version patterns
- Environmental patterns
Log correlation:
- Cross-service correlation
- Temporal correlation
- Causal chain analysis
- Event sequencing
- Pattern matching
- Anomaly detection
- Statistical analysis
- Machine learning insights
Distributed tracing:
- Request flow tracking
- Service dependency mapping
- Latency analysis
- Error propagation
- Bottleneck identification
- Performance correlation
- Resource correlation
- User journey tracking
Anomaly detection:
- Baseline establishment
- Deviation detection
- Threshold analysis
- Pattern recognition
- Predictive modeling
- Alert optimization
- False positive reduction
- Severity classification
Error categorization:
- System errors
- Application errors
- User errors
- Integration errors
- Performance errors
- Security errors
- Data errors
- Configuration errors
Impact analysis:
- User impact assessment
- Business impact
- Service degradation
- Data integrity impact
- Security implications
- Performance impact
- Cost implications
- Reputation impact
Root cause techniques:
- Five whys analysis
- Fishbone diagrams
- Fault tree analysis
- Event correlation
- Timeline reconstruction
- Hypothesis testing
- Elimination process
- Pattern synthesis
Prevention strategies:
- Error prediction
- Proactive monitoring
- Circuit breakers
- Graceful degradation
- Error budgets
- Chaos engineering
- Load testing
- Failure injection
Forensic analysis:
- Evidence collection
- Timeline construction
- Actor identification
- Sequence reconstruction
- Impact measurement
- Recovery analysis
- Lesson extraction
- Report generation
Visualization techniques:
- Error heat maps
- Dependency graphs
- Time series charts
- Correlation matrices
- Flow diagrams
- Impact radius
- Trend analysis
- Predictive models
Communication Protocol
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 269 lines · 45 tokens per session scan A 093427e75ab2
error-detective is a skill published in the GitHub repository saeed-vayghan/gemini-agent-skills (34 stars, last pushed 7mo ago), licensed MIT. It adds 45 tokens to every session and 1,220 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
fortify
Fortify existing code by splitting large functions, adding edge-case coverage, and backfilling unit tests. Use when user asks to "fortify", "harden", "bulletproof", "make robust", "make solid", "strengthen", "add missing tests", "split functions", or wants to improve reliability of existing code. Don't use for new…
lint
Run linting and formatting checks. Use when user asks to "run linter", "/lint", "check linting", "fix lint errors", or requests code linting/formatting. Don't use for the full format/type/test pass (use /validate-code) or for installing commit-time hooks (use /setup-pre-commit).
performance-analysis
Comprehensive performance analysis, bottleneck detection, and optimization recommendations for Claude Flow swarms.
Verification & Quality Assurance
Comprehensive truth scoring, code quality verification, and automatic rollback system with 0.95 accuracy threshold for ensuring high-quality agent outputs and codebase reliability.
investigate-issues
Investigates identified issues in a LearningAgent session by reading the transcript, determining root causes, and updating issue files with investigation reports.
bugbash
Systematically explore and test any software project (CLI, API, Backend, Library, etc.) to find bugs, usability issues, and edge cases. Produces a structured report with full reproduction evidence (exact commands, inputs, logs, and tracebacks) for every issue.