ralphctl-debugging-and-error-recovery

ralphctl-debugging-and-error-recovery is a skill for Claude Code, Codex from lukas-grigis/ralphctl. It costs 78 tokens per session (2,205 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 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,205 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.00078 $0.02205
Opus 5 $0.00039 $0.01103
Sonnet 5 $0.00016 $0.00441
Haiku 4.5 $0.00008 $0.00220

Measured 9d ago against content hash b1e2496cd2b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 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.

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

How it starts

The opening of the file, as written. The whole thing — 192 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). 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–10 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.

When a bug is non-reproducible, work through these branches:

  • Timing-dependent — add timestamps to logs near the suspected area; try with artificial delays to widen race windows; run under load or concurrency to increase collision probability.
  • Environment-dependent — compare runtime versions, OS, environment variables; check for differences in data (empty vs populated); try reproducing in a clean environment.
  • State-dependent — check for leaked state between tests or requests; look for global variables, singletons, or shared caches; run the failing scenario in isolation.
  • Truly random — add defensive logging at the suspected location; document the conditions observed and revisit when it recurs.

Read the full file on GitHub · 192 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 · 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 (23 stars, last pushed today), licensed MIT. It adds 78 tokens to every session and 2,205 once invoked, about $0.0004 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.