error-handling-review
Skill1 starsChanged 34 days agoMITView on GitHub
Review how code detects, propagates, reports and recovers from errors — exceptions, retries, timeouts, partial failure and user-facing messages. Use when reviewing service code, integrations, background jobs or after incidents caused by swallowed or misleading errors.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Smaui94/ClaudeSkillCollectiontheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Smaui94/ClaudeSkillCollection★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository105 other files it gives its agents.
- AGENTS.mdAGENTS.md
- instructions/AGENTS.mdAGENTS.md
- accessibility-reviewSkill
- agent-evaluationSkill
- agent-guardrailsSkill
- agenthub-routerSkill
- ai-red-teamingSkill
- ansible-reviewSkill
- api-designSkill
- api-integrationSkill
- architecture-decisionSkill
- backup-restoreSkill
- caching-strategySkill
- chaos-engineeringSkill
- ci-cd-pipeline-designSkill
- cloud-cost-optimizationSkill
- cloud-iam-least-privilegeSkill
- code-reviewSkill
- container-image-optimizationSkill
- cyber-resilience-actSkill
- database-migrationsSkill
- data-pipeline-reviewSkill
- data-privacySkill
- data-quality-checksSkill
- debugging-root-causeSkill
- dependency-auditSkill
- dependency-upgradeSkill
- disaster-recovery-drillSkill
- docker-hardeningSkill
- documentationSkill
- dora-readinessSkill
- dpiaSkill
- email-deliverabilitySkill
- embedding-model-selectionSkill
- eu-ai-act-readinessSkill
- eu-data-sovereigntySkill
- european-accessibility-actSkill
- event-driven-architectureSkill
- feature-flagsSkill
- frontend-reviewSkill
- gdpr-dsar-handlingSkill
- github-actionsSkill
- gitlab-ciSkill
- git-workflowSkill
- go-developmentSkill
- graphql-api-reviewSkill
- helm-chart-reviewSkill
- i18n-localizationSkill
- incident-responseSkill
- java-spring-reviewSkill
- kubernetes-reviewSkill
- linux-server-hardeningSkill
- llm-cost-analysisSkill
- llm-gateway-routingSkill
- llm-observabilitySkill
- llm-output-evaluationSkill
- llm-structured-extractionSkill
- load-testingSkill
- local-llm-servingSkill
- log-analysisSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Timeouts everywhere: Every network or IPC call has a timeout shorter than the caller's.
- Distinctive: line 21
Retries are safe: Only idempotent operations or those with idempotency keys.
- Distinctive: line 39
Every finding names the failure scenario and its consequence (data loss, duplicate charge, silent outage).
- Distinctive: line 47
Do not test failure handling by breaking shared or production dependencies.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Error Handling Review
Goal
Failures are visible, attributable and handled at the right layer; the system degrades predictably instead of corrupting data or hiding problems.
Inputs
- Code under review and its callers, logging and metrics conventions, retry and timeout configuration.
- Known failure modes of dependencies (network, database, third-party APIs, file system).
Review checklist
- No silent swallowing. Flag broad
catch/exceptblocks that log nothing, return defaults or continue. Each catch either handles a specific error meaningfully or re-raises with context. - Context preserved. Wrapped errors keep the cause (
raise … from err,%w,cause); messages include identifiers (order ID), not secrets or personal data. - Right layer. Low-level code reports; the boundary (HTTP handler, job runner) decides the user response, the retry and the alert.
- Timeouts everywhere. Every network or IPC call has a timeout shorter than the caller's; there are no unbounded waits.
- Retries are safe. Only idempotent operations or those with idempotency keys; exponential backoff with jitter; a maximum number of attempts; no retry on validation or authorization errors.
- Partial failure. Multi-step operations use transactions, compensation or an outbox; consider what state remains if the process dies between steps.
- Resource cleanup. Files, locks, connections and temporary data are released on error paths (
finally,with,defer). - User-facing errors. Clear, actionable, without stack traces or internal hostnames; a stable error code for support.
- Observability. Errors are logged once (not at every layer), with severity, a correlation ID and a metric suitable for alerting.
Example fixture
def charge(order):
try:
gateway.charge(order.total)
except Exception:
pass # swallowed: order shipped without payment
order.mark_paid()Expected findings: broad exception swallowed, state updated after failure, no timeout or idempotency key, no log or metric.
Acceptance checks
- Every finding names the failure scenario and its consequence (data loss, duplicate charge, silent outage).
- Recommendations specify which errors to catch, where, and what the caller observes.
- At least one negative test is proposed per critical path (dependency timeout, partial failure).
Output
Findings ordered by impact, a patch suggestion, and proposed failure-injection tests.
Safety
Do not test failure handling by breaking shared or production dependencies; use fakes, fault injection in disposable environments, or recorded responses.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

