Skills error-handling-patterns
๐Ÿ“ฆ

error-handling-patterns

Content revision r2 Safe โš™๏ธ External commands๐ŸŒ Network access

Build Reliable Error Handling

Unhandled failures obscure root causes and weaken application reliability. This skill applies typed errors, retries, circuit breakers, cleanup, and graceful degradation across common programming languages.

Supports: Claude Codex Code(CC)
๐Ÿฅ‰ 78 Bronze

Install with my Agent

Copy this request to your Agent. It includes the canonical Skill page and manifest.

Agent request
Review the Skillstore skill "error-handling-patterns" from https://skillstore.io/skills/sickn33-error-handling-patterns.md and its manifest at https://skillstore.io/api/skills/sickn33-error-handling-patterns/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

Your Agent should still show its plan and request any confirmation required by the security policy.

Test it

Using "error-handling-patterns". A payment service retries every exception immediately and returns a generic failure.

Expected outcome:

  • Classify timeouts and rate limits as retryable; reject validation and authentication failures immediately.
  • Use bounded exponential backoff with jitter and record the final cause.
  • Add a circuit breaker and test open, half-open, and recovery states.

Using "error-handling-patterns". A TypeScript API leaks stack traces and uses different error shapes across routes.

Expected outcome:

  • Introduce typed application errors with stable codes and status mappings.
  • Return safe client messages while retaining stack traces in protected logs.
  • Test each error category and verify that internal details never reach responses.

Using "error-handling-patterns". An order workflow can charge a customer before a later database update fails.

Expected outcome:

  • Treat payment and order updates as a coordinated workflow with explicit partial-failure states.
  • Use idempotency keys and a compensation step for completed charges.
  • Record correlation details and test repeated requests, timeouts, and compensation failures.

Security Audit

Safe
v5 โ€ข 7/23/2026 Open versioned report

All 16 static findings are false positives. The backticks are Markdown references or JavaScript template literals, network calls are illustrative examples, and flagged identifiers are ordinary sample code. No prompt injection, exfiltration intent, or executable automation was found.

2
Files scanned
680
Lines analyzed
0
Review items
0
False positives ignored
No confirmed security findings were detected by the latest completed static and semantic audit. This does not prove the skill has no side effects.
Audited by: codex View Audit History โ†’
Share & cite this report

Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.

Open versioned report
Security Assessment

Copy report link

https://skillstore.io/skills/sickn33-error-handling-patterns/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown badge

[![Skillstore security assessment](https://skillstore.io/badges/skills/sickn33-error-handling-patterns/security.svg)](https://skillstore.io/skills/sickn33-error-handling-patterns?utm_source=security_passport_badge)

HTML badge

<a href="https://skillstore.io/skills/sickn33-error-handling-patterns?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-error-handling-patterns/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

Embed card

<iframe src="https://skillstore.io/embed/skills/sickn33-error-handling-patterns.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
Academic citations (APA ยท BibTeX ยท CFF)

APA citation

sickn33. (2026). error-handling-patterns security audit report (audit version 5) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-error-handling-patterns/audits/5

BibTeX citation

@techreport{sickn33-sickn33-error-handling-patterns-2026, author = {sickn33}, title = {error-handling-patterns security audit report (audit version 5)}, institution = {Skillstore}, year = {2026}, number = {5}, url = {https://skillstore.io/skills/sickn33-error-handling-patterns/audits/5}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "error-handling-patterns security audit report (audit version 5)" version: "unspecified" type: report authors: - name: "sickn33" date-released: "2026-07-23" url: "https://skillstore.io/skills/sickn33-error-handling-patterns/audits/5" identifiers: - type: other value: "skillstore:sickn33-error-handling-patterns:audit:5" description: "Skillstore immutable audit report identifier"

Compare variants

2 installable variants

Each author remains a separate installable skill. The recommended variant is ranked by Skillstore evidence.

Why this variant is first

Highest Skillstore Score
sickn33 Recommended Current

sickn33-error-handling-patterns

Skillstore Score 78
Evidence Confidence High
Skillstore usage 8
Updated

2026-08-21

wshobson-error-handling-patterns

Skillstore Score 77
Evidence Confidence High
Skillstore usage 9
Updated

2026-08-21

Skillstore Score

Why this score Evidence Confidence: High
55
Architecture
85
Maintainability
87
Content
69
Community
83
Spec Compliance

What You Can Build

Standardize API Errors

Define typed failures, stable error codes, safe client messages, and consistent status mappings for an application API.

Protect External Dependencies

Add bounded retries, timeouts, circuit breakers, and fallbacks around unreliable services without hiding the original cause.

Review Team Practices

Create shared guidance for logging, cleanup, error propagation, async failures, and focused reliability tests.

Try These Prompts

Add Basic Error Handling
Review this function and add clear validation, typed errors, cleanup, and useful messages. Explain each change and suggest focused tests.
Design API Errors
Design an error model for this API. Define categories, status mappings, stable codes, safe client messages, logging context, and tests.
Harden a Service Dependency
Refactor this service call with bounded retries, exponential backoff, timeout handling, and a circuit breaker. Preserve the original error context.
Audit Distributed Failure Handling
Audit this distributed workflow for partial failures and cascading risk. Propose idempotency, compensation, graceful degradation, aggregation, observability, and chaos-test scenarios.

Best Practices

  • Classify failures before choosing retry, fallback, propagation, or termination behavior.
  • Preserve the original cause and useful context while keeping sensitive details out of user-facing messages.
  • Verify failure paths with focused tests, cleanup checks, and observable recovery behavior.

Avoid

  • Do not catch broad exceptions unless the handler can recover, add context, or rethrow safely.
  • Do not retry validation, authentication, or other permanent failures.
  • Do not swallow async errors or return generic messages without preserving diagnostic context.

Frequently Asked Questions

Which programming languages does this skill cover?
It provides detailed patterns for Python, TypeScript, JavaScript, Rust, and Go.
Can it choose between exceptions and Result types?
Yes. It compares expected and unexpected failures, control-flow needs, and language conventions.
Does it implement retries and circuit breakers automatically?
No. It proposes patterns and code changes that require review, integration, and environment-specific testing.
Can it improve production error messages?
Yes. It separates safe user messages from diagnostic context and recommends stable error codes.
Does it support distributed system failures?
Yes. It covers retries, circuit breakers, graceful degradation, aggregation, and partial-failure analysis.
What information should I provide?
Provide the relevant code, language, failure symptoms, expected behavior, dependency constraints, and existing tests.

Developer Details

Author

sickn33

License

MIT

Skillstore revision

r2

Version notice

The author did not declare a version.

Ref

88a8e9a07f4c54ab105c1c41b6267c287146b07b

Maintenance freshness

7/26/2026

Usage

6 downloads ยท 136 views

File structure

๐Ÿ“ resources/

๐Ÿ“„ implementation-playbook.md

๐Ÿ“„ SKILL.md