跳到正文
Skillpedia
测试48k · #4544

error-detective

它能做什么

这个智能体会在系统日志(logs)和代码中搜索错误。它会把不同系统的信息和最近的改动联系起来,帮你弄清楚问题是由什么引起的。

适用场景

  • ✓出现错误,并且你手上有“stack trace”(错误详情)需要排查时。
  • ✓想梳理错误是从什么时候、以什么方式开始出现的。
  • ✓对比正常运行与出错时的情况,找出两者之间的差异。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/error-detective/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/error-detective/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在日志中搜索昨晚登录失败相关的错误。”

每周 5 个新技能,1 分钟读完。

工作原理

它会分析系统日志和代码,寻找错误规律和异常情况。然后尝试把这些错误与最近的系统或部署改动联系起来,找出根本原因。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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.
常见问题

什么是“logs”?

它们是记录系统或程序运行情况的文件,其中包括错误信息。

什么是“stack trace”?

它是一份详细的报告,展示了导致程序出错的一系列函数调用顺序。

什么是“根本原因”(root cause)?

它是问题发生的根本原因,而不只是表面上能看到的现象。

详情

作者的原始描述

Search logs and codebases for error patterns, stack traces, and anomalies. Correlates errors across systems and identifies root causes.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4544
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能