[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M718RVZB2D5Q4VT3ZXKWEQTY":3,"skill-same:01M718RVZB2D5Q4VT3ZXKWEQTY":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":14,"repositoryHtmlUrl":63,"repositoryHomepageUrl":6,"ownerHtmlUrl":64,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":65,"install":66,"resources":79},"01M718RVZB2D5Q4VT3ZXKWEQTY","gdb-cli",null,"GDB debugging assistant for AI agents - analyze core dumps, debug live processes, investigate crashes and deadlocks with source code correlation","sapsapshen\u002Fai-memory-router","sapsapshen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20347959?v=4","01M6XDQEF1DP50DKF37H81J3J5","shenmian","01M6XDQEJPE41Y3DT2763X8ZJN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fgdb-cli\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"gdb","gdb cli","cli","c++","crash-analysis","core-dump","dump","source code","source","core dumps","live","assistant","2026","analyze","ai agents","code","analysis","debugging","critical","community","2026-11-10 10:12:30",false,"---\nname: gdb-cli\ndescription: \"GDB debugging assistant for AI agents - analyze core dumps, debug live processes, investigate crashes and deadlocks with source code correlation\"\ncategory: development\nrisk: critical\nsource: community\ndate_added: \"2026-03-22\"\nauthor: Cerdore\ntags:\n- debugging\n- gdb\n- core-dump\n- crash-analysis\n- c++\n- c\ntools:\n- claude-code\n- cursor\n- gemini-cli\n- codex-cli\n- antigravity\n---\n\n# GDB Debugging Assistant\n\n## Overview\n\nA GDB debugging skill designed for AI agents. Combines **source code analysis** with **runtime state inspection** using gdb-cli to provide intelligent debugging assistance for C\u002FC++ programs.\n\n## When to Use This Skill\n\n- Analyze core dumps or crash dumps\n- Debug running processes with GDB attach\n- Investigate crashes, deadlocks, or memory issues\n- Get intelligent debugging assistance with source code context\n- Debug multi-threaded applications\n\n## Do Not Use This Skill When\n\n- The task is unrelated to C\u002FC++ debugging\n- The user needs general-purpose assistance without debugging\n- No GDB is available (GDB 9.0+ with Python support required)\n\n## Prerequisites\n\n```bash\n# Install gdb-cli\npip install gdb-cli\n\n# Or from GitHub\npip install git+https:\u002F\u002Fgithub.com\u002FCerdore\u002Fgdb-cli.git\n\n# Verify GDB has Python support\ngdb -nx -q -batch -ex \"python print('OK')\"\n```\n\n**Requirements:**\n- Python 3.6.8+\n- GDB 9.0+ with Python support enabled\n- Linux OS\n\n## How It Works\n\n### Step 1: Initialize Debug Session\n\n**For core dump analysis:**\n```bash\ngdb-cli load --binary \u003Cbinary_path> --core \u003Ccore_path> [--gdb-path \u003Cgdb_path>]\n```\n\n**For live process debugging:**\n```bash\ngdb-cli attach --pid \u003Cpid> [--binary \u003Cbinary_path>]\n```\n\n**Output:** A session_id like `\"session_id\": \"a1b2c3\"`. Store this for subsequent commands.\n\n### Step 2: Gather Initial Information\n\n```bash\nSESSION=\"\u003Csession_id>\"\n\n# List all threads\ngdb-cli threads -s $SESSION\n\n# Get backtrace (with local variables)\ngdb-cli bt -s $SESSION --full\n\n# Get registers\ngdb-cli registers -s $SESSION\n```\n\n### Step 3: Correlate Source Code (CRITICAL)\n\nFor each frame in the backtrace:\n1. **Extract frame info**: `{file}:{line} in {function}`\n2. **Read source context**: Get ±20 lines around the crash point\n3. **Get local variables**: `gdb-cli locals-cmd -s $SESSION --frame \u003CN>`\n4. **Analyze**: Correlate code logic with variable values\n\n**Example correlation:**\n```\nFrame #0: process_data() at src\u002Fworker.c:87\nSource code shows:\n  85: Node* node = get_node(id);\n  86: if (node == NULL) return;\n  87: node->data = value;  \u003C- Crash here\n\nVariables show:\n  node = 0x0 (NULL)\n\nAnalysis: The NULL check on line 86 didn't catch the issue.\n```\n\n### Step 4: Deep Investigation\n\n```bash\n# Examine variables\ngdb-cli eval-cmd -s $SESSION \"variable_name\"\ngdb-cli eval-cmd -s $SESSION \"ptr->field\"\ngdb-cli ptype -s $SESSION \"struct_name\"\n\n# Memory inspection\ngdb-cli memory -s $SESSION \"0x7fffffffe000\" --size 64\n\n# Disassembly\ngdb-cli disasm -s $SESSION --count 20\n\n# Check all threads (for deadlock analysis)\ngdb-cli thread-apply -s $SESSION bt --all\n\n# View shared libraries\ngdb-cli sharedlibs -s $SESSION\n```\n\n### Step 5: Session Management\n\n```bash\n# List active sessions\ngdb-cli sessions\n\n# Check session status\ngdb-cli status -s $SESSION\n\n# Stop session (cleanup)\ngdb-cli stop -s $SESSION\n```\n\n## Common Debugging Patterns\n\n### Pattern: Null Pointer Dereference\n\n**Indicators:**\n- Crash on memory access instruction\n- Pointer variable is 0x0\n\n**Investigation:**\n```bash\ngdb-cli registers -s $SESSION  # Check RIP\ngdb-cli eval-cmd -s $SESSION \"ptr\"  # Check pointer value\n```\n\n### Pattern: Deadlock\n\n**Indicators:**\n- Multiple threads stuck in lock functions\n- `pthread_mutex_lock` in backtrace\n\n**Investigation:**\n```bash\ngdb-cli thread-apply -s $SESSION bt --all\n# Look for circular wait patterns\n```\n\n### Pattern: Memory Corruption\n\n**Indicators:**\n- Crash in malloc\u002Ffree\n- Garbage values in variables\n\n**Investigation:**\n```bash\ngdb-cli memory -s $SESSION \"&variable\" --size 128\ngdb-cli registers -s $SESSION\n```\n\n## Examples\n\n### Example 1: Core Dump Analysis\n\n```bash\n# Load core dump\ngdb-cli load --binary .\u002Fmyapp --core \u002Ftmp\u002Fcore.1234\n\n# Get crash location\ngdb-cli bt -s a1b2c3 --full\n\n# Examine crash frame\ngdb-cli locals-cmd -s a1b2c3 --frame 0\n```\n\n### Example 2: Live Process Debugging\n\n```bash\n# Attach to stuck server\ngdb-cli attach --pid 12345\n\n# Check all threads\ngdb-cli threads -s b2c3d4\n\n# Get all backtraces\ngdb-cli thread-apply -s b2c3d4 bt --all\n```\n\n## Best Practices\n\n- Always read source code before drawing conclusions from variable values\n- Use `--range` for pagination on large thread counts or deep backtraces\n- Use `ptype` to understand complex data structures before examining values\n- Check all threads for multi-threaded issues\n- Cross-reference types with source code definitions\n\n## Security & Safety Notes\n\n- This skill requires GDB access to processes and core dumps\n- Attaching to processes may require appropriate permissions (sudo, ptrace_scope)\n- Core dumps may contain sensitive data - handle with care\n- Only debug processes you have authorization to analyze\n\n## Related Skills\n\n- `@systematic-debugging` - General debugging methodology\n- `@test-driven-development` - Write tests before implementation\n\n## Links\n\n- **Repository**: https:\u002F\u002Fgithub.com\u002FCerdore\u002Fgdb-cli\n- **PyPI**: https:\u002F\u002Fpypi.org\u002Fproject\u002Fgdb-cli\u002F\n- **Documentation**: https:\u002F\u002Fgithub.com\u002FCerdore\u002Fgdb-cli#readme\n","# GDB Debugging Assistant\n\n## Overview\n\nA GDB debugging skill designed for AI agents. Combines **source code analysis** with **runtime state inspection** using gdb-cli to provide intelligent debugging assistance for C\u002FC++ programs.\n\n## When to Use This Skill\n\n- Analyze core dumps or crash dumps\n- Debug running processes with GDB attach\n- Investigate crashes, deadlocks, or memory issues\n- Get intelligent debugging assistance with source code context\n- Debug multi-threaded applications\n\n## Do Not Use This Skill When\n\n- The task is unrelated to C\u002FC++ debugging\n- The user needs general-purpose assistance without debugging\n- No GDB is available (GDB 9.0+ with Python support required)\n\n## Prerequisites\n\n```bash\n# Install gdb-cli\npip install gdb-cli\n\n# Or from GitHub\npip install git+https:\u002F\u002Fgithub.com\u002FCerdore\u002Fgdb-cli.git\n\n# Verify GDB has Python support\ngdb -nx -q -batch -ex \"python print('OK')\"\n```\n\n**Requirements:**\n- Python 3.6.8+\n- GDB 9.0+ with Python support enabled\n- Linux OS\n\n## How It Works\n\n### Step 1: Initialize Debug Session\n\n**For core dump analysis:**\n```bash\ngdb-cli load --binary \u003Cbinary_path> --core \u003Ccore_path> [--gdb-path \u003Cgdb_path>]\n```\n\n**For live process debugging:**\n```bash\ngdb-cli attach --pid \u003Cpid> [--binary \u003Cbinary_path>]\n```\n\n**Output:** A session_id like `\"session_id\": \"a1b2c3\"`. Store this for subsequent commands.\n\n### Step 2: Gather Initial Information\n\n```bash\nSESSION=\"\u003Csession_id>\"\n\n# List all threads\ngdb-cli threads -s $SESSION\n\n# Get backtrace (with local variables)\ngdb-cli bt -s $SESSION --full\n\n# Get registers\ngdb-cli registers -s $SESSION\n```\n\n### Step 3: Correlate Source Code (CRITICAL)\n\nFor each frame in the backtrace:\n1. **Extract frame info**: `{file}:{line} in {function}`\n2. **Read source context**: Get ±20 lines around the crash point\n3. **Get local variables**: `gdb-cli locals-cmd -s $SESSION --frame \u003CN>`\n4. **Analyze**: Correlate code logic with variable values\n\n**Example correlation:**\n```\nFrame #0: process_data() at src\u002Fworker.c:87\nSource code shows:\n  85: Node* node = get_node(id);\n  86: if (node == NULL) return;\n  87: node->data = value;  \u003C- Crash here\n\nVariables show:\n  node = 0x0 (NULL)\n\nAnalysis: The NULL check on line 86 didn't catch the issue.\n```\n\n### Step 4: Deep Investigation\n\n```bash\n# Examine variables\ngdb-cli eval-cmd -s $SESSION \"variable_name\"\ngdb-cli eval-cmd -s $SESSION \"ptr->field\"\ngdb-cli ptype -s $SESSION \"struct_name\"\n\n# Memory inspection\ngdb-cli memory -s $SESSION \"0x7fffffffe000\" --size 64\n\n# Disassembly\ngdb-cli disasm -s $SESSION --count 20\n\n# Check all threads (for deadlock analysis)\ngdb-cli thread-apply -s $SESSION bt --all\n\n# View shared libraries\ngdb-cli sharedlibs -s $SESSION\n```\n\n### Step 5: Session Management\n\n```bash\n# List active sessions\ngdb-cli sessions\n\n# Check session status\ngdb-cli status -s $SESSION\n\n# Stop session (cleanup)\ngdb-cli stop -s $SESSION\n```\n\n## Common Debugging Patterns\n\n### Pattern: Null Pointer Dereference\n\n**Indicators:**\n- Crash on memory access instruction\n- Pointer variable is 0x0\n\n**Investigation:**\n```bash\ngdb-cli registers -s $SESSION  # Check RIP\ngdb-cli eval-cmd -s $SESSION \"ptr\"  # Check pointer value\n```\n\n### Pattern: Deadlock\n\n**Indicators:**\n- Multiple threads stuck in lock functions\n- `pthread_mutex_lock` in backtrace\n\n**Investigation:**\n```bash\ngdb-cli thread-apply -s $SESSION bt --all\n# Look for circular wait patterns\n```\n\n### Pattern: Memory Corruption\n\n**Indicators:**\n- Crash in malloc\u002Ffree\n- Garbage values in variables\n\n**Investigation:**\n```bash\ngdb-cli memory -s $SESSION \"&variable\" --size 128\ngdb-cli registers -s $SESSION\n```\n\n## Examples\n\n### Example 1: Core Dump Analysis\n\n```bash\n# Load core dump\ngdb-cli load --binary .\u002Fmyapp --core \u002Ftmp\u002Fcore.1234\n\n# Get crash location\ngdb-cli bt -s a1b2c3 --full\n\n# Examine crash frame\ngdb-cli locals-cmd -s a1b2c3 --frame 0\n```\n\n### Example 2: Live Process Debugging\n\n```bash\n# Attach to stuck server\ngdb-cli attach --pid 12345\n\n# Check all threads\ngdb-cli threads -s b2c3d4\n\n# Get all backtraces\ngdb-cli thread-apply -s b2c3d4 bt --all\n```\n\n## Best Practices\n\n- Always read source code before drawing conclusions from variable values\n- Use `--range` for pagination on large thread counts or deep backtraces\n- Use `ptype` to understand complex data structures before examining values\n- Check all threads for multi-threaded issues\n- Cross-reference types with source code definitions\n\n## Security & Safety Notes\n\n- This skill requires GDB access to processes and core dumps\n- Attaching to processes may require appropriate permissions (sudo, ptrace_scope)\n- Core dumps may contain sensitive data - handle with care\n- Only debug processes you have authorization to analyze\n\n## Related Skills\n\n- `@systematic-debugging` - General debugging methodology\n- `@test-driven-development` - Write tests before implementation\n\n## Links\n\n- **Repository**: https:\u002F\u002Fgithub.com\u002FCerdore\u002Fgdb-cli\n- **PyPI**: https:\u002F\u002Fpypi.org\u002Fproject\u002Fgdb-cli\u002F\n- **Documentation**: https:\u002F\u002Fgithub.com\u002FCerdore\u002Fgdb-cli#readme\n",{"name":5,"risk":42,"tags":49,"tools":51,"author":57,"source":43,"category":58,"date_added":59,"description":7},[41,24,29,28,27,50],"c",[52,53,54,55,56],"claude-code","cursor","gemini-cli","codex-cli","antigravity","Cerdore","development","2026-03-22","main","7a38d8e7073e61c16eda85681cb32fb68a8657a5","skills-store\u002Fglobal\u002Fgdb-cli","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router","https:\u002F\u002Fgithub.com\u002Fsapsapshen","2026-04-14 21:12:12",{"source":8,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add sapsapshen\u002Fai-memory-router --skill gdb-cli",{"tool":72,"command":73},"bunx","bunx skills add sapsapshen\u002Fai-memory-router --skill gdb-cli",{"tool":75,"command":76},"pnpm","pnpm dlx skills add sapsapshen\u002Fai-memory-router --skill gdb-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fgdb-cli\u002FSKILL.md",true,[],[81,103,128,138,151,169],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":90,"publishedAt":44},"01M71ATQRKG48SH06FQ697T5G9","wechat-search","Search WeChat Official Account articles using OpenClaw's web search and fetch capabilities with compliance-focused design.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Fwechat-search-release\u002FSKILL.md",[87],{"categoryNo":88,"categoryName":89,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000037","律师与法务",[91,92,93,94,95,96,97,98,99,100,101,102],"wechat search","wechat","search","capabilities","openclaw","design","web search","compliance","web","official","fetch","with",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":44},"01M71ATNAVGZB35PFYM2GC5N00","trend-tap","Real-time trending topics aggregator across 7 platforms (X\u002FTwitter, Reddit, Google Trends, Hacker News, Zhihu, Bilibili, Weibo). Trigger: when user says 'trend', 'trends', 'trend tap', '热点', '热搜', or asks what is trending\u002Fhot. Do NOT use web_search — this skill already fetches live data from all platforms with zero API keys.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Ftrend-tap\u002FSKILL.md",[],[110,111,112,113,114,115,93,116,117,118,119,120,121,34,122,123,124,125,126,127],"trend","trend tap","tap","api keys","Bash","time","trending","hacker","aggregator","do","when","brew","data","google","install","read","across","api",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":44},"01M71ATJ9AM5KM15AA8PS302EB","trend-radar","Real-time trending topics aggregator across 7 platforms (X\u002FTwitter, Reddit, Google Trends, Hacker News, Zhihu, Bilibili, Weibo). Trigger: when user says 'trend', 'trends', 'trend pulse', '热点', '热搜', or asks what is trending\u002Fhot. Do NOT use web_search — this skill already fetches live data from all platforms with zero API keys.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Ftrend-radar\u002FSKILL.md",[],[135,136,110,121,34,122,123,114,93,125,137,126,127,120,118,117,116,124,115,113],"trend radar","radar","pulse",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":44},"01M71ATGF095N3EJM9G8SD0BB5","tech-news-daily","每日科技新闻汇——从全球多个 RSS 源抓取最新科技新闻，翻译（英→中）、去重、排版成每日简报。当用户询问科技新闻、科技新鲜事、每日科技、技术动态、Daily Tech News 或类似表达时触发此技能。","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Ftech-news-daily\u002FSKILL.md",[],[145,146,147,148,149,150],"news","tech","tech news daily","daily","rss","翻译",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":162,"publishedAt":44},"01M71ATFAEAMQ17M70NQNY7SR8","summarize","Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Fsummarize\u002FSKILL.md",[157],{"categoryNo":158,"categoryName":159,"taxonomyType":160,"taxonomyTypeDesc":161},"01JBSEEDCAT000000000000021","资料检索与研究","SCENARIO","使用场景",[153,99,163,26,164,102,121,165,166,167,112,168,124],"Audio","youtube","images","https","files","pdfs",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":44},"01M71ATDNS3R0M4H936PACQAWZ","sonoscli","Control Sonos speakers (discover\u002Fstatus\u002Fplay\u002Fvolume\u002Fgroup).","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Fsonoscli\u002FSKILL.md",[],[171,176,177,178,124,179,166,180,181,182,183,184],"status","play","go","latest","github","discover","control","cmd","volume"]