From cogitation
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.
npx claudepluginhub merewhiplash/engram-cogitator --plugin cogitationThis skill uses the workspace's default tool permissions.
Find the root cause before attempting fixes.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
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.