Provides systematic debugging workflow that finds root cause before fixing. Fix phase uses @tdd to write a failing test reproducing the bug, then fix. Searches EC for prior issues and stores learnings. Use when encountering bugs, test failures, or unexpected behavior.
Systematically debugs code by investigating root causes before applying fixes with test-driven development.
npx claudepluginhub merewhiplash/engram-cogitatorThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Find the root cause before attempting fixes.
Announce: "I'm using the debugging skill to investigate this issue."
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
Investigate → Analyze → Hypothesize → Fix
Before any fix attempt:
ec_search:
query: [error message or symptom]
ec_search:
query: [affected component]
type: learning
Check if we've seen this before. Prior solutions save time.
git log --oneline -10
git diff HEAD~5
What changed that could cause this?
Where does the bad value come from?
Look for similar working code:
Search EC for established patterns:
ec_search:
query: [pattern name]
type: pattern
What's different between working and broken?
State clearly: "I think X is the root cause because Y"
Test with the smallest possible change. One variable at a time.
If hypothesis wrong: Form new hypothesis. Don't pile fixes.
Reproduce the bug in a test first (RED).
Address the root cause, not the symptom (GREEN).
Load project config for commands:
ec_search:
query: project config
type: config
Run verification:
If root cause was non-obvious:
ec_add:
type: learning
area: [component]
content: [What was wrong, why it happened, how to recognize it]
rationale: Discovered while debugging [symptom]
Good learnings to store:
Stop and return to Phase 1 if:
Question the architecture:
Search EC for architectural decisions:
ec_search:
query: [component] architecture
type: decision
Discuss before attempting fix #4.
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.