Token导航 LogoToken导航

Agent Skill · 研究检索

codeprobe-error-handling(代码探针错误处理)

codeprobe-error-handling 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

codeprobe-error-handling 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为可写文件;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 72,863。

总安装 186周安装 8GitHub Stars 2下载 65核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:codeprobe-error-handling(代码探针错误处理)
来源仓库:https://github.com/nishilbhave/codeprobe-claude
仓库路径:skills/codeprobe-error-handling
安装命令:
npx skills add https://github.com/nishilbhave/codeprobe-claude --skill codeprobe-error-handling
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nishilbhave/codeprobe-claude --skill codeprobe-error-handling

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

codeprobe-error-handling 检查错误处理缺失、异常吞没与外部调用无防护等问题。适用于强化应用健壮性,确保 API 调用、数据库操作具备适当容错机制。识别空 catch 块、未重抛异常等情况,提出明确修复路径。安装前需确认是否允许读取日志与源码以定位潜在风险点。

建议结合项目框架特性选择匹配的检测规则,提高准确性。

来源仓库内路径:skills/codeprobe-error-handling

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/nishilbhave/codeprobe-claude --skill codeprobe…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要可写文件,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

codeprobe-error-handling 怎么安装?

在终端执行 npx skills add https://github.com/nishilbhave/codeprobe-claude --skill codeprobe-error-han…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

codeprobe-error-handling 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

codeprobe-error-handling 需要什么权限?

权限级别是可写文件。该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

codeprobe-error-handling 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

codeprobe-error-handling 用的人多吗?

公开数据是累计安装 186 次,近一周安装 8 次,下载 65 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

codeprobe-error-handling 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
codeprobe-error-handling

代码探针错误处理 · 本页

1862可写文件未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Standalone Mode

If invoked directly (not via the orchestrator), you must first:

  1. Read ../codeprobe/shared-preamble.md for the output contract, execution modes, and constraints.
  2. Load applicable reference files from ../codeprobe/references/ based on the project's tech stack.
  3. Default to full mode unless the user specifies otherwise.

Error Handling & Resilience Checker

Domain Scope

This sub-skill detects error handling and resilience issues across these categories:

  1. Swallowed Exceptions — Empty catch blocks, catch-and-log-only without rethrow/handle
  2. Missing Error Handling — External API calls without try/catch, unhandled promise rejections
  3. Error Information — Generic error messages, leaking internals, missing structured responses
  4. Retry & Circuit Breaker — No timeout on external calls, no retry for transient failures
  5. Validation — Missing input validation, implicit null assumptions, type coercion bugs
  6. Transaction Safety — Multi-step DB operations without transactions, missing rollback
  7. Logging — No logging on critical paths, missing correlation IDs

