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.
Systematic problem-solving toolkit: root cause analysis, hypothesis testing, debugging strategies, critical thinking frameworks.
$ npx skills add HoangTheQuyen/think-better --skill problem-solving-pro -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install HoangTheQuyen/think-better problem-solving-pro --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/HoangTheQuyen/think-better.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/problem-solving-pro .claude/skills/problem-solving-pro && rm -rf skills-srcUse ~/.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/
Install the "problem-solving-pro" agent skill from https://github.com/HoangTheQuyen/think-better/tree/main/.agents/skills/problem-solving-pro into .claude/skills/problem-solving-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "problem-solving-pro", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/HoangTheQuyen/think-better/tree/main/.agents/skills/problem-solving-proType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add HoangTheQuyen/think-better --skill problem-solving-pro -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install HoangTheQuyen/think-better problem-solving-pro --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HoangTheQuyen/think-better.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/problem-solving-pro .agents/skills/problem-solving-pro && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "problem-solving-pro" agent skill from https://github.com/HoangTheQuyen/think-better/tree/main/.agents/skills/problem-solving-pro into .agents/skills/problem-solving-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "problem-solving-pro", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HoangTheQuyen/think-better --skill problem-solving-pro -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install HoangTheQuyen/think-better problem-solving-pro --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HoangTheQuyen/think-better.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/problem-solving-pro .cursor/skills/problem-solving-pro && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "problem-solving-pro" agent skill from https://github.com/HoangTheQuyen/think-better/tree/main/.agents/skills/problem-solving-pro into .cursor/skills/problem-solving-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "problem-solving-pro", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/HoangTheQuyen/think-better.git --path .agents/skills/problem-solving-pro--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add HoangTheQuyen/think-better --skill problem-solving-pro -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install HoangTheQuyen/think-better problem-solving-pro --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HoangTheQuyen/think-better.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/problem-solving-pro .gemini/skills/problem-solving-pro && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "problem-solving-pro" agent skill from https://github.com/HoangTheQuyen/think-better/tree/main/.agents/skills/problem-solving-pro into .gemini/skills/problem-solving-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "problem-solving-pro", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install HoangTheQuyen/think-better problem-solving-proInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add HoangTheQuyen/think-better --skill problem-solving-pro -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/HoangTheQuyen/think-better.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/problem-solving-pro .github/skills/problem-solving-pro && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "problem-solving-pro" agent skill from https://github.com/HoangTheQuyen/think-better/tree/main/.agents/skills/problem-solving-pro into .github/skills/problem-solving-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "problem-solving-pro", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add HoangTheQuyen/think-better --skill problem-solving-pro -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install HoangTheQuyen/think-better problem-solving-pro --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HoangTheQuyen/think-better.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/problem-solving-pro .opencode/skills/problem-solving-pro && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "problem-solving-pro" agent skill from https://github.com/HoangTheQuyen/think-better/tree/main/.agents/skills/problem-solving-pro into .opencode/skills/problem-solving-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "problem-solving-pro", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
problem-solving-proSystematic problem-solving toolkit: root cause analysis, hypothesis testing, debugging strategies, critical thinking frameworks.
Problem Solving Pro is an agent skill from HoangTheQuyen/think-better. Systematic problem-solving toolkit: root cause analysis, hypothesis testing, debugging strategies, critical thinking frameworks. Use when user says "solve", "analyze", "diagnose", "debug", "figure out", "what's wrong", "root cause", "why is this happening", "I'm stuck", "break down", "decompose", "structure", "tại sao bị vậy", "tìm nguyên nhân", "phân tích", "giải quyết", "bị kẹt", "không biết làm sao", or describes any problem that needs structured decomposition.
Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 16 other files, including scripts (for example `PROMPT.md`, `scripts/advisor.py` and `scripts/core.py`).
It sits in Development, covering Root cause analysis and Debugging. It works with Python. The repository describes itself as: The Operating System for Clear Thinking & Better Decisions. The licence is MIT.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 472b37d. It shows what the files ask for, not the result of running them.
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.
Ships 3 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
python3pythonaptbrewwingetFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Problem Solving Pro loads about 2.8k tokens when it runs. Until then it costs about 122 tokens; SKILL.md has 1,192 words of instructions outside code blocks.
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.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
sudo apt update && sudo apt install python3Automated 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); the scripts in this folder are not scanned.
The full file from HoangTheQuyen/think-better at commit 472b37d, republished under its MIT licence (© HoangTheQuyen). 1,192 words, ~2,809 tokens.
.claude/skills/problem-solving-pro/SKILL.md (or your agent's skills folder). This skill also uses 14 other files; get the full folder from GitHub.Help users solve complex problems systematically using proven frameworks — turning vague issues into structured analyses with actionable recommendations.
Comprehensive structured problem-solving framework for tackling any complex challenge. Contains a 7-step methodology, 15 decomposition frameworks, 8 prioritization techniques, 12 analysis tools, 12 cognitive biases with debiasing strategies, 10 communication patterns, 12 mental models, and 10 team dynamics patterns. Searchable database with reasoning-based recommendations that adapts to your specific problem type.
IMPORTANT: Detect the correct Python command first. Some systems use python3, others use python. Run:
python3 --version 2>/dev/null || python --versionUse whichever command succeeds (python3 or python) for ALL script calls below. If the system only has python (common on Windows), substitute python everywhere you see python3 in this document.
If Python is not installed at all, install it based on user's OS:
macOS:
brew install python3Ubuntu/Debian:
sudo apt update && sudo apt install python3Windows:
winget install Python.Python.3.12Note: On Windows, Python 3 is typically available as
python(notpython3).
When user requests problem-solving help (analyze, solve, diagnose, decide, structure, decompose, plan, strategy, recommendation), follow this workflow:
Extract key information from user's problem description:
Always start with --plan to get comprehensive recommendations with reasoning:
python3 scripts/search.py "<problem_description>" --plan [-p "Project Name"]This command:
Example:
python3 scripts/search.py "revenue declining 20% despite market growth" --plan -p "Revenue Recovery"To save the plan for reference:
python3 scripts/search.py "<problem>" --plan --persist -p "Project Name"This creates:
solving-plans/project-name/PLAN.md — Complete problem-solving planUse when the plan's recommendation needs more detail, OR when user asks about a specific topic (e.g., "how do I do a root cause analysis?"):
python3 scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]When to use domain searches:
| Need | Domain | Example |
|---|---|---|
| Understand the methodology steps | steps | --domain steps "define problem" |
| Classify the problem | problem-types | --domain problem-types "wicked systemic" |
| Choose decomposition framework | decomposition | --domain decomposition "MECE logic tree" |
| Pick prioritization technique | prioritization | --domain prioritization "impact feasibility" |
| Select analysis tools | analysis | --domain analysis "root cause benchmark" |
| Identify cognitive biases | biases | --domain biases "confirmation anchoring" |
| Structure communication | communication | --domain communication "pyramid executive" |
| Apply mental models | heuristics | --domain heuristics "first principles inversion" |
| Improve team dynamics | team | --domain team "red team brainstorm" |
Guide the user through the recommended process:
| Domain | Records | Use For | Example Keywords |
|---|---|---|---|
steps | 7 | Understanding each step of the methodology | define, disaggregate, prioritize, analyze, synthesize, communicate |
problem-types | 8 | Classifying the type of problem | diagnostic, opportunity, wicked, prediction, negotiation, design |
decomposition | 10 | Choosing how to break down the problem | issue tree, hypothesis tree, MECE, profitability, process, scenario |
prioritization | 8 | Deciding where to focus effort | pareto, impact-feasibility, sensitivity, dot-voting, MoSCoW, weighted |
analysis | 12 | Selecting analytical methods | benchmark, root cause, regression, scenario, fermi, A/B test, pre-mortem |
biases | 12 | Identifying thinking errors to avoid | confirmation, anchoring, sunk cost, groupthink, overconfidence, framing |
communication | 10 | Structuring findings and recommendations | pyramid, SCR, action titles, BLUF, one-page, storytelling, day-1 answer |
heuristics | 12 | Applying mental models to the problem | first principles, inversion, second-order, Bayesian, Occam, leverage |
team | 10 | Improving team problem-solving effectiveness | red team, brainstorm, psychological safety, hypothesis-driven, workplan |
User request: "Our company's revenue has declined 20% this year despite the market growing. Help me figure out what's going on and what to do about it."
python3 scripts/search.py "revenue declining 20% despite market growth" --plan -p "Revenue Diagnosis"Output: Complete plan with profitability tree decomposition, Pareto prioritization, benchmarking + root cause analysis toolkit, pyramid principle communication, and bias warnings (confirmation bias, anchoring).
# Get decomposition framework details
python3 scripts/search.py "profitability revenue cost" --domain decomposition
# Get root cause analysis methodology
python3 scripts/search.py "root cause 5 whys diagnostic" --domain analysis
# Check for relevant biases
python3 scripts/search.py "confirmation bias anchoring" --domain biasesWalk the user through:
Then: Synthesize the plan + domain searches into a structured problem-solving approach for the user.
The --plan flag supports two output formats:
# ASCII box (default) - best for terminal display
python3 scripts/search.py "market entry strategy" --plan
# Markdown - best for documentation
python3 scripts/search.py "market entry strategy" --plan -f markdown--plan) before doing domain searches — the plan provides context for everything elseIf the Python scripts fail or are unavailable:
python3 --version or python --version — if neither is found, guide the user to install itsearch.py returns no results, try broader keywords or search a different domainsearch.py — this ensures rich results for any language© HoangTheQuyen, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 14 other files (scripts) in .agents/skills/problem-solving-pro of HoangTheQuyen/think-better.
Open the folder on GitHubat commit 472b37d
Problem Solving Pro 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Problem Solving Pro this skillHoangTheQuyen/think-better | 123 | — | ~2.8k | Automated safety check: Notes | MIT | |
| The Art of Debuggingstas00/the-art-of-debugging | 1.7k | — | ~6.1k | Automated safety check: Notes | CC-BY-SA-4.0 | |
| Bug DetectiveGalaxy-Dawn/claude-scholar | 5.7k | 1 repos | ~2.1k | Automated safety check: Pass | MIT | |
| Flowfile Debugging PlaybookEdwardvaneechoud/Flowfile | 373 | — | ~6.3k | Automated safety check: Pass | MIT | |
| Debug Like Expertglittercowboy/taches-cc-resources | 2k | — | ~2.8k | Automated safety check: Pass | MIT | |
| Runtime Error ExplainerArabelaTso/Skills-4-SE | 253 | — | ~4.8k | Automated safety check: Pass | Apache-2.0 |
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.
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.
Edwardvaneechoud/Flowfile
Symptom-to-cause triage playbook for Flowfile (core/worker/kernel/frontend/AI) — covers "no such table" DB cascades (two distinct causes), import-time Alembic migration corruption, silent…
glittercowboy/taches-cc-resources
Deep analysis debugging mode for complex issues. An agent skill from glittercowboy/taches-cc-resources.
ArabelaTso/Skills-4-SE
Explains runtime errors and compilation failures with actionable debugging guidance.
aws/agent-toolkit-for-aws
Diagnoses and root-causes Amazon MWAA workflow failures across Provisioned (Python DAG) and Serverless (YAML workflow) environments.
HoangTheQuyen/think-better
AI-powered decision-making framework: 10+ methodologies, cognitive bias detection, strategic planning, career & business decisions.
Works with
Categories
Systematic problem-solving toolkit: root cause analysis, hypothesis testing, debugging strategies, critical thinking frameworks. Problem Solving Pro is an agent skill from HoangTheQuyen/think-better. Systematic problem-solving toolkit: root cause analysis, hypothesis testing, debugging strategies, critical thinking frameworks.
Problem Solving Pro fits situations like: user says solve; why is this happening; Tìm nguyên nhân; không biết làm sao.
Run `npx skills add HoangTheQuyen/think-better --skill problem-solving-pro -a claude-code`. Or copy the skill folder (.agents/skills/problem-solving-pro in HoangTheQuyen/think-better) into .claude/skills/problem-solving-pro in your project. Claude Code loads it when a task matches its description.
Run `npx skills add HoangTheQuyen/think-better --skill problem-solving-pro -a codex`. Or copy the skill folder (.agents/skills/problem-solving-pro in HoangTheQuyen/think-better) into .agents/skills/problem-solving-pro in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HoangTheQuyen/think-better --skill problem-solving-pro -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/problem-solving-pro, .gemini/skills/problem-solving-pro, .github/skills/problem-solving-pro and .opencode/skills/problem-solving-pro in your project.
Going by SKILL.md and its folder, Problem Solving Pro needs Python for the scripts in its folder and the command-line tools its instructions call (python3, python, apt, brew and winget). Our summary lists: Python 3.
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.
Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Problem Solving Pro is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
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.
Skills that share tags, products or a category with Problem Solving Pro: The Art of Debugging (stas00/the-art-of-debugging, 1.7k stars), Bug Detective (Galaxy-Dawn/claude-scholar, 5.7k stars), Flowfile Debugging Playbook (Edwardvaneechoud/Flowfile, 373 stars) and Debug Like Expert (glittercowboy/taches-cc-resources, 2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
HoangTheQuyen (a GitHub user) maintains it in HoangTheQuyen/think-better, which has 123 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on April 5, 2026.
Source: HoangTheQuyen/think-better on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.