debug-pro
Skill0 starsChanged 8 months agoMITView on GitHub
Systematic debugging methodology and language-specific debugging commands.
2 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- zhaoxinghua09-cell/debug-protheir own version, first seen Nov 29, 2026
- GPTtang/skill-atlasedited, first seen Mar 22, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- GPTtang/skill-atlas★ 468% same
Wrote their own version · 1
- zhaoxinghua09-cell/debug-pro★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository102 other files it gives its agents.
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- skills/file-search/CLAUDE.mdCLAUDE.md
- prompt-engineering-expertCLAUDE.md
- academic-deep-researchSkill
- agent-autonomy-kitSkill
- Agent BrowserSkill
- agent-team-orchestrationSkill
- ai-model-routerSkill
- ai-prompt-engineering-safety-reviewSkill
- analytics-trackingSkill
- api-design-principlesSkill
- architecture-patternsSkill
- audit-websiteSkill
- auto-updaterSkill
- better-auth-best-practicesSkill
- boost-promptSkill
- brainstormingSkill
- brave-searchSkill
- breakdown-feature-implementationSkill
- browser-useSkill
- calendarSkill
- canvas-designSkill
- capability-evolverSkill
- changelog-curatorSkill
- clawsecSkill
- code-reviewSkill
- computer-useSkill
- content-strategySkill
- copywritingSkill
- Data AnalysisSkill
- data-analystSkill
- deep-research-proSkill
- discordSkill
- dispatching-parallel-agentsSkill
- doc-coauthoringSkill
- docker-essentialsSkill
- duckduckgo-searchSkill
- eastmoney_financial_dataSkill
- eastmoney_financial_searchSkill
- edge-ttsSkill
- elite-longterm-memorySkill
- email-sequenceSkill
- exa-web-search-freeSkill
- Excel / XLSXSkill
- executing-plansSkill
- file-searchSkill
- filesystemSkill
- find-skillsSkill
- firecrawlSkill
- geminiSkill
- git-essentialsSkill
- githubSkill
- gmailSkill
- slide-creatorSkill
- imap-smtp-emailSkill
- jike-publisherSkill
- last30daysSkill
- launch-strategySkill
- linkedinSkill
- markdown-converterSkill
- The first 60 shown.
The file
Files
debug-pro
Systematic debugging methodology and language-specific debugging commands.
The 7-Step Debugging Protocol
- Reproduce — Get it to fail consistently. Document exact steps, inputs, and environment.
- Isolate — Narrow scope. Comment out code, use binary search, check recent commits with
git bisect. - Hypothesize — Form a specific, testable theory about the root cause.
- Instrument — Add targeted logging, breakpoints, or assertions.
- Verify — Confirm root cause. If hypothesis was wrong, return to step 3.
- Fix — Apply the minimal correct fix. Resist the urge to refactor while debugging.
- Regression Test — Write a test that catches this bug. Verify it passes.
Language-Specific Debugging
JavaScript / TypeScript
# Node.js debugger
node --inspect-brk app.js
# Chrome DevTools: chrome://inspect
# Console debugging
console.log(JSON.stringify(obj, null, 2))
console.trace('Call stack here')
console.time('perf'); /* code */ console.timeEnd('perf')
# Memory leaks
node --expose-gc --max-old-space-size=4096 app.jsPython
# Built-in debugger
python -m pdb script.py
# Breakpoint in code
breakpoint() # Python 3.7+
# Verbose tracing
python -X tracemalloc script.py
# Profile
python -m cProfile -s cumulative script.pySwift
# LLDB debugging
lldb ./MyApp
(lldb) breakpoint set --name main
(lldb) run
(lldb) po myVariable
# Xcode: Product → Profile (Instruments)CSS / Layout
/* Outline all elements */
* { outline: 1px solid red !important; }
/* Debug specific element */
.debug { background: rgba(255,0,0,0.1) !important; }Network
# HTTP debugging
curl -v https://api.example.com/endpoint
curl -w "@curl-format.txt" -o /dev/null -s https://example.com
# DNS
dig example.com
nslookup example.com
# Ports
lsof -i :3000
netstat -tlnpGit Bisect
git bisect start
git bisect bad # Current commit is broken
git bisect good abc1234 # Known good commit
# Git checks out middle commit — test it, then:
git bisect good # or git bisect bad
# Repeat until root cause commit is found
git bisect resetCommon Error Patterns
| Error | Likely Cause | Fix |
Cannot read property of undefined | Missing null check or wrong data shape | Add optional chaining (?.) or validate data |
ENOENT | File/directory doesn't exist | Check path, create directory, use existsSync |
CORS error | Backend missing CORS headers | Add CORS middleware with correct origins |
Module not found | Missing dependency or wrong import path | npm install, check tsconfig paths |
Hydration mismatch (React) | Server/client render different HTML | Ensure consistent rendering, use useEffect for client-only |
Segmentation fault | Memory corruption, null pointer | Check array bounds, pointer validity |
Connection refused | Service not running on expected port | Check if service is up, verify port/host |
Permission denied | File/network permission issue | Check chmod, firewall, sudo |
Quick Diagnostic Commands
# What's using this port?
lsof -i :PORT
# What's this process doing?
ps aux | grep PROCESS
# Watch file changes
fswatch -r ./src
# Disk space
df -h
# System resource usage
top -l 1 | head -10Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