What It Does NOT Flag

  • Sensitive data in logs — covered by codeprobe-security (SEC prefix). This sub-skill flags *missing* logging and *structural* issues like no correlation IDs, not data leakage.
  • Test files — test exception handling follows different patterns and is expected to be simpler.
  • Framework-generated exception handlers (e.g., Laravel's Handler.php, Next.js error boundaries that are intentionally minimal) — these are scaffolded defaults, not developer oversights.
  • CLI scripts with intentionally simple error handling (print + exit) — command-line tools often use a valid pattern of printing an error and exiting with a non-zero code.
  • Catch blocks that deliberately swallow specific known-harmless exceptions with a comment explaining why — if the developer documented the rationale, respect the decision.
  • Issues that are primarily security vulnerabilities (e.g., authentication bypasses, injection, data exposure) even if they also have error handling implications — these are covered by codeprobe-security. If both sub-skills flag the same location, the orchestrator will deduplicate and keep the security finding as primary.

Detection Instructions

Swallowed Exceptions

ID PrefixWhat to DetectHow to DetectSeverity
ERREmpty catch blocksSearch for catch blocks with empty body, only pass, only // ignored, or only a comment. In JS/TS: catch (e) {}. In PHP: catch (\Exception $e) {}. In Python: except: pass or except Exception: pass.Major
ERRCatch-log-only without handlingFind catch blocks that only contain a log/print statement but don't rethrow, return an error, or take any recovery action. The exception is swallowed after logging.Minor
ERROverly broad exception catchingcatch (\Exception $e), catch (Exception e), bare except: in Python, catch (e) catching all errors. Flag when a more specific exception type should be caught.Major

Missing Error Handling

ID PrefixWhat to DetectHow to DetectSeverity
ERRExternal API calls without try/catchSearch for HTTP client calls (Guzzle, axios, fetch, requests, HttpClient), payment SDK calls (Stripe, PayPal), AWS SDK calls, and other external service integrations. Flag when these calls are NOT wrapped in try/catch or.catch().Major
ERRUnhandled promise rejectionsSearch for async functions or promise chains without .catch() or surrounding try/catch. Look for floating promises (async call without await). In Node.js, check for missing unhandledRejection handler.Major
ERRFile I/O without error handlingfile_get_contents, fopen, fs.readFile, open() (Python) without try/catch for IOError/FileNotFoundError.Minor

Error Information

ID PrefixWhat to DetectHow to DetectSeverity
ERRGeneric error messagesAPI responses returning only "Something went wrong", "Internal server error", or similar without error codes or actionable detail for the client.Minor
ERRLeaking internal errors to API consumersException messages, stack traces, SQL errors, or file paths exposed in API JSON/HTML responses. Check error handling middleware configuration.Major
ERRMissing structured error responsesAPI endpoints returning errors without consistent structure (no error code field, no message field, inconsistent formats across endpoints).Minor

Retry & Circuit Breaker

ID PrefixWhat to DetectHow to DetectSeverity
ERRExternal service calls without timeoutHTTP client calls without timeout configuration. Guzzle without timeout option, axios without timeout, requests without timeout param, fetch without AbortController.Major
ERRNo retry for transient failuresExternal API calls that could fail transiently (HTTP 429, 503, network errors) with no retry mechanism.Minor
ERRNo circuit breaker for cascading failuresService-to-service calls in microservice architectures with no circuit breaker or fallback pattern.Suggestion

Validation

ID PrefixWhat to DetectHow to DetectSeverity
ERRMissing input validation before processingFunctions that accept external input (request params, file contents, API payloads) and use them directly without validation.Major
ERRImplicit null assumptionsAccessing properties or calling methods on values that could be null/undefined without null checks. Chaining . access on possibly-null return values.Minor
ERRType coercion bugsPHP == instead of === for security-sensitive comparisons. JS == instead of ===. Implicit type conversions that could produce unexpected results.Minor

Transaction Safety

ID PrefixWhat to DetectHow to DetectSeverity
ERRMulti-step DB ops without transactionsMultiple INSERT/UPDATE/DELETE queries in sequence (same method) without DB::transaction(), atomic(), BEGIN/COMMIT, or equivalent. If any step fails, data is left in an inconsistent state.Critical
ERRTransaction without proper rollbackTransaction blocks that catch exceptions but don't rollback, or that have code after the transaction that assumes success without checking.Major

Logging

ID PrefixWhat to DetectHow to DetectSeverity
ERRNo logging on critical failure pathsCatch blocks in critical business logic (payment, auth, order processing) that don't include any logging. Failures happen silently.Major
ERRMissing correlation/request IDsLog statements in request-handling code without correlation ID, request ID, or trace ID. Makes debugging distributed issues impossible.Minor

ID Prefix & Fix Prompt Examples

All findings use the ERR- prefix, numbered sequentially: ERR-001, ERR-002, etc.

Fix Prompt Examples

  • "Wrap the Stripe API call in PaymentService@charge (line 55) in a try/catch for \Stripe\Exception\ApiErrorException. Log the error with context ($orderId, $amount) and throw a domain-specific PaymentFailedException with a user-friendly message."
  • "Add DB::transaction() around the order creation flow in OrderService@create (lines 40-65) which currently creates an Order, OrderItems, and Payment record in three separate queries. If any step fails, all should roll back."
  • "Replace the empty catch block at app/Services/NotificationService.php:88 with proper error handling: log the exception with notification context, then decide whether to rethrow (critical notification) or swallow with a metric (non-critical)."
  • "Add timeout and retry configuration to the HTTP client call at ExternalApiClient.php:30. Use ->timeout(10)->retry(3, 100) for the Guzzle request to handle transient network failures."

平台分布

Codex

33.56%
按下载量换算22

Claude

28.24%
按下载量换算18

Cursor

18.46%
按下载量换算12

Gemini CLI

9.98%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills