Agent skill

Debug Like Expert

by glittercowboy in glittercowboy/taches-cc-resources

Deep analysis debugging mode for complex issues. An agent skill from glittercowboy/taches-cc-resources.

MITAuto-check passedDevelopment

Install Debug Like Expert

skills CLI
$ npx skills add glittercowboy/taches-cc-resources --skill debug-like-expert -a claude-code

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

GitHub CLI
$ gh skill install glittercowboy/taches-cc-resources debug-like-expert --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/glittercowboy/taches-cc-resources.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/debug-like-expert .claude/skills/debug-like-expert && 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-like-expert
GitHub stars
2k
Token cost
~2.8k tokens
SKILL.md length
1,080 words
Files
6 (incl. references)
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Deep analysis debugging mode for complex issues. An agent skill from glittercowboy/taches-cc-resources.

  • Works in 3 steps: [Hypothesis 1] - because [specific… → [Hypothesis 2] - because [specific… → [Hypothesis 3] - because [specific…
  • Standard troubleshooting fails
  • Calls tsx, swift and go
  • Issues require systematic root cause analysis

What it does

Debug Like Expert is an agent skill from glittercowboy/taches-cc-resources. Deep analysis debugging mode for complex issues. Activates methodical investigation protocol with evidence gathering, hypothesis testing, and rigorous verification. Use when standard troubleshooting fails or when issues require systematic root cause analysis.

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/debugging-mindset.md`, `references/hypothesis-testing.md` and `references/investigation-techniques.md`).

It sits in Development, covering Root cause analysis, Debugging and iOS development. It works with macOS and Python. The repository describes itself as: A collection of my favorite custom Claude Code resources to make life easier. The licence is MIT.

When your agent uses it

  • Standard troubleshooting fails
  • Issues require systematic root cause analysis

Example prompts

  • “/debug-like-expert”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. [Hypothesis 1] - because [specific evidence]
  2. [Hypothesis 2] - because [specific evidence]
  3. [Hypothesis 3] - because [specific evidence]

What it can do on your machine

Read from SKILL.md and the folder at commit 1757615. 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

    Shell commands in SKILL.md call:

    • tsx
    • swift
    • go

    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 Like Expert loads about 2.8k tokens when it runs, and up to ~16k if it reads all its reference files. Until then it costs about 69 tokens; SKILL.md has 1,080 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~69
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~16k

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

The full file from glittercowboy/taches-cc-resources at commit 1757615, republished under its MIT licence (© glittercowboy). 1,080 words, ~2,803 tokens.

Download SKILL.mdSave it as .claude/skills/debug-like-expert/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
debug-like-expert
description
Deep analysis debugging mode for complex issues. Activates methodical investigation protocol with evidence gathering, hypothesis testing, and rigorous verification. Use when standard troubleshooting fails or when issues require systematic root cause analysis.
<objective>
Deep analysis debugging mode for complex issues. This skill activates methodical investigation protocols with evidence gathering, hypothesis testing, and rigorous verification when standard troubleshooting has failed.

The skill emphasizes treating code you wrote with MORE skepticism than unfamiliar code, as cognitive biases about "how it should work" can blind you to actual implementation errors. Use scientific method to systematically identify root causes rather than applying quick fixes. </objective>

<context_scan> Run on every invocation to detect domain-specific debugging expertise:

bash
# What files are we debugging?
echo "FILE_TYPES:"
find . -maxdepth 2 -type f 2>/dev/null | grep -E '\.(py|js|jsx|ts|tsx|rs|swift|c|cpp|go|java)$' | head -10

# Check for domain indicators
[ -f "package.json" ] && echo "DETECTED: JavaScript/Node project"
[ -f "Cargo.toml" ] && echo "DETECTED: Rust project"
[ -f "setup.py" ] || [ -f "pyproject.toml" ] && echo "DETECTED: Python project"
[ -f "*.xcodeproj" ] || [ -f "Package.swift" ] && echo "DETECTED: Swift/macOS project"
[ -f "go.mod" ] && echo "DETECTED: Go project"

# Scan for available domain expertise
echo "EXPERTISE_SKILLS:"
ls ~/.claude/skills/expertise/ 2>/dev/null | head -5

Present findings before starting investigation. </context_scan>

<domain_expertise> Domain-specific expertise lives in ~/.claude/skills/expertise/

Domain skills contain comprehensive knowledge including debugging, testing, performance, and common pitfalls. Before investigation, determine if domain expertise should be loaded.

<scan_domains>

bash
ls ~/.claude/skills/expertise/ 2>/dev/null

This reveals available domain expertise (e.g., macos-apps, iphone-apps, python-games, unity-games).

If no expertise skills found: Proceed without domain expertise (graceful degradation). The skill works fine with general debugging methodology. </scan_domains>

<inference_rules> If user's description or codebase contains domain keywords, INFER the domain:

Keywords/FilesDomain Skill
"Python", "game", "pygame", ".py" + game loopexpertise/python-games
"React", "Next.js", ".jsx/.tsx"expertise/nextjs-ecommerce
"Rust", "cargo", ".rs" filesexpertise/rust-systems
"Swift", "macOS", ".swift" + AppKit/SwiftUIexpertise/macos-apps
"iOS", "iPhone", ".swift" + UIKitexpertise/iphone-apps
"Unity", ".cs" + Unity importsexpertise/unity-games
"SuperCollider", ".sc", ".scd"expertise/supercollider
"Agent SDK", "claude-agent"expertise/with-agent-sdk

If domain inferred, confirm:

Detected: [domain] issue → expertise/[skill-name]
Load this debugging expertise? (Y / see other options / none)

</inference_rules>

<no_inference> If no domain obvious, present options:

What type of project are you debugging?

Available domain expertise:
1. macos-apps - macOS Swift (SwiftUI, AppKit, debugging, testing)
2. iphone-apps - iOS Swift (UIKit, debugging, performance)
3. python-games - Python games (Pygame, physics, performance)
4. unity-games - Unity (C#, debugging, optimization)
[... any others found in build/]

N. None - proceed with general debugging methodology
C. Create domain expertise for this domain

Select:

</no_inference>

<load_domain> When domain selected, READ all references from that skill:

bash
cat ~/.claude/skills/expertise/[domain]/references/*.md 2>/dev/null

This loads comprehensive domain knowledge BEFORE investigation:

  • Common issues and error patterns
  • Domain-specific debugging tools and techniques
  • Testing and verification approaches
  • Performance profiling and optimization
  • Known pitfalls and anti-patterns
  • Platform-specific considerations

Announce: "Loaded [domain] expertise. Investigating with domain-specific context."

If domain skill not found: Inform user and offer to proceed with general methodology or create the expertise. </load_domain>

<when_to_load> Domain expertise should be loaded BEFORE investigation when domain is known.

Domain expertise is NOT needed for:

  • Pure logic bugs (domain-agnostic)
  • Generic algorithm issues
  • When user explicitly says "skip domain context" </when_to_load> </domain_expertise>
<context>
This skill activates when standard troubleshooting has failed. The issue requires methodical investigation, not quick fixes. You are entering the mindset of a senior engineer who debugs with scientific rigor.

Important: If you wrote or modified any of the code being debugged, you have cognitive biases about how it works. Your mental model of "how it should work" may be wrong. Treat code you wrote with MORE skepticism than unfamiliar code - you're blind to your own assumptions. </context>

<core_principle> VERIFY, DON'T ASSUME. Every hypothesis must be tested. Every "fix" must be validated. No solutions without evidence.

ESPECIALLY: Code you designed or implemented is guilty until proven innocent. Your intent doesn't matter - only the code's actual behavior matters. Question your own design decisions as rigorously as you'd question anyone else's. </core_principle>

<quick_start>

<evidence_gathering>

Before proposing any solution:

A. Document Current State

  • What is the EXACT error message or unexpected behavior?
  • What are the EXACT steps to reproduce?
  • What is the ACTUAL output vs EXPECTED output?
  • When did this start working incorrectly (if known)?

B. Map the System

  • Trace the execution path from entry point to failure point
  • Identify all components involved
  • Read relevant source files completely, not just scanning
  • Note dependencies, imports, configurations affecting this area

C. Gather External Knowledge (when needed)

  • Use MCP servers for API documentation, library details, or domain knowledge
  • Use web search for error messages, framework-specific behaviors, or recent changes
  • Check official docs for intended behavior vs what you observe
  • Look for known issues, breaking changes, or version-specific quirks

See references/when-to-research.md for detailed guidance on research strategy.

</evidence_gathering>

<root_cause_analysis>

A. Form Hypotheses

Based on evidence, list possible causes:

  1. [Hypothesis 1] - because [specific evidence]
  2. [Hypothesis 2] - because [specific evidence]
  3. [Hypothesis 3] - because [specific evidence]

B. Test Each Hypothesis

For each hypothesis:

  • What would prove this true?
  • What would prove this false?
  • Design a minimal test
  • Execute and document results

See references/hypothesis-testing.md for scientific method application.

C. Eliminate or Confirm

Don't move forward until you can answer:

  • Which hypothesis is supported by evidence?
  • What evidence contradicts other hypotheses?
  • What additional information is needed?
Show full SKILL.md (420 more words)Show less

</root_cause_analysis>

<solution_development>

Only after confirming root cause:

A. Design Solution

  • What is the MINIMAL change that addresses the root cause?
  • What are potential side effects?
  • What could this break?

B. Implement with Verification

  • Make the change
  • Add logging/debugging output if needed to verify behavior
  • Document why this change addresses the root cause

C. Test Thoroughly

  • Does the original issue still occur?
  • Do the reproduction steps now work?
  • Run relevant tests if they exist
  • Check for regressions in related functionality

See references/verification-patterns.md for comprehensive verification approaches.

</solution_development>

</quick_start>

<critical_rules>

  1. NO DRIVE-BY FIXES: If you can't explain WHY a change works, don't make it
  2. VERIFY EVERYTHING: Test your assumptions. Read the actual code. Check the actual behavior
  3. USE ALL TOOLS:
    • MCP servers for external knowledge
    • Web search for error messages, docs, known issues
    • Extended thinking ("think deeply") for complex reasoning
    • File reading for complete context
  4. THINK OUT LOUD: Document your reasoning at each step
  5. ONE VARIABLE: Change one thing at a time, verify, then proceed
  6. COMPLETE READS: Don't skim code. Read entire relevant files
  7. CHASE DEPENDENCIES: If the issue involves libraries, configs, or external systems, investigate those too
  8. QUESTION PREVIOUS WORK: Maybe the earlier "fix" was wrong. Re-examine with fresh eyes

</critical_rules>

<success_criteria>

Before starting:

  • Context scan executed to detect domain
  • Domain expertise loaded if available and relevant

During investigation:

  • Do you understand WHY the issue occurred?
  • Have you verified the fix actually works?
  • Have you tested the original reproduction steps?
  • Have you checked for side effects?
  • Can you explain the solution to someone else?
  • Would this fix survive code review?

If you can't answer "yes" to all of these, keep investigating.

CRITICAL: Do NOT mark debugging tasks as complete until this checklist passes.

</success_criteria>

<output_format>

markdown
## Issue: [Problem Description]

### Evidence
[What you observed - exact errors, behaviors, outputs]

### Investigation
[What you checked, what you found, what you ruled out]

### Root Cause
[The actual underlying problem with evidence]

### Solution
[What you changed and WHY it addresses the root cause]

### Verification
[How you confirmed this works and doesn't break anything else]

</output_format>

<advanced_topics>

For deeper topics, see reference files:

Debugging mindset: references/debugging-mindset.md

  • First principles thinking applied to debugging
  • Cognitive biases that lead to bad fixes
  • The discipline of systematic investigation
  • When to stop and restart with fresh assumptions

Investigation techniques: references/investigation-techniques.md

  • Binary search / divide and conquer
  • Rubber duck debugging
  • Minimal reproduction
  • Working backwards from desired state
  • Adding observability before changing code

Hypothesis testing: references/hypothesis-testing.md

  • Forming falsifiable hypotheses
  • Designing experiments that prove/disprove
  • What makes evidence strong vs weak
  • Recovering from wrong hypotheses gracefully

Verification patterns: references/verification-patterns.md

  • Definition of "verified" (not just "it ran")
  • Testing reproduction steps
  • Regression testing adjacent functionality
  • When to write tests before fixing

Research strategy: references/when-to-research.md

  • Signals that you need external knowledge
  • What to search for vs what to reason about
  • Balancing research time vs experimentation

</advanced_topics>

© glittercowboy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in skills/debug-like-expert of glittercowboy/taches-cc-resources.

  • SKILL.md
  • references/debugging-mindset.md
  • references/hypothesis-testing.md
  • references/investigation-techniques.md
  • references/verification-patterns.md
  • references/when-to-research.md

Open the folder on GitHubat commit 1757615

Compare with similar skills

Debug Like Expert 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 Like Expert compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Debug Like Expert this skillglittercowboy/taches-cc-resources2k—~2.8kAutomated safety check: PassMIT
OpenLogi macOS Permissions TriageAprilNEA/OpenLogi23k—~2.5kAutomated safety check: NotesApache-2.0
The Art of Debuggingstas00/the-art-of-debugging1.7k—~6.1kAutomated safety check: NotesCC-BY-SA-4.0
Dbgtheodo-group/debug-that158—~2.2kAutomated safety check: PassMIT
OpenLogi Device DiagnosisAprilNEA/OpenLogi23k—~1.6kAutomated safety check: PassApache-2.0
Problem Solving ProHoangTheQuyen/think-better123—~2.8kAutomated safety check: NotesMIT

Similar skills

  • Decides whether an OpenLogi device problem on macOS is a privacy-permission (TCC) problem, using agent log lines, and says which identity needs which grant.

    23k GitHub stars~2.5k tokensUpdated 4 days ago
    DevelopmentAuto-check: notes
  • The Art of Debugging

    stas00/the-art-of-debugging

    Condensed debugging method and tool recipes for Unix, Python and PyTorch programs: crashes, hangs, segfaults, wrong output, CUDA OOM, NaN values and slowness.

    1.7k GitHub stars~6.1k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Dbg

    theodo-group/debug-that

    Debug applications using the dbg CLI debugger. An agent skill from theodo-group/debug-that.

    158 GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed
  • OpenLogi Device Diagnosis

    AprilNEA/OpenLogi

    Finds the first failing layer when an OpenLogi Logitech device is missing or misbehaving across enumeration, open, probe, IPC and UI.

    23k GitHub stars~1.6k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Problem Solving Pro

    HoangTheQuyen/think-better

    Systematic problem-solving toolkit: root cause analysis, hypothesis testing, debugging strategies, critical thinking frameworks.

    123 GitHub stars~2.8k tokensUpdated 6 mo ago
    DevelopmentAuto-check: notes
  • Bug Detective

    Galaxy-Dawn/claude-scholar

    Applies a systematic debugging workflow to errors, exceptions and failures, with error-type tables, localization techniques and reference notes for Python, JavaScript and shell.

    5.7k GitHub starsUsed in 1 repo~2.1k tokens
    DevelopmentAuto-check passed

More from glittercowboy/taches-cc-resources

All 12 skills in this repo
  • Create MCP Servers

    glittercowboy/taches-cc-resources

    Create Model Context Protocol (MCP) servers that expose tools, resources, and prompts to Claude.

    2k GitHub stars~1.5k tokensUpdated 6 mo ago
    Auto-check passed
  • The Pirate Bay

    glittercowboy/taches-cc-resources

    Search The Pirate Bay for torrents and extract magnet links via the apibay.org JSON API.

    2k GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check passed
  • Create Meta Prompts

    glittercowboy/taches-cc-resources

    Create optimized prompts for Claude-to-Claude pipelines with research, planning, and execution stages.

    2k GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check passed
  • Create Agent Skills

    glittercowboy/taches-cc-resources

    Expert guidance for creating, writing, building, and refining Claude Code Skills.

    2k GitHub stars~1.7k tokensUpdated 6 mo ago
    Auto-check passed
  • Create Plans

    glittercowboy/taches-cc-resources

    Create hierarchical project plans optimized for solo agentic development.

    2k GitHub starsUsed in 1 repo~4.4k tokens
    Auto-check: notes
  • Create Subagents

    glittercowboy/taches-cc-resources

    Expert guidance for creating, building, and using Claude Code subagents and the Task tool.

    2k GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed

Works with

Categories

Questions about Debug Like Expert

What does Debug Like Expert do?

Deep analysis debugging mode for complex issues. An agent skill from glittercowboy/taches-cc-resources. Debug Like Expert is an agent skill from glittercowboy/taches-cc-resources. Deep analysis debugging mode for complex issues.

When should I use Debug Like Expert?

Debug Like Expert fits situations like: standard troubleshooting fails; issues require systematic root cause analysis.

How do I install Debug Like Expert in Claude Code?

Run `npx skills add glittercowboy/taches-cc-resources --skill debug-like-expert -a claude-code`. Or copy the skill folder (skills/debug-like-expert in glittercowboy/taches-cc-resources) into .claude/skills/debug-like-expert in your project. Claude Code loads it when a task matches its description.

How do I install Debug Like Expert in Codex?

Run `npx skills add glittercowboy/taches-cc-resources --skill debug-like-expert -a codex`. Or copy the skill folder (skills/debug-like-expert in glittercowboy/taches-cc-resources) into .agents/skills/debug-like-expert in your project. Codex loads it when a task matches its description.

Can I use Debug Like Expert 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 glittercowboy/taches-cc-resources --skill debug-like-expert -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-like-expert, .gemini/skills/debug-like-expert, .github/skills/debug-like-expert and .opencode/skills/debug-like-expert in your project.

What does Debug Like Expert need to run?

Going by SKILL.md and its folder, Debug Like Expert needs the command-line tools its instructions call (tsx, swift and go). Our summary lists: Python 3.

Does Debug Like Expert 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 Like Expert 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 Like Expert use?

Debug Like Expert is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Debug Like Expert use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.

What are the alternatives to Debug Like Expert?

Skills that share tags, products or a category with Debug Like Expert: OpenLogi macOS Permissions Triage (AprilNEA/OpenLogi, 23k stars), The Art of Debugging (stas00/the-art-of-debugging, 1.7k stars), Dbg (theodo-group/debug-that, 158 stars) and OpenLogi Device Diagnosis (AprilNEA/OpenLogi, 23k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Debug Like Expert?

glittercowboy (a GitHub user) maintains it in glittercowboy/taches-cc-resources, which has 1,980 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on April 1, 2026.

Source: glittercowboy/taches-cc-resources on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.