error-handling

error-handling is a skill for Claude Code from CloudAI-X/claude-workflow-v2. It costs 57 tokens per session (3,202 once invoked), scanned A, original, MIT.

A set of software patterns for handling failures and observing applications. It covers logging, retries, circuit breakers, error boundaries, and graceful fallback behavior.

In plain words
What is it for?
Designing error handling, structured logs, retry policies, circuit breakers, error tracking, and user-facing error messages.
Why use it?
It gives developers a way to classify failures, respond consistently, and understand problems after deployment.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the project-starter plugin — 14 skills shipped together , and of project-starter

Good fit Designing error handling, structured logs, retry policies, circuit breakers, error tracking, and user-facing error messages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cloudai-x/claude-workflow-v2/error-handling
About the project

Project Starter is a workflow plugin that equips coding agents with specialized subagents, reusable skills, commands, hooks, and output styles for software projects. It is for developers who want structured assistance with tasks such as planning, debugging, code review, security, and automation across several coding-agent platforms. Catalogue add-ons are components of its own workflow.

CloudAI-X/claude-workflow-v2 · 1,423 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CloudAI-X/claude-workflow-v2 --skill error-handling
Clone the repo
git clone --depth 1 https://github.com/CloudAI-X/claude-workflow-v2

Made for: Claude Code.

Or install project-starter, the plugin that ships this one along with the rest of its 14 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for error-handling

README.md
[![agentmods](https://agentmods.dev/badge/skills/cloudai-x/claude-workflow-v2/error-handling/github.svg)](https://agentmods.dev/skills/cloudai-x/claude-workflow-v2/error-handling)
Your own site
<a href="https://agentmods.dev/skills/cloudai-x/claude-workflow-v2/error-handling"><img src="https://agentmods.dev/badge/skills/cloudai-x/claude-workflow-v2/error-handling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for error-handling

Your own site · 80×15
<a href="https://agentmods.dev/skills/cloudai-x/claude-workflow-v2/error-handling"><img src="https://agentmods.dev/badge/skills/cloudai-x/claude-workflow-v2/error-handling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,202 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 351
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.03202
Opus 5.5 $0.00023 $0.01281
Sonnet 5.5 $0.00011 $0.00640
Haiku 4.5 $0.00006 $0.00320

Measured 1mo ago against content hash 04dc2f1131ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

error-handling scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/error-handling/SKILL.md · 481 lines

How it starts

The opening of the file, as written. The whole thing — 481 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Error Handling & Observability

When to Load

  • Trigger: Try/catch patterns, retry logic, error responses, circuit breakers, structured logging
  • Skip: No error handling or observability involved in the current task

Error Handling Workflow

Copy this checklist and track progress:

Error Handling Progress:
- [ ] Step 1: Define error taxonomy (categories and severity)
- [ ] Step 2: Implement error handling by layer
- [ ] Step 3: Set up structured logging
- [ ] Step 4: Add retry and circuit breaker patterns
- [ ] Step 5: Configure error tracking service
- [ ] Step 6: Define user-facing error messages
- [ ] Step 7: Validate against anti-patterns checklist

Error Handling Patterns by Language

JavaScript / TypeScript

// Custom error hierarchy
class AppError extends Error {
  constructor(
    message: string,
    public statusCode: number = 500,
    public code: string = "INTERNAL_ERROR",
    public isOperational: boolean = true,
  ) {
    super(message);
    this.name = this.constructor.name;
  }
}
class NotFoundError extends AppError {
  constructor(resource: string, id: string) {
    super(`${resource} with id ${id} not found`, 404, "NOT_FOUND");
  }
}
class ValidationError extends AppError {
  constructor(public errors: Record<string, string[]>) {
    super("Validation failed", 400, "VALIDATION_ERROR");
  }
}

// WRONG: Swallowing errors silently
try {
  await saveUser(data);
} catch (e) {
  // nothing here -- bug hides forever
}

// WRONG: Catching and re-throwing without context
try {
  await saveUser(data);
} catch (e) {
  throw e; // pointless try/catch
}

// CORRECT: Add context, handle or propagate
try {
  await saveUser(data);
} catch (error) {
  if (error instanceof ValidationError) {
    return res.status(400).json({ errors: error.errors });
  }
  logger.error({ err: error, userId: data.id }, "Failed to save user");
  throw new AppError("Unable to save user", 500, "USER_SAVE_FAILED");
}

Express Global Error Handler

Read the full file on GitHub · 481 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 04dc2f1131ab
  2. 3mo ago First seen · 481 lines · 57 tokens per session scan A f6b2830f6e47

Subscribe to this mod's changes

error-handling is a skill published in the GitHub repository CloudAI-X/claude-workflow-v2 (1,423 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 3,202 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

error-handling compared with skills from other repositories

error-handling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
error-handlingCloudAI-X/claude-workflow-v2Skill1.4k1mo agoMITA57Claude Code
diagnose-backend-bugQoderAI/better-harnessSkill2.5k19d agoMITA87Claude Code, Codex
chisle-auditJayPokale/ChisleSkill1.3k4d agoMITA130Claude Code
kiro-verify-completiongotalab/cc-sddSkill3.8k1mo agoMITA39Codex
debug-livemicrosoft/DebugMCPSkill59017d agoMITA84Claude Code
dsh-error-handlingqufei1993/skills-hubSkill1.9k2d agoMITA39Codex
remove-deadcodecode-yeongyu/oh-my-openagentSkill71ktodaynoneA41Claude Code, Codex