Agent skill · software engineering · sickn33
gdb-cli
GDB debugging assistant for AI agents - analyze core dumps, debug live processes, investigate crashes and deadlocks with source code correlation
Why this skill is useful
Adds executable commands for GDB debugging that enhance the AI's ability to analyze crashes and core dumps effectively.
What it needs
Requires gdb-cli, python installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.
What this skill does
GDB Debugging Assistant Overview A 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/C++ programs. When to Use This Skill Analyze core dumps or crash dumps Debug running processes with GDB attach Investigate crashes, deadlocks, or memory issues Get intelligent debugging assistance with source code context Debug multi-threaded applications Do Not Use This Skill When The task is unrelated to C/C++ debugging The user needs general-purpose assistance without debugging No GDB is available (GDB 9.0+ with Python support required) Prerequisites Requirements: Python 3.6.8+ GDB 9.0+ with Python support enabled Linux OS How It Works Step 1: Initialize Debug Session For core dump analysis: For live process debugging: Output: A sessionid like "sessionid": "a1b2c3". Store this for subsequent commands. Step 2: Gather Initial Information Step 3: Correlate Source Code (CRITICAL) For each frame in the backtrace: 1. Extract frame info: {file}:{line} in {function} 2. Read source context: Get ±20 lines around the crash point 3. Get local variables: gdb-cli locals-cmd -s $SESSION --frame <N> 4. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sickn33/gdb-cli