ralphctl-debugging-and-error-recovery

ralphctl-debugging-and-error-recovery is a skill for Claude Code, Codex from lukas-grigis/ralphctl. It costs 95 tokens per session (2,639 once invoked), scanned A, original, MIT.

A step-by-step method for finding the root cause of failures or unexpected behaviour. It reproduces the problem, narrows it down, fixes it, adds a regression test, and verifies the result.

In plain words
What is it for?
Use it when tests fail, a build breaks, or the program behaves differently from expected. It helps structure the work from reproduction through final verification.
Why use it?
It replaces guessing with preserved evidence and a repeatable investigation. The regression test helps prevent the same bug from returning.

Skill for Claude CodeCodex

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

Good fit Use it when tests fail, a build breaks, or the program behaves differently from expected. It helps structure the work from reproduction through final verification.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lukas-grigis/ralphctl/ralphctl-debugging-and-error-recovery
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 lukas-grigis/ralphctl --skill ralphctl-debugging-and-error-recovery
Clone the repo
git clone --depth 1 https://github.com/lukas-grigis/ralphctl

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 ralphctl-debugging-and-error-recovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/ralphctl-debugging-and-error-recovery/github.svg)](https://agentmods.dev/skills/lukas-grigis/ralphctl/ralphctl-debugging-and-error-recovery)
Your own site
<a href="https://agentmods.dev/skills/lukas-grigis/ralphctl/ralphctl-debugging-and-error-recovery"><img src="https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/ralphctl-debugging-and-error-recovery/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 ralphctl-debugging-and-error-recovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/lukas-grigis/ralphctl/ralphctl-debugging-and-error-recovery"><img src="https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/ralphctl-debugging-and-error-recovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,639 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 pass 7 Sept 2026
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.00095 $0.02639
Opus 5.5 $0.00038 $0.01056
Sonnet 5.5 $0.00019 $0.00528
Haiku 4.5 $0.00010 $0.00264

Measured 6d ago against content hash bfef2b406ea6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ralphctl-debugging-and-error-recovery 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 6d 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.

src/integration/ai/skills/bundled/ralphctl-debugging-and-error-recovery/SKILL.md · 211 lines

How it starts

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

Debugging and Error Recovery

Adapted from addyosmani/agent-skills (MIT), with the feedback-loop, ranked-hypothesis, and tagged-log practices drawn from mattpocock/skills (MIT). Adapted for ralphctl's harness contract.

Systematic debugging with structured triage. When something breaks, stop adding features, preserve evidence, and follow a structured process to find and fix the root cause. Guessing wastes time. The triage checklist works for test failures, build errors, runtime bugs, and unexpected behaviour across any project ecosystem.

When this applies

  • Refine — when a bug is part of the acceptance criteria, name it as a checkable predicate (reproduce + expected vs actual), not vague prose.
  • Plan — when tasks involve fixing existing failures, order them reproduce → localize → fix → guard so each task has a clear entry/exit contract.
  • Execute — whenever something unexpected happens during implementation: a test fails, the build breaks, behaviour diverges from the spec. Stop, triage, fix the root cause, then resume.

The Stop-the-Line Rule

When anything unexpected happens:

  1. Stop adding features or making unrelated changes.
  2. Preserve evidence — error output, logs, repro steps. Do not overwrite or discard.
  3. Diagnose using the triage checklist below.
  4. Fix the root cause, not the symptom.
  5. Guard against recurrence by including a regression test in the same change.
  6. Resume only after the fix is verified with the project's narrow check gate.

Do not push past a failing test or broken build to work on the next feature. Errors compound — a bug at Step 3 that goes unfixed makes Steps 4–6 wrong.

The Triage Checklist

Work through these steps in order. Do not skip steps.

Step 1: Reproduce

Make the failure happen reliably. If you cannot reproduce it, you cannot fix it with confidence.

Build a tight, red-capable loop before forming any theory. When your session can run commands, the first deliverable is one command you have already run that drives the real code path and asserts the exact reported symptom — a failing test at the seam that reaches the bug, a script with a fixture input, a captured payload replayed through the code, the same input run through the old and new versions. Tight means fast (seconds) and deterministic, or for a flaky bug a pinned, high reproduction rate. Reading code to build a theory before that command exists is the failure this step prevents. When no loop can be built in this session, list what you tried and what would make it possible rather than guessing — in a note signal when the prompt's output-contract section lists it, otherwise in the required signal's own fields.

Read the full file on GitHub · 211 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. 6d ago Changed · +18 lines bfef2b406ea6
  2. 11d ago Changed · +17 tokens per session 5f616b73dd77
  3. 1mo ago Changed · +1 lines 74675756979f
  4. 1mo ago Changed a42d18a38992
  5. 1mo ago First seen · 192 lines · 78 tokens per session scan A b1e2496cd2b7

Subscribe to this mod's changes

ralphctl-debugging-and-error-recovery is a skill published in the GitHub repository lukas-grigis/ralphctl (24 stars, last pushed 4d ago), licensed MIT. It adds 95 tokens to every session and 2,639 once invoked, about $0.0004 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

Other skills, from other repositories

caliber-testing

Writes Vitest tests following project patterns: tests/ directories, vi.mock() for module mocking with vi.hoisted() for test-time factories, global LLM mock from src/test/setup.ts, environment variable save/restore in beforeEach/afterEach, vi.clearAllMocks() lifecycle, and test file organization. Use when user says…

caliber-ai-org/ai-setup · 0 tokens

debugging

Use when debugging bugs, test failures, or unexpected behavior. Triggers: 'why isn't this working', 'this doesn't work', 'X is broken', 'something's wrong', 'getting an error', 'exception in', 'stopped working', 'regression', 'crash', 'hang', 'flaky test', 'intermittent failure', or when user pastes a stack…

axiomantic/spellbook · 104 tokens

vc:autoresearch

Autonomous iterative optimization loop for measurable metrics like coverage, performance, or bundle size. Use when repeated experiments can be judged by a mechanical score.

opencue/cuecards · 34 tokens

debugging-test-failures

Systematically investigates failing tests, distinguishes between test bugs and implementation bugs, and drives a fix with verification. Use when the user wants to debug failing tests.

dork-labs/dorkos · 38 tokens

regression-test-gen

Suggest regression coverage for changed stack behavior.

Eliyce/paqad-ai · 13 tokens

fix-bug

Investigates and fixes a reported bug. Reads relevant code, identifies the root cause, proposes a fix, and adds or updates tests to prevent regression. Invoked when the user describes unexpected behavior, an error, a crash, or a failing test.

soulcodex/agentic · 54 tokens