技能 error-debugging-error-analysis
📦

error-debugging-error-analysis

安全

有效调试生产环境错误

此技能帮助开发者快速识别生产系统错误的根本原因,并实施正确的错误处理和可观测性解决方案。

支持: Claude Codex Code(CC)
🥉 72 青铜
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“error-debugging-error-analysis”。 Analyze this error: NullPointerException at UserService.java:45

预期结果:

根据堆栈跟踪,NullPointerException源自UserService.java:45。这通常意味着传递了null值给期望非null参数的方法。建议方法:1)检查调用链以找到传递null的位置,2)在入口点添加null验证,3)考虑使用Optional类型使nullability显式化。

正在使用“error-debugging-error-analysis”。 How do I set up distributed tracing for my microservices?

预期结果:

对于分布式跟踪,我建议:1)使用OpenTelemetry进行供应商中立的检测,2)在所有服务头中实施关联ID,3)设置跟踪收集器(Jaeger或Tempo),4)在服务边界添加跟踪上下文传播。以下是中间件代码示例...

安全审计

安全
v1 • 2/24/2026

This is an educational debugging and error analysis skill. Static findings flagged example code patterns in documentation (shell commands, network calls, environment variables) but these are legitimate educational examples for observability implementation. No malicious intent detected. All flagged patterns are standard debugging and logging practices documented for teaching purposes.

2
已扫描文件
1,194
分析行数
4
发现项
1
审计总数
中风险问题 (3)
Documentation Contains Example Shell Commands
The implementation playbook contains example shell commands (backtick execution) used in debugging tutorials. These are educational examples, not actual code execution within the skill.
Documentation Contains Example Network Calls
The skill contains example HTTP client code for observability tool integration (Sentry, DataDog). These are standard integration patterns for error tracking.
Documentation Contains Environment Variable Examples
Example code shows environment variable access for configuring observability SDKs. Standard practice for configuration management.
低风险问题 (1)
Static Scanner Flagged System Commands in Debugging Context
Commands like git, shell operations mentioned in debugging tutorials are legitimate debugging instructions.
审计者: claude

质量评分

38
架构
100
可维护性
87
内容
50
社区
88
安全
91
规范符合性

你能构建什么

生产事件响应

在事件期间分析生产错误,识别根本原因,并实施即时修复和回滚计划。

调试分布式系统

使用关联ID、分布式跟踪和日志聚合跨微服务跟踪错误。

建立可观测性

为应用程序实施全面的错误跟踪、日志记录和监控。

试试这些提示

基本错误分析
Analyze this error message and stack trace. Identify the likely root cause and suggest fixes: $ERROR_MESSAGE
生产调试
Help me debug a production issue. The error is occurring in $SERVICE_NAME. Here are the relevant logs: $LOGS
可观测性实施
I want to set up error tracking for my $LANGUAGE application. What are the best practices for $TOOL_NAME integration?
根本原因分析
We are experiencing $ERROR_TYPE errors in our system. Walk me through the systematic debugging process to find the root cause.

最佳实践

  • 在提出修复方案之前,始终在受控环境中重现错误
  • 使用带关联ID的结构化日志记录来跨服务跟踪请求
  • 实施错误边界和优雅降级以防止级联故障

避免

  • 不进行适当日志记录和警报就忽略错误
  • 在错误消息或日志中硬编码敏感数据
  • 捕获异常但不采取行动或记录它们

常见问题

此技能能否修复我生产系统中的错误?
不,此技能提供分析和建议。它无法直接修改您的代码或系统。您必须自己实施任何建议的修复。
进行错误分析时我应该提供哪些信息?
提供错误消息、堆栈跟踪、相关的日志条目以及错误发生时的上下文。包括您注意到的任何错误模式。
此技能是否适用于所有编程语言?
是的,调试原则适用于任何语言。技能中的代码示例涵盖Node.js、Python、Go、Java和其他语言。
此技能能否帮助解决性能问题?
是的,此技能涵盖内存泄漏、性能分析和资源耗尽错误。它包括调试慢查询和CPU峰值的技术。
此技能如何处理日志中的敏感数据?
此技能包含从日志中删除 secrets 和 PII 的最佳实践。演示如何在错误跟踪工具中配置清理。
此技能对前端错误有用吗?
是的,它涵盖使用浏览器DevTools进行前端调试、React中的错误边界以及使用Sentry RUM进行前端错误跟踪。