Agent skill
coredump
Core Dump Analysis skill for the ikigai project
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/coredump
SKILL.md
Core Dump Analysis
Description
Post-mortem debugging using core dumps for crashes that occur before gdbserver can catch them.
When to Use
- Crashes during very early startup
- Crashes before gdbserver fully initializes
- When you need to reproduce and analyze offline
- Segfaults, aborts, or other fatal signals
Enable Core Dumps
# Enable for current session
ulimit -c unlimited
# Verify
ulimit -c
Generate and Analyze
# Run until crash
./ikigai
# Produces: core or core.<pid>
# Analyze
gdb ./ikigai core
Key Commands
bt # Backtrace - where it crashed
bt full # Backtrace with local variables
frame N # Select stack frame
info locals # Variables in current frame
print var # Inspect variable
list # Source at crash point
info registers # CPU state at crash
x/20x $sp # Examine stack memory
Finding the Core File
# Check core pattern
cat /proc/sys/kernel/core_pattern
# Common locations
ls -la core*
ls -la /var/crash/
Workflow
- Enable core dumps:
ulimit -c unlimited - Run app until crash
- Load core:
gdb ./ikigai core - Get backtrace:
bt full - Inspect frames and variables
References
- GDB manual: https://sourceware.org/gdb/current/onlinedocs/gdb/
- See
gdbserver.mdfor live debugging
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?