Agent skill

Debug Mantra

by thananon in thananon/9arm-skills

Four-mantra debugging discipline — reproduce, trace the fail path, falsify the hypothesis, cross-reference every breadcrumb.

No licenceAuto-check passedDevelopment

Install Debug Mantra

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

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install thananon/9arm-skills debug-mantra --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/thananon/9arm-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/engineering/debug-mantra .claude/skills/debug-mantra && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
debug-mantra
GitHub stars
3.2k
Token cost
~1.2k tokens
SKILL.md length
652 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
None found

At a glance

Four-mantra debugging discipline — reproduce, trace the fail path, falsify the hypothesis, cross-reference every breadcrumb.

  • Works in 4 steps: Reproduce reliably → Know the fail path → Falsify the hypothesis → …
  • /debug-mantra and proactively whenever debugging starts — user reports a bug
  • SKILL.md covers Recite this — verbatim, as the…, 1. Reproduce reliably, 2. Know the fail path and 3. Falsify the hypothesis, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Debug Mantra is an agent skill from thananon/9arm-skills. Four-mantra debugging discipline — reproduce, trace the fail path, falsify the hypothesis, cross-reference every breadcrumb. Recite the mantra block verbatim at the start of any debugging session, then apply the four steps in order before proposing any fix. Trigger on /debug-mantra and proactively whenever debugging starts — user reports a bug, says something is broken/throwing/failing, asks to debug/diagnose/investigate an issue, or pastes a stack trace or error log.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Debugging.

When your agent uses it

  • /debug-mantra and proactively whenever debugging starts — user reports a bug
  • Says something is broken/throwing/failing
  • Asks to debug/diagnose/investigate an issue
  • Pastes a stack trace

Example prompts

  • “/debug-mantra”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Reproduce reliably
  2. Know the fail path
  3. Falsify the hypothesis
  4. Every run is a breadcrumb

What it can do on your machine

Read from SKILL.md and the folder at commit a1fc303. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Debug Mantra loads about 1.2k tokens when it runs. Until then it costs about 121 tokens; SKILL.md has 652 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~121
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 652 words (~1,182 tokens).

“Four-step discipline for any debug session. Recite verbatim, then apply in order.”

— opening of SKILL.md by thananon
name
debug-mantra

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/engineering/debug-mantra of thananon/9arm-skills.

Open the folder on GitHubat commit a1fc303

Compare with similar skills

Debug Mantra next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Debug Mantra compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Debug Mantra this skillthananon/9arm-skills3.2k—~1.2kAutomated safety check: PassNone
Trellis Session Insightmindfold-ai/Trellis15k4 repos~1.7kAutomated safety check: PassAGPL-3.0
Native Data FetchingCherryHQ/cherry-studio-app4k6 repos~2.9kAutomated safety check: NotesMIT
Debugging Executionsn8n-io/n8n207k—~2.6kAutomated safety check: PassCustom licence
Aoti Debugpytorch/pytorch104k1 repos~1.7kAutomated safety check: PassCustom licence
Herdr Throwaway Reproductionherdrdev/herdr43k—~2.4kAutomated safety check: PassApache-2.0

Similar skills

  • Trellis Session Insight

    mindfold-ai/Trellis

    Reach into past AI conversation history through the trellis mem CLI.

    15k GitHub starsUsed in 4 repos~1.7k tokens
    DevelopmentAuto-check passed
  • Native Data Fetching

    CherryHQ/cherry-studio-app

    A skill your agent uses when implementing or debugging ANY network request, API call, or data fetching.

    4k GitHub starsUsed in 6 repos~2.9k tokens
    DevelopmentAuto-check: notes
  • Official

    Debug failed or wrong-output workflow executions using executions tools.

    207k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Aoti Debug

    pytorch/pytorch

    Debug AOTInductor (AOTI) errors and crashes. An agent skill from pytorch/pytorch.

    104k GitHub starsUsed in 1 repo~1.7k tokens
    DevelopmentAuto-check passed
  • Runs a disposable, uniquely named Herdr session inside an existing one so runtime, pane, terminal or API bugs can be reproduced without touching the main session.

    43k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Systematic Debugging

    ultralisp/ultralisp

    A skill your agent uses when encountering any bug, test failure, or unexpected behavior, before proposing fixes

    258 GitHub starsUsed in 51 repos~2.4k tokens
    DevelopmentAuto-check passed

