Agent skill
debug-build
Configures and builds YARS with debug symbols for debugging with valgrind or gdb
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/debug-build
SKILL.md
Debug Build
This skill creates a debug build of YARS with full debug symbols for debugging sessions.
Usage
Automatically invoked when:
- User asks for a debug build
- Preparing to use valgrind or gdb
- Need to debug crashes or memory issues
- Investigating specific runtime behavior
Steps
# Navigate to build directory
cd build
# Configure for debug mode
cmake -DCMAKE_BUILD_TYPE=Debug ..
# Build with parallel jobs
make -j4
Success Criteria
- ✅ CMake configures with Debug build type
- ✅ Compilation includes debug symbols (-g flag)
- ✅ No optimizations that would interfere with debugging
- ✅ Binary ready for valgrind/gdb usage
Notes
- Debug builds are larger and slower than release builds
- Optimizations are disabled for better debugging experience
- Use this before running memory leak checks or debuggers
- To switch back to release, use the release-build skill
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?