debug-proProvides a 7-step debugging protocol plus language-specific commands to systematically identify, verify, and fix software bugs across multiple environments.
Install via ClawdBot CLI:
clawdbot install cmanfre7/debug-proSystematic debugging methodology and language-specific debugging commands.
git bisect.# 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.js
# 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.py
# LLDB debugging
lldb ./MyApp
(lldb) breakpoint set --name main
(lldb) run
(lldb) po myVariable
# Xcode: Product → Profile (Instruments)
/* Outline all elements */
* { outline: 1px solid red !important; }
/* Debug specific element */
.debug { background: rgba(255,0,0,0.1) !important; }
# 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 -tlnp
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 reset
| 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 |
# 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 -10
Generated Mar 1, 2026
A frontend developer encounters a 'Cannot read property of undefined' error in a React application after a recent deployment. Using the 7-step protocol, they reproduce the error, isolate it to a new API response format, and fix it by adding optional chaining. This ensures minimal downtime and maintains user experience.
A DevOps engineer faces a 'Connection refused' error in a microservices architecture. They use network debugging commands like lsof and netstat to identify a misconfigured port, then apply the fix and regression test to prevent future outages in production environments.
An iOS developer notices memory leaks in a Swift app causing crashes. By employing LLDB debugging and Instruments profiling, they instrument the code to trace allocations, verify the root cause in a retained cycle, and apply a fix to improve app stability and user retention.
A data engineer deals with an 'ENOENT' error in a Python ETL script processing large datasets. Using Python's pdb and tracemalloc, they isolate the issue to a missing directory, fix it with proper path validation, and add logging to streamline future debugging in batch jobs.
A UI/UX designer finds inconsistent element alignment across browsers in an e-commerce site. Applying CSS debugging techniques like red outlines, they hypothesize a flexbox issue, verify it with browser tools, and fix the styles to ensure a responsive design that boosts conversion rates.
Offer a SaaS platform that integrates the 7-step protocol with automated debugging commands for multiple languages. Charge monthly fees for access to advanced features like real-time error tracking and collaborative debugging sessions, targeting development teams in tech companies.
Provide expert consulting to help organizations implement systematic debugging methodologies. Offer workshops and on-demand support for troubleshooting specific issues, generating revenue through hourly rates or project-based contracts for industries like finance and healthcare.
Develop a free IDE plugin that suggests debugging steps and commands based on error patterns. Monetize through premium upgrades offering AI-powered root cause analysis and integration with team dashboards, appealing to individual developers and enterprises.
💬 Integration Tip
Integrate this skill into development workflows by using it as a reference during code reviews and incident response, ensuring team members follow the structured protocol to reduce mean time to resolution.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
A comprehensive skill for using the Cursor CLI agent for various software engineering tasks (updated for 2026 features, includes tmux automation guide).
Write, run, and manage unit, integration, and E2E tests across TypeScript, Python, and Swift using recommended frameworks.
Control and operate Opencode via slash commands. Use this skill to manage sessions, select models, switch agents (plan/build), and coordinate coding through Opencode.
Coding style memory that adapts to your preferences, conventions, and patterns for consistent coding.
Claude Code integration for OpenClaw. This skill provides interfaces to: - Query Claude Code documentation from https://code.claude.com/docs - Manage subagents and coding tasks - Execute AI-assisted coding workflows - Access best practices and common workflows Use this skill when users want to: - Get help with coding tasks - Query Claude Code documentation - Manage AI-assisted development workflows - Execute complex programming tasks