Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

debug-mantra — Claude Code skill: what it does, how to install

Sets a debugging sequence from reproducing a failure through testing hypotheses and recording experiments. Use it for errors, logs, and stack traces.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add thananon/9arm-skills --skill debug-mantra -a claude-code
Open on GitHub

What debug-mantra does

The skill opens a debugging session with a fixed mantra block, then follows four stages in sequence. It first requires a reproducible case, then narrows the failure path, tests candidate causes, and checks each result against the record of earlier runs.

It starts failure-path work with a debugger. When that cannot be used, it traces the source path and changes one influencing condition at a time, including configuration, environment variables, flags, input shape, timing, and concurrency. Code instrumentation with identifiable log markers comes later.

With no reproduction, the skill does not speculate. It asks for environment access, captured artifacts, or permission to add instrumentation, so having one of these ready matters before investigating. It also tests the simplest disproof before accepting a hypothesis and keeps an experiment ledger throughout the session.

What it helps with

  • build a reproducible failing case
  • locate the code path that fails
  • disprove a suspected root cause
  • record changes and outcomes for each run
  • compare a new theory with prior observations

Example prompts for the agent

  • `/debug-mantra` Investigate this application error.
  • `/debug-mantra` Diagnose the failure from this error log.
  • `/debug-mantra` Find why this test is failing.

How to install debug-mantra

1Skills CLI (Vercel)

npx skills add thananon/9arm-skills --skill debug-mantra -a claude-code

2Manually: put the files in place

~/.claude/skills/debug-mantra/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/debug-mantra/

From the same set3

The whole set →

Similar

rails-expert https://github.com/Jeffallan Rails 7+ skill for Hotwire, Sidekiq, and Active Record optimization. Guides query tuning, Turbo Frames, and RSpec test suites. Claude Code CX Codex Cursor +1 4,700installs vue-expert https://github.com/Jeffallan Guides Vue 3 work with the Composition API, Nuxt 3, Pinia, and Vite. Use it for components, PWAs, and Quasar or Capacitor apps. Claude Code CX Codex Cursor +1 4,500installs rewardkit harbor-framework A skill for writing Harbor task verifiers with Reward Kit: programmatic criteria, LLM judges and a single reward score built from a tests/ directory. Claude Code CX Codex Cursor +1 1,300installs ads-test AgriciDaniel Walks a paid-media experiment from hypothesis to readout: randomization unit, sample size, stopping rule, and a plain-language decision. Claude Code CX Codex Cursor +1 3,600installs e2e tester-army Writes, runs, and debugs web and mobile end-to-end tests with the e2e test runner, combining agent goals with exact Playwright assertions and device checks. Claude Code CX Codex Cursor +1 1,200installs improve-codebase-architecture Matt Pocock This skill scans a codebase for architectural friction, then builds a visual HTML report with refactoring candidates. Use it before a deeper architecture review. Claude Code 1,163,035installs design-taste-frontend Leonxlnx This skill directs the design of public pages and work screens, then checks the result in a browser through screenshots. Use it when an interface feels generic or unfinished. Claude Code CX Codex Cursor +1 673,100installs tdd Matt Pocock Guides the red-green TDD loop: ensures tests are written first, keep them at public interfaces, and avoid coupling to implementation details. Claude Code 1,141,062installs

Questions about debug-mantra

How do I install debug-mantra in Claude Code?

Run npx skills add thananon/9arm-skills --skill debug-mantra -a claude-code, then run npx skills add thananon/9arm-skills --skill debug-mantra -a claude-code again. The skill file is placed at ~/.claude/skills/debug-mantra/SKILL.md.

What does debug-mantra do?

It enforces a debugging order: establish a reproducible failure, trace the failure path, try to disprove candidate hypotheses, and maintain an experiment ledger. It does not propose a fix before the earlier stages are satisfied.

When does debug-mantra run?

Call it with /debug-mantra. It also activates when a user reports a bug, asks for diagnosis, or supplies a stack trace or error log.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor