error-handling

error-handling is a skill for Claude Code, Codex from zircote-plugins/claude-team-orchestration. It costs 47 tokens per session (1,749 once invoked), scanned B, original, MIT.

A troubleshooting guide for errors in coding-agent teams. It covers common setup and coordination failures, cleanup steps, quality-check hooks, limitations, and recovery procedures.

In plain words
What is it for?
Use it to diagnose team errors, recover from stuck or misconfigured agents, clean up teams safely, and understand known limitations.
Why use it?
It helps explain why team creation, agent lookup, task handling, or shutdown can fail. It also describes ways to prevent problems with automated quality checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Part of the swarm plugin — 10 skills, 5 agents shipped together

Good fit Use it to diagnose team errors, recover from stuck or misconfigured agents, clean up teams safely, and understand known limitations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zircote-plugins/claude-team-orchestration/error-handling
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 zircote-plugins/claude-team-orchestration --skill error-handling
Clone the repo
git clone --depth 1 https://github.com/zircote-plugins/claude-team-orchestration

Made for: Claude Code, Codex.

Or install swarm, the plugin that ships this one along with the rest of its 10 skills, 5 agents.

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/zircote-plugins/claude-team-orchestration/error-handling.svg)](https://agentmods.dev/skills/zircote-plugins/claude-team-orchestration/error-handling)
Your own site
<a href="https://agentmods.dev/skills/zircote-plugins/claude-team-orchestration/error-handling"><img src="https://agentmods.dev/badge/skills/zircote-plugins/claude-team-orchestration/error-handling.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,749 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00047 $0.01749
Opus 5 $0.00023 $0.00874
Sonnet 5 $0.00009 $0.00350
Haiku 4.5 $0.00005 $0.00175

Measured 8d ago against content hash 98276d513b29, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade B, and why

error-handling scanned grade B with 1 finding 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 8d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat ~/.claude/teams/{team}/config.json | jq '.members[] | {name, agentType, backendType}'
skills/error-handling/SKILL.md · 235 lines

How it starts

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

Error Handling

Experimental: Agent teams are disabled by default. Enable with CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS in your settings.json or environment.

Debug, recover from, and prevent common agent team errors. Includes hooks for quality enforcement and known limitations.

Related skills:


Common Errors

Error Cause Solution
"Cannot cleanup with active members" Teammates still running Shutdown all teammates first, wait for approval
"Already leading a team" Team already exists TeamDelete() first, or use different team name
"Agent not found" Wrong teammate name Read config.json for actual names
"Team does not exist" No team created Call TeamCreate() first
"team_name is required" Missing team context Provide team_name parameter
"Agent type not found" Invalid subagent_type Check available agents with proper prefix

Quality Gate Hooks

Use hooks to enforce rules when teammates finish work or tasks complete.

TeammateIdle Hook

Runs when a teammate is about to go idle. Exit with code 2 to send feedback and keep the teammate working.

{
  "hooks": {
    "TeammateIdle": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "python3 check_teammate_quality.py"
          }
        ]
      }
    ]
  }
}

Use cases:

  • Verify teammate completed all assigned tasks before going idle
  • Run linting or tests on teammate's changes
  • Enforce documentation requirements

Read the full file on GitHub · 235 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 235 lines · 47 tokens per session scan B 98276d513b29

Subscribe to this mod's changes

error-handling is a skill published in the GitHub repository zircote-plugins/claude-team-orchestration (14 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 1,749 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories