/ce:handling-errorsfrom ce
Prevents silent failures and context loss in error handling. Covers error categorization, writing actionable error messages, and fail-fast vs degrade-gracefully patterns.
Ships in ce. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
If the current repo has its own rules/skills covering this topic (check .claude/rules/ and repo CLAUDE.md), those take precedence. Apply this skill where they're silent.
| Type | Examples | Handling |
|---|---|---|
| Expected | Validation, Not found, Unauthorized | Return Result type, log info |
| Transient | Network timeout, Rate limit | Retry with backoff, log warn |
| Unexpected | Null reference, DB crash | Log error, show support ID |
| Critical | Auth down, Payment gateway offline | Circuit breaker, alert |
An error message should tell the reader what happened, why, and what they can do next. The reader may be a developer, an end user, or an agent calling your API or tool, and an agent can only recover from what the message says. A message like "invalid input" forces them to guess, retry blindly or give up.
| Instead of | Write |
|---|---|
Error: invalid input | Invalid date "2026-13-01": month must be 1-12. Use YYYY-MM-DD. |
Upload failed | Upload failed: report.pdf is 14 MB and the limit is 10 MB. Compress it or split it. |
Request failed | GET /v1/orders returned 429. Retry after 30s (see the Retry-After header). |
For text an end user will read, also avoid blame ("You entered...") and internal details, and use the writer skill's UX Writer persona. Developers get the full detail in logs; users get the short version with the next step.
Fail fast for critical dependencies:
await connectToDatabase(); // Throws on failure - app can't run without it
Degrade gracefully for optional features:
const prefs = await loadPreferences(userId).catch(() => DEFAULT_PREFS);
// Bad: logging at every layer writes the same error 3x
async function fetchData() {
try { return await fetch(url); }
catch (e) { console.error("Fetch failed:", e); throw e; }
}
// Good: log once where the error is handled
async function fetchData() {
const response = await fetch(url);
if (!response.ok) throw new Error(`HTTP ${response.status}`);
return response;
}
// Top level logs the error once
| Pattern | Problem | Fix |
|---|---|---|
| Empty catch blocks | Hides errors | Log or re-throw |
return false on error | Loses context | Return Result type |
| Generic "Error" messages | Undebuggable | Say what, why and the next step |
| Logging same error at each layer | Log pollution | Log once at boundary |
Bare except: / catch (e) all | Catches system signals | Catch specific types |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/architecting-systemsGuides clean, scalable system architecture during the build phase. Use when designing modules, defining boundaries, structuring projects, managing dependencies, or preventing tight coupling and brittleness as systems grow./deliverTakes a feature, plan or RFC to production-ready code merged to main, with emphasis on architecture and code quality. Adopts or writes a phased plan, has it critiqued against the codebase, scaffolds contracts, runs parallel subagent lanes, lands and tags each phase on a feature branch as it finishes, reviews every lane with a capped review cycle, and merges to main after approval. Use when asked to execute, implement or ship a plan or RFC, for "have DA review it, then implement", "implement, review and merge to main", or for work that needs full review depth. For timeboxed or prototype work, use sprint./npx claudepluginhub rileyhilliard/claude-essentials --plugin ceOther plugins' skills for the same job