error-diagnosis

error-diagnosis is a skill for Claude Code, Codex from kivo360/OmoiOS. It costs 13 tokens per session (1,351 once invoked), scanned A, original, Apache-2.0.

A systematic method for finding why software fails by reproducing the error, narrowing down its source, fixing the underlying cause, and checking the result.

In plain words
What is it for?
Use it to investigate crashes, failed commands, broken deployments, and unexpected application behaviour. It helps isolate the failing component, identify the root cause, add regression tests, and verify the fix.
Why use it?
It prevents developers from guessing or treating only the visible symptom. The process connects error messages, stack traces, logs, recent changes, and tests into one investigation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate crashes, failed commands, broken deployments, and unexpected application behaviour. It helps isolate the failing component, identify the root cause, add regression tests, and verify the fix.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kivo360/omoios/error-diagnosis
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 kivo360/OmoiOS --skill error-diagnosis
Clone the repo
git clone --depth 1 https://github.com/kivo360/OmoiOS

Made for: Claude Code, Codex.

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-diagnosis

README.md
[![agentmods](https://agentmods.dev/badge/skills/kivo360/omoios/error-diagnosis/github.svg)](https://agentmods.dev/skills/kivo360/omoios/error-diagnosis)
Your own site
<a href="https://agentmods.dev/skills/kivo360/omoios/error-diagnosis"><img src="https://agentmods.dev/badge/skills/kivo360/omoios/error-diagnosis/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-diagnosis

Your own site · 80×15
<a href="https://agentmods.dev/skills/kivo360/omoios/error-diagnosis"><img src="https://agentmods.dev/badge/skills/kivo360/omoios/error-diagnosis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,351 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.
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.00013 $0.01351
Opus 5 $0.00006 $0.00675
Sonnet 5 $0.00003 $0.00270
Haiku 4.5 $0.00001 $0.00135

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

Security

Grade A, and why

error-diagnosis 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 9d 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.

backend/omoi_os/sandbox_skills/error-diagnosis/SKILL.md · 224 lines

How it starts

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

Error Diagnosis

Systematic approach to debugging errors and identifying root causes.

Diagnosis Workflow

1. Reproduce → 2. Isolate → 3. Identify → 4. Fix → 5. Verify

1. Reproduce the Error

  • Get exact steps to reproduce
  • Note environment (OS, versions, config)
  • Check if error is consistent or intermittent
  • Capture full error message and stack trace

2. Isolate the Problem

  • Identify which component is failing
  • Check recent changes (git log, deployments)
  • Narrow down to smallest reproducible case
  • Check if issue is in your code or dependencies

3. Identify Root Cause

  • Read the actual error message carefully
  • Follow the stack trace top-to-bottom
  • Check logs at the time of failure
  • Add temporary logging if needed

4. Fix the Issue

  • Address the root cause, not symptoms
  • Consider side effects of the fix
  • Add tests to prevent regression

5. Verify the Fix

  • Reproduce original steps - should work now
  • Run full test suite
  • Check for unintended side effects

Common Error Patterns

Python Exceptions

Exception Common Cause Investigation
KeyError Missing dict key Check if key exists before access
AttributeError None object access Check for None before method call
TypeError Wrong argument type Check function signature and input
ImportError Missing/circular import Check import paths and dependencies
ConnectionError Network/DB issues Check connectivity and credentials

Stack Trace Analysis

# Example stack trace:
# Traceback (most recent call last):
#   File "app.py", line 42, in handle_request    ← Entry point
#     result = process_data(data)
#   File "processor.py", line 15, in process_data ← Intermediate
#     return transform(data['key'])
#   File "processor.py", line 8, in transform      ← Root cause
#     return value.upper()
# AttributeError: 'NoneType' object has no attribute 'upper'

# The error is at line 8, but the fix might be:
# - Line 15: Check if 'key' exists in data
# - Line 8: Check if value is None before .upper()
# - Caller: Ensure data is properly validated

Read the full file on GitHub · 224 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. 9d ago First seen · 224 lines · 13 tokens per session scan A ab4042b127b2

Subscribe to this mod's changes

error-diagnosis is a skill published in the GitHub repository kivo360/OmoiOS (77 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 13 tokens to every session and 1,351 once invoked, about $0.0001 per session on Opus 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.