test-and-debug

test-and-debug is a skill for Claude Code from olgaiv39/claude-oss-skills. It costs 70 tokens per session (1,131 once invoked), scanned A, original, MIT.

A troubleshooting workflow for a failing test, build, type check, or running program in an open-source project.

In plain words
What is it for?
Use it to investigate an unknown failure, apply the smallest repair, and verify the result with a focused check.
Why use it?
It narrows the failure to a small reproducible case, so the cause is easier to identify and unrelated changes are avoided.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to investigate an unknown failure, apply the smallest repair, and verify the result with a focused check.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/olgaiv39/claude-oss-skills/test-and-debug
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 olgaiv39/claude-oss-skills --skill test-and-debug
Clone the repo
git clone --depth 1 https://github.com/olgaiv39/claude-oss-skills

Made for: Claude Code.

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 test-and-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/olgaiv39/claude-oss-skills/test-and-debug/github.svg)](https://agentmods.dev/skills/olgaiv39/claude-oss-skills/test-and-debug)
Your own site
<a href="https://agentmods.dev/skills/olgaiv39/claude-oss-skills/test-and-debug"><img src="https://agentmods.dev/badge/skills/olgaiv39/claude-oss-skills/test-and-debug/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 test-and-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/olgaiv39/claude-oss-skills/test-and-debug"><img src="https://agentmods.dev/badge/skills/olgaiv39/claude-oss-skills/test-and-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,131 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.00070 $0.01131
Opus 5 $0.00035 $0.00566
Sonnet 5 $0.00014 $0.00226
Haiku 4.5 $0.00007 $0.00113

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

Security

Grade A, and why

test-and-debug 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 10d 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.

skills/test-and-debug/SKILL.md · 140 lines

How it starts

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

test-and-debug

Diagnose a failure, isolate the narrowest reproduction, apply the smallest fix, and confirm with a targeted check. Do not add features or refactor unrelated code while using this skill.

Activate when

  • A test, build, typecheck, or runtime path is failing
  • The cause of a failure is not yet known
  • A previously passing check now fails

Do not activate when

  • The change is a new feature with no failure yet -> use implement-minimal
  • No plan exists for a non-trivial change -> use oss-plan
  • The failure is a dependency install or version conflict only -> use dependency-review

Required inputs

  • The failing command or the observed error
  • Access to the repository to reproduce and inspect
  • Whether the failure is new or pre-existing, if known

Low-resource policy

Read the first of these that exists, then follow it:

  • ${CLAUDE_PROJECT_DIR}/.claude/shared/LOW_RESOURCE.md
  • $HOME/.claude/shared/LOW_RESOURCE.md

If neither exists, apply this fallback: run one expensive command at a time, prefer the narrowest validation, disable watch mode, reuse existing environments, and run full validation only at a milestone boundary. Do not scan the whole filesystem to locate the policy.

Context-efficiency policy

Read the first of these that exists, then follow it:

  • ${CLAUDE_PROJECT_DIR}/.claude/shared/CONTEXT_EFFICIENCY.md
  • $HOME/.claude/shared/CONTEXT_EFFICIENCY.md

If neither exists, apply this fallback: select files before reading; use targeted searches and bounded ranges; do not preload references; do not reread unchanged files; finish one atomic increment and stop; create a compact handoff before context is exhausted.

Facts that must not be assumed

  • The test runner, package manager, or build tool
  • That the failure is deterministic
  • That the failure is caused by the most recent change
  • That an external system the code calls is currently reachable

Preflight

  1. git status --short and git diff --stat to see uncommitted work
  2. git log --oneline -5 to see recent changes that may correlate
  3. Discover the project's test and build commands -> references/test-discovery.md
  4. Capture the exact failing command and its output

Read the full file on GitHub · 140 lines

Files

What ships with it

4 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. 10d ago First seen · 140 lines · 70 tokens per session scan A 5e80ebf59a7e

Subscribe to this mod's changes

test-and-debug is a skill published in the GitHub repository olgaiv39/claude-oss-skills (12 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 1,131 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

deslop

Audit or apply evidence-backed, test-first subtractive cleanup for accumulated agent-created test bloat, verification theater, and defensive or fallback bloat while preserving independent external behavior. Invoke explicitly for semantic simplification, not generic refactoring.

MrZoyo/deslop-GPT · 49 tokens

learning-from-experience

Turns incidents, near misses, bad handoffs, review surprises, escaped bugs, and signals from real use into lasting fixes to your safeguards. Use after something went wrong or nearly did and a future safeguard should change. Do not use during a live incident, which comes first, or to blame someone.

FlyFission/nuclear-grade-context-engineering · 65 tokens

reporting-shared-defects

Routes a defect found in a shared or supplied artifact (a shared prompt, skill, dependency, model, eval, or template) to the downstream teams, agents, and releases that depend on it, not just a local fix. Use when a discovered defect affects others who consume the same artifact. Do not use for a defect local to your…

FlyFission/nuclear-grade-context-engineering · 93 tokens

responding-to-incidents

Runs a live incident the stabilize-first way — name a commander, separate facts from hypotheses, prefer reversible actions, communicate on a cadence, and drive corrective actions to closure. Use when production is broken, data is at risk, or an agent action caused harm. Do not use for routine non-incident work, or as…

FlyFission/nuclear-grade-context-engineering · 80 tokens

add-plugin

Use when installing, disabling, enabling, or troubleshooting a third-party octomux plugin — the manifest row shape, octomux plugins list/disable/enable, reading octomux doctor output, and recovering a broken boot with --safe-mode.

ShreyPaharia/octomux · 53 tokens

create-task

Use when creating an octomux task to dispatch autonomous Claude Code agents for building features, fixing bugs, or any code changes.

ShreyPaharia/octomux · 28 tokens