More from thananon/9arm-skills

  • Management Talk

    thananon/9arm-skills

    Rewrite engineer-to-engineer content for engineering-org leadership (VPs, directors, PMs, release managers, execs in an engineering-savvy company) and shape it for the channel it is going to — JIRA…

    3.2k GitHub stars~3.2k tokensUpdated 3 mo ago
    Auto-check passed
  • Post Mortem

    thananon/9arm-skills

    Write the canonical engineering record of a fixed bug — root cause, mechanism, fix, validation, and how it slipped through.

    3.2k GitHub stars~3.4k tokensUpdated 3 mo ago
    Auto-check passed
  • Qwen Agent

    thananon/9arm-skills

    Delegate menial, well-scoped coding tasks to a cheap Qwen-backed subagent via the claude-9arm command instead of burning Claude tokens/quota.

    3.2k GitHub stars~1.5k tokensUpdated 3 mo ago
    Auto-check passed
  • Qwenchance

    thananon/9arm-skills

    Keeps a long Claude Code task on-track — breaks out of looping/circular thinking, watches the context budget, bounds internal reasoning, and triggers a clean handoff before the window fills.

    3.2k GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check passed
  • Scrutinize

    thananon/9arm-skills

    Outsider-perspective end-to-end review of a plan, PR, or code change.

    3.2k GitHub stars~1.2k tokensUpdated 3 mo ago
    Auto-check passed

Categories

Questions about Debug Mantra

What does Debug Mantra do?

Four-mantra debugging discipline — reproduce, trace the fail path, falsify the hypothesis, cross-reference every breadcrumb. Debug Mantra is an agent skill from thananon/9arm-skills. Four-mantra debugging discipline — reproduce, trace the fail path, falsify the hypothesis, cross-reference every breadcrumb.

When should I use Debug Mantra?

Debug Mantra fits situations like: /debug-mantra and proactively whenever debugging starts — user reports a bug; says something is broken/throwing/failing; asks to debug/diagnose/investigate an issue; pastes a stack trace.

How do I install Debug Mantra in Claude Code?

Run `npx skills add thananon/9arm-skills --skill debug-mantra -a claude-code`. Or copy the skill folder (skills/engineering/debug-mantra in thananon/9arm-skills) into .claude/skills/debug-mantra in your project. Claude Code loads it when a task matches its description.

How do I install Debug Mantra in Codex?

Run `npx skills add thananon/9arm-skills --skill debug-mantra -a codex`. Or copy the skill folder (skills/engineering/debug-mantra in thananon/9arm-skills) into .agents/skills/debug-mantra in your project. Codex loads it when a task matches its description.

Can I use Debug Mantra in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add thananon/9arm-skills --skill debug-mantra -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/debug-mantra, .gemini/skills/debug-mantra, .github/skills/debug-mantra and .opencode/skills/debug-mantra in your project.

What does Debug Mantra need to run?

SKILL.md names no scripts, command-line tools or credentials: Debug Mantra is instructions for the agent only.

Does Debug Mantra access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Debug Mantra safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Debug Mantra use?

No licence was found for Debug Mantra or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Debug Mantra use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Debug Mantra?

Skills that share tags, products or a category with Debug Mantra: Trellis Session Insight (mindfold-ai/Trellis, 15k stars), Native Data Fetching (CherryHQ/cherry-studio-app, 4k stars), Debugging Executions (n8n-io/n8n, 207k stars) and Aoti Debug (pytorch/pytorch, 104k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Debug Mantra?

thananon (a GitHub user) maintains it in thananon/9arm-skills, which has 3,208 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on June 14, 2026.

Source: thananon/9arm-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.