thermiteau/maverick/mav-bp-error-handling

Claude Code and agent skill by thermiteau/maverick

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Error handling conventions for all applications. Covers error propagation, retry strategies, circuit breakers, graceful degradation, error boundaries, and typed errors. Applied when writing or reviewing error handling code.

Install

npx vskill@latest install thermiteau/maverick/mav-bp-error-handling

SKILL.md

The same SKILL.md was published earlier as thermiteau/maverick/mav-bp-error-handling.

Error Handling Standards

Maverick's hard rules for intentional, typed, resilient error handling.

Maverick's Rules

  • Never swallow silently — every catch handles, logs, or re-throws. An empty catch is a bug.
  • Catch at boundaries only — throw/return from low-level code, catch at service boundaries and the outermost handler. Catching at every layer duplicates logging and loses stack traces. No catch-and-re-throw without adding context.
  • Typed errors — every application error carries type (machine-readable classification), message, context (structured metadata), and cause (wrapped original). Never throw new Error("failed").
  • Log-level mapping: 4xx → `warn`, 5xx → `error` — client errors are expected (track volume, no alert unless it spikes); server errors require investigation and alert when persistent. Log levels and alerting per mav-bp-operability.
  • Retry policy — 3 attempts max (1 initial + 2 retries) unless configured otherwise; exponential backoff (base * 2^attempt) with jitter. Retry only transient failures: timeouts, 429, 502, 503, 504. Never retry 400/401/403/404 or non-idempotent operations without idempotency keys.
  • Never expose internals to clients — no stack traces, SQL/database messages, file paths, internal service names, or dependency versions in responses. Return a safe message, a machine-readable error type, and a request/correlation ID.
  • Critical paths must not depend on non-critical services — degrade the feature (visibly, and log/alert on degraded mode) rather than crash. Frontend: error boundaries around major UI sections with fallback UI and error reporting.
  • Fail fast on unrecoverable errors — configuration failures, corruption, programming errors: crash immediately with a clear message; do not attempt recovery.

Project Implementation Lookup

Check for docs/maverick/skills/error-handling/SKILL.md. If present, read it — it wins on specifics (library, config, conventions). If missing, proceed with these standards and note the gap in your summary.

Detecting Error Handling Issues in Code Review

PatternIssueFix
Empty catch blockSilently swallowed errorHandle, log, or re-throw
catch (err) { return null }Lost error contextPropagate the error or handle explicitly
throw new Error("failed")Untyped, no contextUse typed error with structured metadata
Retrying on 400/401/403Retrying permanent failuresOnly retry transient errors (429, 5xx, timeouts)
No retry on external HTTP callsFragile to transient failuresAdd retry with exponential backoff
Stack trace in API responseLeaking internalsReturn safe error with request ID only
catch at every layer in the call stackDuplicate handling/loggingCatch at the boundary, propagate elsewhere
Feature crashes app when dependency is downNo graceful degradationDegrade the feature, keep the app running
No error boundary around UI sectionsSingle component crashes pageWrap sections in error boundaries with fallback UI
Generic error message for all failuresPoor user experienceDistinguish client vs server errors

<!-- maverick-plugin-version: 5.3.1 -->

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/thermiteau/maverick/mav-bp-error-handling/badge)](https://verified-skill.com/skills/thermiteau/maverick/mav-bp-error-handling)

Something wrong with this skill or its page? Tell us.