[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ECX4R1V28TYF5H8QNC3WF8":3,"skill-same:01M6ECX4R1V28TYF5H8QNC3WF8":47},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M6ECX4R1V28TYF5H8QNC3WF8","debug-pro",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FLeoYeAI\u002Fopenclaw-master-skills\u002Fdebug-pro\u002FSKILL.md",[],[18,19],"debug","debug pro","2026-11-10 10:12:30",false,"# debug-pro\n\nSystematic debugging methodology and language-specific debugging commands.\n\n## The 7-Step Debugging Protocol\n\n1. **Reproduce** — Get it to fail consistently. Document exact steps, inputs, and environment.\n2. **Isolate** — Narrow scope. Comment out code, use binary search, check recent commits with `git bisect`.\n3. **Hypothesize** — Form a specific, testable theory about the root cause.\n4. **Instrument** — Add targeted logging, breakpoints, or assertions.\n5. **Verify** — Confirm root cause. If hypothesis was wrong, return to step 3.\n6. **Fix** — Apply the minimal correct fix. Resist the urge to refactor while debugging.\n7. **Regression Test** — Write a test that catches this bug. Verify it passes.\n\n## Language-Specific Debugging\n\n### JavaScript \u002F TypeScript\n```bash\n# Node.js debugger\nnode --inspect-brk app.js\n# Chrome DevTools: chrome:\u002F\u002Finspect\n\n# Console debugging\nconsole.log(JSON.stringify(obj, null, 2))\nconsole.trace('Call stack here')\nconsole.time('perf'); \u002F* code *\u002F console.timeEnd('perf')\n\n# Memory leaks\nnode --expose-gc --max-old-space-size=4096 app.js\n```\n\n### Python\n```bash\n# Built-in debugger\npython -m pdb script.py\n\n# Breakpoint in code\nbreakpoint()  # Python 3.7+\n\n# Verbose tracing\npython -X tracemalloc script.py\n\n# Profile\npython -m cProfile -s cumulative script.py\n```\n\n### Swift\n```bash\n# LLDB debugging\nlldb .\u002FMyApp\n(lldb) breakpoint set --name main\n(lldb) run\n(lldb) po myVariable\n\n# Xcode: Product → Profile (Instruments)\n```\n\n### CSS \u002F Layout\n```css\n\u002F* Outline all elements *\u002F\n* { outline: 1px solid red !important; }\n\n\u002F* Debug specific element *\u002F\n.debug { background: rgba(255,0,0,0.1) !important; }\n```\n\n### Network\n```bash\n# HTTP debugging\ncurl -v https:\u002F\u002Fapi.example.com\u002Fendpoint\ncurl -w \"@curl-format.txt\" -o \u002Fdev\u002Fnull -s https:\u002F\u002Fexample.com\n\n# DNS\ndig example.com\nnslookup example.com\n\n# Ports\nlsof -i :3000\nnetstat -tlnp\n```\n\n### Git Bisect\n```bash\ngit bisect start\ngit bisect bad              # Current commit is broken\ngit bisect good abc1234     # Known good commit\n# Git checks out middle commit — test it, then:\ngit bisect good  # or  git bisect bad\n# Repeat until root cause commit is found\ngit bisect reset\n```\n\n## Common Error Patterns\n\n| Error | Likely Cause | Fix |\n|-------|-------------|-----|\n| `Cannot read property of undefined` | Missing null check or wrong data shape | Add optional chaining (`?.`) or validate data |\n| `ENOENT` | File\u002Fdirectory doesn't exist | Check path, create directory, use `existsSync` |\n| `CORS error` | Backend missing CORS headers | Add CORS middleware with correct origins |\n| `Module not found` | Missing dependency or wrong import path | `npm install`, check tsconfig paths |\n| `Hydration mismatch` (React) | Server\u002Fclient render different HTML | Ensure consistent rendering, use `useEffect` for client-only |\n| `Segmentation fault` | Memory corruption, null pointer | Check array bounds, pointer validity |\n| `Connection refused` | Service not running on expected port | Check if service is up, verify port\u002Fhost |\n| `Permission denied` | File\u002Fnetwork permission issue | Check chmod, firewall, sudo |\n\n## Quick Diagnostic Commands\n\n```bash\n# What's using this port?\nlsof -i :PORT\n\n# What's this process doing?\nps aux | grep PROCESS\n\n# Watch file changes\nfswatch -r .\u002Fsrc\n\n# Disk space\ndf -h\n\n# System resource usage\ntop -l 1 | head -10\n```\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FLeoYeAI\u002Fopenclaw-master-skills\u002Fdebug-pro",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill debug-pro",{"tool":39,"command":40},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill debug-pro",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill debug-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FLeoYeAI\u002Fopenclaw-master-skills\u002Fdebug-pro\u002FSKILL.md",true,[],[48,57,66,75,81,87],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":20},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[54,55,56],"model","model hierarchy","model hierarchy skill",{"skillNo":58,"name":59,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":20},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[63,64,65],"MCP","zoom","zoom mcp",{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":20},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[72,73,74,64],"sdk","zoom apps sdk","apps",{"skillNo":76,"name":77,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":20},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[77],{"skillNo":82,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":20},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[83],{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":20},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[89]]