SkillsReviewed · wshobson

Error Handling Patterns

Error Handling Patterns is an AI assistant skill for developers improving application reliability, but its illustrative code requires review and adaptation. It covers exceptions, explicit success-or-error values, cleanup, retries, circuit breakers and fallbacks, with examples in Python, TypeScript/JavaScript, Rust and Go. Runtime correctness and assistant compatibility are unassessed.

Researched 17 Nov 2026

In short.

Error Handling Patterns is an AI assistant skill for developers designing failure handling, but its worked examples contain gaps that need application-specific review. Its entry file explains error-handling choices and links to a detailed reference spanning four language groups. Useful material includes exception hierarchies, error propagation, cleanup and recovery patterns. Concrete limitations include unchecked TypeScript type assertions, fallbacks that discard valid false-like values, and circuit-breaker recovery counters that can retain successes across failures. Nothing was executed or compiled; installation compatibility, performance and reliability improvements are unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

The supplied manifest marks the selected folder as completely captured. Coverage includes plugins/developer-essentials/skills/error-handling-patterns/SKILL.md and plugins/developer-essentials/skills/error-handling-patterns/references/details.md, plus the repository-root LICENSE as a related notice outside the selected folder. Both skill files are substantive resource files. Other repository skills, plugin infrastructure, assistant hosts and external dependencies are outside this scope. Nothing was installed, executed or compiled; runtime correctness, integration, concurrency, performance and production behavior remain unassessed.

The overview

Identity

Error Handling Patterns is a text-based assistant skill in the wshobson/agents repository, under plugins/developer-essentials/skills/error-handling-patterns. Its SKILL.md entry contains a name, description, use cases and guidance, and links to references/details.md for worked examples.

The original resource location is [https://github.com/wshobson/agents/tree/main/plugins/developer-essentials/skills/error-handling-patterns]. The supplied snapshot is pinned to revision 9c61ab243def98f72da12abd41cfcf5bcd91af9d.

Assessment

The resource offers a useful starting point for discussing how an application should report and recover from failures. It connects general rules, such as preserving error context and catching failures where recovery is possible, to concrete language examples.

Its strongest use is guided implementation or code review with developer oversight. Several snippets depend on missing application components, and some recovery examples have correctness caveats. The supplied material establishes breadth of guidance, but provides no execution results, compatibility matrix or measured improvement in reliability.

Users

The skill is relevant to developers implementing API failures, validation, external-service calls and resource cleanup. Beginners can use it to understand exceptions and explicit success-or-error return values. Experienced developers can use the examples to discuss error boundaries, cause preservation and recovery policies, while checking each pattern against their application's concurrency and data-consistency requirements.

Capabilities

The entry file distinguishes exceptions, Result types, error codes and optional values. It discusses recoverable and unrecoverable failures, meaningful messages, cleanup, logging and avoiding swallowed errors.

The reference adds Python exception hierarchies, transaction cleanup and synchronous retry; TypeScript custom errors, Result values and asynchronous handling; Rust Result, Option and error conversion; and Go error returns, wrapping and inspection. Cross-language patterns include a Python circuit breaker, TypeScript error aggregation and Python fallbacks. These are instructional examples, with no automatic enforcement supplied by the folder.

Using it

Requirements

Assistant use requires a host that can consume the skill's Markdown instructions and access its relative reference file. No supported host, model, host version, installation command or hardware minimum is specified. The documents can also be read directly.

Adapting the snippets requires the relevant language tooling and application dependencies. Examples refer to objects such as database sessions, loggers, network clients and application-specific types that are not supplied as a complete project. Dependency versions and runtime compatibility are unknown.

Mechanism

The entry file provides concise guidance and directs readers to a longer reference when more detail is needed. An assistant can use that text as context when proposing or reviewing code; actual error handling comes from the resulting application code.

For example, the retry decorator repeats selected failures with increasing waits, while the circuit breaker tracks failures and switches between normal operation, rejecting calls and trying recovery. These mechanisms are shown as code examples; the skill itself does not operate a retry service or monitor running applications.

Setup

Obtain SKILL.md and references/details.md from the same source revision, preserving their relative paths. Keep the repository LICENSE with redistributed copies. The supplied folder contains no documented installation command or confirmed integration procedure.

For assistant use, follow the chosen host's documented method for loading skills and verify that it can access the reference file. For direct reading, start with SKILL.md and consult the reference for the relevant language or recovery pattern. No installation or integration was performed.

Example

The Python order-processing example validates an order ID, loads an order, charges a payment service and saves completion. It wraps payment failures with service and order metadata, preserving the original exception through Python's exception chaining. Unexpected failures are logged and wrapped in an application error.

This illustrates error context and propagation, but leaves a practical gap: charging happens before saving, with no shown idempotency or recovery procedure if the save fails. A developer using this example for checkout code would need to design that behavior before deployment. The example was not executed.

Assessment & evidence

Limitations

The TypeScript parseJSON<T> example asserts the parsed value's type without validating its structure. Successful JSON parsing therefore does not establish that required fields exist. The custom error example also calls Error.captureStackTrace without a compatibility guard; supported environments are not specified.

The Python multiple-fallback example chains results with or, so valid values such as zero, False or an empty collection trigger another fallback. Its helper catches every Exception and returns None, losing the failure details.

The circuit breaker does not clear success_count when a half-open call fails, allowing recovery successes to accumulate across intervening failures. Its counters have no shown concurrency protection. The retry example uses blocking time.sleep and provides no jitter, overall deadline or idempotency policy.

These observations come from the supplied text. No code was executed or compiled, and runtime behavior, concurrent behavior, performance and host compatibility remain unassessed.

Reasoning

The resource's practical value is connecting failure-handling choices across languages. Explicit Result values make expected failures visible to callers, while exceptions and wrapped errors carry failures through calling layers. The examples make those choices concrete, but recovery behavior still depends on the application: retrying an operation, returning an empty list or substituting a default can each change what a user receives. Those decisions require domain-specific review.

Alternatives

For a narrowly scoped task, the native mechanisms illustrated here may be sufficient: Python exceptions and context managers, Rust Result and Option, or Go error returns and wrapping. The TypeScript examples offer both thrown errors and explicit Result values.

The supplied documents contain no evaluated comparison with other assistant skills, frameworks or dedicated retry and circuit-breaker libraries. Their relative quality, compatibility and costs are not assessed.

Evidence

The supplied source consists of the skill entry file, its detailed reference and the repository-level MIT licence, all at revision 9c61ab243def98f72da12abd41cfcf5bcd91af9d. The documents support analysis of the instructions and visible examples, but contain no execution receipts or benchmark results.

The pinned entry file is available at [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/plugins/developer-essentials/skills/error-handling-patterns/SKILL.md]. The reference is available at [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/plugins/developer-essentials/skills/error-handling-patterns/references/details.md]. The licence is available at [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/LICENSE].

Access & freshness

Costs

The supplied MIT licence grants permission to use and redistribute the material without a stated licence fee. The skill files provide no assistant subscription prices, API rates or operating-cost estimates. Any charges from a chosen assistant or application service, and the effort needed to adapt the examples, are unknown.

Rights

The captured repository LICENSE is the MIT License, with copyright attributed to Seth Hobson, 2024. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices remain in copies or substantial portions. It also disclaims warranties and liability. No additional licence notice appears in the two supplied skill documents.

Freshness

The supplied snapshot was captured on 17 November 2026 at 08:35:01.001 UTC. That is a capture timestamp, not an established authoring date or release date. Whether the original main-branch resource has changed since this revision is unknown. Current dependency compatibility and upstream fixes are also unknown.

Actions

Start with one application boundary, such as an upstream API call, and define which failures callers should receive, which can be retried and which require immediate reporting. Adapt only the relevant examples and supply the missing application dependencies.

Before using the code in a running application, validate parsed data, define acceptable fallback values, review circuit-breaker recovery transitions and check whether repeated operations are safe. Verify compilation and failure behavior in the intended environment. Preserve the source revision and MIT notices when copying the material.

Evidence for this report

LICENSEnotice · checked 2026-11-17