shynlee04/hivemind-plugin/systematic-debugging-hivemind
Claude Code and agent skill by shynlee04/hivemind-plugin
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install shynlee04/hivemind-plugin/systematic-debugging-hivemindSKILL.md
Skill: systematic-debugging-hivemind
Overview
This skill provides the systematic debugging methodology specifically adapted for the HiveMind v3.0 Relational Cognitive Engine. It instructs agents on HOW to debug using HiveMind-specific commands and hooks.
Core Principle
This skill DOES NOT execute code. It instructs the Agent on WHICH Commands to use and in WHAT sequence.
When to Use
Activate this skill when:
- Test failures occur (
npm testfails) - LSP diagnostics publish errors
- Runtime errors in production
- Unexpected behavior in hooks or commands
The Debugging Phases
Phase 1: Evidence Gathering (Command: read, glob, grep)
Step 1.1: Capture the Failure Signal
Step 1.2: Read the Error Output
- For test failures: Run
npm testand capture full output - For LSP errors: Read the diagnostic file
- For runtime errors: Capture stack trace
Step 1.3: Identify the Scope
Phase 2: Root Cause Investigation (Command: scan_hierarchy, recall_mems)
Step 2.1: Check for Known Solutions
Step 2.2: Analyze Context Drift
Step 2.3: Trace the Data Flow
- Identify where the bad value originates
- Trace up the call stack to find source
- Use
grepto find all references
Phase 3: Hypothesis Formation (Agent Reasoning)
Step 3.1: State the Hypothesis
Step 3.2: Isolate the Problem
- Create minimal reproduction
- Test in isolation
Phase 4: Verification & Fix (Command: write, bash)
Step 4.1: Create Failing Test First
Step 4.2: Apply Minimal Fix
- ONE change at a time
- No "while I'm here" improvements
Step 4.3: Verify
Step 4.4: Save to Memory
HiveMind-Specific Debugging Patterns
Pattern 1: Hook Debugging
When debugging hooks (src/hooks/*.ts):
- Check Hook Registration
- Verify Event Binding
- Test with Minimal Input
Pattern 2: Command Debugging
When debugging commands (bin/hivemind-tools.cjs):
- Verify Command Exists
- Check Command Implementation
- Test Command in Isolation
Pattern 3: Session/State Debugging
When debugging state management:
- Inspect Current State
- Check Hierarchy Integrity
- Review Recent Memory
Pattern 4: Test Suite Debugging
When debugging test failures:
- Run Single Test
- Run in Watch Mode
- Check Test File Structure
Pre-Flight Checklist (BEFORE Output)
- [ ] Did I call
hivemind_session({ action: "start" })first? - [ ] Did I gather evidence before proposing fixes?
- [ ] Did I check memory for known solutions?
- [ ] Did I verify the hypothesis with minimal test?
- [ ] Did I save the solution to memory?
Red Flags - STOP
If you catch yourself thinking:
- "Quick fix for now, investigate later"
- "Just try changing X and see if it works"
- "I think X is probably the cause"
ALL of these mean: STOP. Return to Phase 1.
Related Skills
parallel-debugging-hivemind: For concurrent hypothesis testingdebug-orchestration: For orchestrating multiple debug agentshivemind-governance: For maintaining context during long debug sessionsevidence-discipline: For verification requirements
File References
- Hook patterns:
src/hooks/*.ts - Command patterns:
bin/hivemind-tools.cjs,src/lib/*.ts - State patterns:
.hivemind/state/,graph/*.json - Test patterns:
tests/**/*.test.ts
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/systematic-debugging-hivemind/SKILL.md
Popularity
- Repository stars
- 50
- Repository forks
- 17
- Repository npm downloads, 7 days
- 7
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 9 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/shynlee04/hivemind-plugin/systematic-debugging-hivemind)