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.5 $0.00028 $0.00452
Sonnet 5.5 $0.00014 $0.00226
Haiku 4.5 $0.00007 $0.00113

Measured 2mo ago against content hash 5e80ebf59a7e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (13 stars, last pushed 3mo ago), licensed MIT. It adds 70 tokens to every session and 1,131 once invoked, about $0.0003 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

test-and-debug compared with skills from other repositories

test-and-debug next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-and-debugolgaiv39/claude-oss-skillsSkill133mo agoMITA70Claude Code
doca-flowNVIDIA/skillsSkill4.0kyesterdayApache-2.0A224Claude Code, Codex
doca-debugNVIDIA/skillsSkill4.0kyesterdayApache-2.0A233Claude Code, Codex
compute-sanitizer-diagnose-cuda-bugsNVIDIA/skillsSkill4.0kyesterdayApache-2.0A213Claude Code, Codex
mcore-create-issueNVIDIA/skillsSkill4.0kyesterdayApache-2.0A26Claude Code
doca-dpa-hl-tracerNVIDIA/skillsSkill4.0kyesterdayApache-2.0A242Claude Code, Codex
holoscan-app-debug-build-runNVIDIA/skillsSkill4.0kyesterdayApache-2.0A38Claude Code, Codex