[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FHS94JVVR4HGNWYEKHMPR8":3,"skill-same:01M6FHS94JVVR4HGNWYEKHMPR8":51},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M6FHS94JVVR4HGNWYEKHMPR8","debug-pro",null,"kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcmanfre7\u002Fdebug-pro\u002FSKILL.md",[],[17,18,19],"debug","debug pro","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","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fcmanfre7\u002Fdebug-pro",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add kbarbel640-del\u002Fskills --skill debug-pro",{"tool":37,"command":38},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill debug-pro",{"tool":40,"command":41},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill debug-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcmanfre7\u002Fdebug-pro\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"_meta.json","REFERENCE","参考文档",272,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcmanfre7\u002Fdebug-pro\u002F_meta.json",[52,78,102,120,125,145],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":20},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":20},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[85,61,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,66,101],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":20},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[109,110,111,112,113,114,115,62,116,99,101,117,61,118,119],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":121,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":20},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[112,111,110,109,119,114,115,62,113,99,101,116,117,61,118],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":20},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[132,133,134,135,136,137,138,139,140,141,142,143,144],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":20},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[152,153,154,155,62,156,157,24,158,117,159,160,161,162,163,75,164,165,166],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]