Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

iii-error-handling — Claude Code skill: handle SDK and engine errors

Skill teaches agents to read iii engine and SDK error codes, tell network failures from access denials, know when it is safe to retry. Use it when calling remote functions from Node, Python, Rust, or browser code.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add iii-hq/iii --skill iii-error-handling -a claude-code
Open on GitHub

What iii-error-handling does

iii emits two error classes: local (SDK, dispatcher) and remote (engine router, workers, RBAC). The skill shows how to branch on exact error code, not message string. For example, FORBIDDEN means policy denied — retrying is pointless, fix permissions instead. TIMEOUT from the SDK caller (Node/Python) means optimize or raise the timeout, not blind retry. invocation_error signals a routing or engine state issue — check the logs.

The skill lists error codes in a table with source, meaning, and typical handler. Observer errors are separate — they do not throw but land in the error channel or reject ready(). Examples cover Node (via InvocationError), Python (check exc.code), Rust (pattern match), and browser.

One constraint: messages over 16 MiB fail. Use a channel instead. For background work that must not drop, use a queue with retry and DLQ policy — documented in a separate pattern.

What it helps with

  • Tell network timeout from permission denial and stop blindly retrying requests
  • Diagnose function_not_found — check function ID, worker status, or trigger type
  • Handle RBAC rejection and report it as permission error instead of looping
  • Recode a message if it exceeds 16 MiB — when to switch to a channel
  • Parse error codes from browser calls and remote worker responses

Example prompts for the agent

  • Why does `orders::charge` return FORBIDDEN — is it policy or a bug in my call?
  • How do I catch timeout in Python and tell it from other iii errors?
  • What if my message is over 16 MiB — how do I use a channel instead of a direct call?

How to install iii-error-handling

1Skills CLI (Vercel)

npx skills add iii-hq/iii --skill iii-error-handling -a claude-code

2Manually: put the files in place

~/.claude/skills/iii-error-handling/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/iii-error-handling/

From the same set4

The whole set →

Similar

python-anti-patterns Seth Hobson A checklist skill for common Python mistakes. The agent runs it over your code before merge or while debugging. Claude Code CX Codex Cursor 13,278installs golang-graphql samber Builds and reviews GraphQL APIs in Go using gqlgen or graphql-go. It assists with schema design, resolver architecture, and query batching to prevent N+1 issues. Claude Code CX Codex Cursor +1 36,800installs golang-spf13-viper samber Configures the spf13/viper Go library with strict precedence, flag bindings, environment variables, and struct decoding. Claude Code CX Codex Cursor +1 36,700installs microservices-patterns Seth Hobson A practical guide to service boundaries, event-driven communication, data ownership, and resilience patterns for distributed systems. Claude Code CX Codex Cursor 13,176installs golang-uber-fx samber Skill for uber-go/fx — a dependency injection framework with lifecycle hooks, module system, and graceful shutdown. Useful if your project already uses fx or you're migrating to it for long-running services. Claude Code CX Codex Cursor +1 36,500installs langchain-architecture Seth Hobson This skill helps design LangChain 1.x and LangGraph applications with agents, memory, state, and tool calls. Use it for multi-step LLM workflows. Claude Code CX Codex Cursor 13,150installs mcp-builder official anthropics This skill walks through building an MCP server in TypeScript or Python, from reading the protocol spec to writing tests and evaluation questions. Claude Code Claude.ai 130,949installs google-agents-cli-adk-code official Google A reference skill for building ADK agents with tools, callbacks, state, and workflows. Use it when an agent project needs concrete API patterns or code examples. Claude Code CX Codex Cursor +1 511,400installs

Questions about iii-error-handling

How do I install iii-error-handling in Claude Code?

Run npx skills add iii-hq/iii --skill iii-error-handling -a claude-code. The skill will be at ~/.claude/skills/iii-error-handling/SKILL.md.

What does iii-error-handling do?

It explains how to read iii error codes (FORBIDDEN, TIMEOUT, function_not_found, etc.), which errors are safe to retry and which are not, and how to handle them in Node, Python, Rust, and the browser.

When should I retry a call and when should I not?

Retry network timeouts and connection failures only if the operation is idempotent. Never retry FORBIDDEN without fixing permissions. For reliable background work, use a queue with retry and DLQ policies.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor