Agent skill

Errors

by yonatangross in yonatangross/orchestkit

Error pattern analysis and troubleshooting for Claude Code sessions.

MITAuto-check: notesDevelopment

Install Errors

skills CLI
$ npx skills add yonatangross/orchestkit --skill errors -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yonatangross/orchestkit errors --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/yonatangross/orchestkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/skills/errors .claude/skills/errors && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
errors
GitHub stars
290
Token cost
~1.2k tokens
SKILL.md length
210 words
Files
5
Skills in repo
108
Repo updated
First seen
Licence
MIT

At a glance

Error pattern analysis and troubleshooting for Claude Code sessions.

  • Handling errors
  • SKILL.md covers Quick Start, Quick Analysis, What Gets Captured and Current Error Rules, plus 4 more sections
  • Calls python, jq and npm
  • Fixing failures

What it does

Errors is an agent skill from yonatangross/orchestkit. Error pattern analysis and troubleshooting for Claude Code sessions. Categorizes errors (network, auth, model, tool, memory, permission) with known resolution patterns, searches memory for prior occurrences, and suggests recovery steps. Delegates to debug-investigator agent for complex root cause analysis. Use when handling errors, fixing failures, or troubleshooting session issues.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files (for example `rules/_sections.md`, `rules/pattern-matching-accuracy.md` and `rules/root-cause-before-fix.md`). Compatibility notes: Claude Code 2.1.277+. Requires memory MCP server.

It sits in Development, covering Root cause analysis. It works with Model Context Protocol. The repository describes itself as: The Complete AI Development Toolkit for Claude Code. 106 skills, 36 agents, 171 hooks. Install ork for stable (v9.x), or ork-alpha for the v10 line, which ships daily. The licence is MIT.

When your agent uses it

  • Handling errors
  • Fixing failures
  • Troubleshooting session issues

Example prompts

  • “/errors”

Requirements

  • Python 3
  • Node.js
  • Docker
  • Compatibility (from SKILL.md): Claude Code 2.1.277+. Requires memory MCP server.
  • Pre-approved tools (allowed-tools): Read, Bash, Grep

What it can do on your machine

Read from SKILL.md and the folder at commit 02bbf9a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python
    • jq
    • npm
    • claude

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Claude Code 2.1.277+. Requires memory MCP server.

    From compatibility in the SKILL.md frontmatter.

Context cost

Errors loads about 1.2k tokens when it runs. Until then it costs about 98 tokens; SKILL.md has 210 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~98
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Bash, Grep

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from yonatangross/orchestkit at commit 02bbf9a, republished under its MIT licence (© yonatangross). 210 words, ~1,182 tokens.

Download SKILL.mdSave it as .claude/skills/errors/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
errors
description
Error pattern analysis and troubleshooting for Claude Code sessions. Categorizes errors (network, auth, model, tool, memory, permission) with known resolution patterns, searches memory for prior occurrences, and suggests recovery steps. Delegates to debug-investigator agent for complex root cause analysis. Use when handling errors, fixing failures, or troubleshooting session issues.
allowed-tools
Read, Bash, Grep
compatibility
Claude Code 2.1.277+. Requires memory MCP server.
license
MIT
context
inherit
user-invocable
false
effort
low
model
haiku
metadata.category
document-asset-creation
metadata.mcp-server
memory
metadata.version
1.0.0
metadata.author
OrchestKit
metadata.complexity
low

Error Pattern Analysis

Analyze errors captured from Claude Code sessions to identify patterns and get actionable insights.

Quick Start

bash
/errors              # Batch analysis of historical error patterns
/debug               # CC 2.1.30 real-time debug for current session
When to Use Which
CommandPurposeScope
/errorsBatch analysis of error patterns (last 24h/7d)Historical patterns
/debugReal-time debug of current session stateCurrent session
fix-issueFull RCA workflow for specific bugSingle issue

CC 2.1.169+: for errors that survive /clear and restarts, claude --safe-mode boots with every customization disabled (CLAUDE.md/plugins/skills/hooks/MCP) — the one-step test that separates "ork/hook/MCP bug" from "CC bug" before deeper analysis.

Quick Analysis

bash
# Run batch analysis on last 24h of errors
python .claude/scripts/analyze_errors.py

# Analyze last 7 days
python .claude/scripts/analyze_errors.py --days 7

# Generate markdown report
python .claude/scripts/analyze_errors.py --report

What Gets Captured

The error collector hook captures:

  • Tool name (Bash, mcp__memory__search_nodes, etc.)
  • Error message (first 500 chars)
  • Tool input (command/query that failed)
  • Timestamp and session ID

Location: .claude/logs/errors.jsonl

Current Error Rules

Check learned patterns that trigger warnings:

bash
cat .claude/rules/error_rules.json | jq '.rules[] | {id, signature, count: .occurrence_count}'

Files

FilePurpose
.claude/hooks/posttool/error-collector.shCaptures errors to JSONL
.claude/hooks/pretool/bash/error-pattern-warner.shWarns before risky commands
.claude/scripts/analyze_errors.pyBatch pattern analysis
.claude/rules/error_rules.jsonLearned error patterns
.claude/logs/errors.jsonlRaw error log

Common Patterns

Connection Refused / Wrong Port
pattern: ECONNREFUSED|connection refused|ERR_CONNECTION_REFUSED|connect ECONNREFUSED
fix: The port may have changed or the service isn't running.
     1. Check services: portless list (if installed)
     2. Use named URLs: api.localhost instead of localhost:PORT
     3. Fallback: lsof -iTCP -sTCP:LISTEN -nP | grep -E 'node|python|java'
     4. Install Portless to avoid port guessing: npm i -g portless

pattern: ERR_CONNECTION_RESET|ECONNRESET|socket hang up
fix: Service may have crashed. Check process logs, restart the service,
     and use agent-browser to verify the app is responding:
     agent-browser open "https://myapp.localhost"
PostgreSQL Connection Errors
pattern: role "X" does not exist
fix: Use Docker connection: docker exec -it orchestkit-postgres-dev psql -U orchestkit_user -d orchestkit_dev

pattern: relation "X" does not exist
fix: Check MCP postgres server connection string - may be connected to wrong database
Hook Errors (CC 2.1.98)

Since CC 2.1.98, hook errors show the first line of stderr directly in the transcript — no need for --debug:

pattern: hook.*error|hook.*failed|PreToolUse.*error
diagnosis: Read the stderr line shown in the transcript.
  1. If path error → check CLAUDE_PLUGIN_ROOT is set
  2. If JSON parse error → hook is returning invalid JSON
  3. If timeout → hook exceeds 50ms budget (PreToolUse) or 100ms (PostToolUse)
  4. If "module not found" → run: cd src/hooks && npm run build
  • ork:fix-issue: Fix identified errors
  • debug-investigator: Debug error root causes

Adding New Rules

Rules are auto-generated by analyze_errors.py when patterns repeat 2+ times. For manual rules, edit .claude/rules/error_rules.json:

json
{
  "id": "custom-001",
  "pattern": "your regex pattern",
  "signature": "human readable signature",
  "tool": "Bash",
  "occurrence_count": 1,
  "fix_suggestion": "How to fix this"
}

© yonatangross, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files in src/skills/errors of yonatangross/orchestkit.

  • SKILL.md
  • rules/_sections.md
  • rules/pattern-matching-accuracy.md
  • rules/root-cause-before-fix.md
  • test-cases.json

Open the folder on GitHubat commit 02bbf9a

Compare with similar skills

Errors next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Errors compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Errors this skillyonatangross/orchestkit290—~1.2kAutomated safety check: NotesMIT
Graph-Based Bug Tracingtirth8205/code-review-graph32k1 repos~287Automated safety check: PassMIT
Octocode Code Researchbgauryy/octocode949—~1.5kAutomated safety check: PassMIT
Debugagentic-community/mcp-gateway-registry967—~1.8kAutomated safety check: NotesApache-2.0
Broken UI Debuggerreticlehq/reticle1.2k—~1.3kAutomated safety check: PassApache-2.0
Self Healingpskoett/pskoett-ai-skills314—~5.3kAutomated safety check: NotesNone

Similar skills

  • Graph-Based Bug Tracing

    tirth8205/code-review-graph

    Traces a bug through a code knowledge graph, following callers, callees and execution flow before opening source files, within a small token budget.

    32k GitHub starsUsed in 1 repo~287 tokens
    DevelopmentAuto-check passed
  • Octocode Code Research

    bgauryy/octocode

    Researches code with evidence: traces callers, imports and cross-repo links, diagnoses failures and reports findings with exact file and line references and a confidence label.

    949 GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Debug

    agentic-community/mcp-gateway-registry

    Debug issues in the MCP Gateway Registry using first-principles thinking.

    967 GitHub stars~1.8k tokensUpdated 3 days ago
    DevelopmentAuto-check: notes
  • Broken UI Debugger

    reticlehq/reticle

    Finds why a running web app misbehaves when the console is empty and the code looks fine, by reading the click, request, store and console together.

    1.2k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Self Healing

    pskoett/pskoett-ai-skills

    Active runtime recovery for coding agents: when something breaks mid-task, diagnose the root cause, write a fix, VERIFY by re-running the broken thing, then file a HEAL- entry to .learnings/HEALS.md…

    314 GitHub stars~5.3k tokensUpdated 4 days ago
    DevelopmentAuto-check: notes
  • Acp Live Diagnose

    jrhubott/adaptive-cover-pro

    Root-cause a misbehaving Adaptive Cover Pro cover on a RUNNING Home Assistant install by pulling live diagnostics over the HA MCP, correlating against the recorder, proving the mechanism with a…

    176 GitHub stars~3.8k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from yonatangross/orchestkit

All 108 skills in this repo
  • API Design

    yonatangross/orchestkit

    API contract design for REST and GraphQL, covering resource shape, URL and header versioning with deprecation windows, RFC 9457 Problem Details error handling, and OpenAPI specs.

    290 GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Architecture Decision Record

    yonatangross/orchestkit

    ADR templates in the Nygard format with context, decision, consequences, and alternatives.

    290 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Audit Full

    yonatangross/orchestkit

    Single-pass codebase analysis leveraging a 1M-token context window for comprehensive security scanning, architecture review, and dependency auditing.

    290 GitHub stars~3.5k tokensUpdated today
    Auto-check: notes
  • Code Review Playbook

    yonatangross/orchestkit

    Structured review processes, conventional comments, language-specific checklists, and feedback templates.

    290 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Create PR

    yonatangross/orchestkit

    Creates GitHub pull requests with pre-flight validation, conventional title formatting, and structured summary generation.

    290 GitHub stars~4.5k tokensUpdated today
    Auto-check: notes
  • Explore

    yonatangross/orchestkit

    Multi-angle codebase exploration spawning 3-5 parallel agents for code structure, data flow, architecture patterns, and health assessment.

    290 GitHub stars~3.9k tokensUpdated today
    Auto-check: notes

Categories

Questions about Errors

What does Errors do?

Error pattern analysis and troubleshooting for Claude Code sessions. Errors is an agent skill from yonatangross/orchestkit. Error pattern analysis and troubleshooting for Claude Code sessions.

When should I use Errors?

Errors fits situations like: handling errors; fixing failures; troubleshooting session issues.

How do I install Errors in Claude Code?

Run `npx skills add yonatangross/orchestkit --skill errors -a claude-code`. Or copy the skill folder (src/skills/errors in yonatangross/orchestkit) into .claude/skills/errors in your project. Claude Code loads it when a task matches its description.

How do I install Errors in Codex?

Run `npx skills add yonatangross/orchestkit --skill errors -a codex`. Or copy the skill folder (src/skills/errors in yonatangross/orchestkit) into .agents/skills/errors in your project. Codex loads it when a task matches its description.

Can I use Errors in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yonatangross/orchestkit --skill errors -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/errors, .gemini/skills/errors, .github/skills/errors and .opencode/skills/errors in your project.

What does Errors need to run?

Going by SKILL.md and its folder, Errors needs the command-line tools its instructions call (python, jq, npm and claude). Our summary lists: Python 3; Node.js; Docker. Its frontmatter pre-approves these tools: Read, Bash, Grep. Compatibility (from SKILL.md): Claude Code 2.1.277+. Requires memory MCP server..

Does Errors access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Errors safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Errors use?

Errors is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Errors use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Errors?

Skills that share tags, products or a category with Errors: Graph-Based Bug Tracing (tirth8205/code-review-graph, 32k stars), Octocode Code Research (bgauryy/octocode, 949 stars), Debug (agentic-community/mcp-gateway-registry, 967 stars) and Broken UI Debugger (reticlehq/reticle, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Errors?

yonatangross (a GitHub user) maintains it in yonatangross/orchestkit, which has 290 GitHub stars. The repository holds 108 skills in this directory. The repository was last updated on October 9, 2026.

Source: yonatangross/orchestkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.