rexleimo/harness-cli/debug-hub
Claude Code and agent skill by rexleimo/harness-cli
- community
Checking that the SKILL.md file is still in the repository.
Evidence-first debugging WITH MCP tools. Use when debug_hub MCP server is available. Inject log calls, collect via HTTP API (port 39200), analyze through MCP tools, clean up when done. If debug_hub MCP is unavailable, use `debug` skill (bundled Python collector) instead.
Install
npx vskill@latest install rexleimo/harness-cli/debug-hubSKILL.md
Debug-Hub
Working directory: any (scripts run from project root by convention)
Evidence-first debugging: inject zero-dependency log calls, collect via debug-hub HTTP API, analyze through MCP tools, strip all injected code when done.
Inline Reporter
Inject once at the top of the first file you modify. Node 18+ / modern browsers, zero npm deps:
Python target? Use the debug skill instead — it bundles a Python collector that sends to the same debug-hub API. This applies regardless of whether debug_hub MCP is available; the __dh helper is JavaScript-only.
Marker Convention
Every injected debug line carries DH:<sessionId>. Cleanup strips any line containing this string.
MCP Tools
| Tool | What it does | |
|---|---|---|
debug_hub.start_session { objective } | Start session, returns sessionId | |
debug_hub.instrument { sessionId, files: [{path, lineCount}] } | Track files with injected debug code | |
debug_hub.search_logs { keyword, level, since, traceId } | Query collected runtime logs | |
debug_hub.get_stats | Error counts, level breakdown | |
debug_hub.cleanup_instruments { sessionId, dryRun?, workspace? } | Remove all injected debug lines |
Other tools: list_traces, get_trace, compact_context, health — see MCP tool list.
When NOT to Use This Skill
Debug-hub is for runtime bugs where you can reproduce the issue and need to observe variable state, timing, or control flow at runtime. Do NOT use debug-hub for:
- Compile-time / type errors: TypeScript type errors, syntax errors, lint failures — read the error message and fix the code directly. No runtime injection needed.
- CI/CD platform differences: Path separators, case sensitivity, missing dependencies in CI — inspect CI logs and config files, not runtime state.
- Configuration / matching rule problems: Skill trigger conflicts, wrong config values, permission misconfig — read and fix the config files directly.
- Non-JavaScript environments: The
__dhhelper requires Node 18+ or browserfetch. For Python, use thedebugskill (bundled Python collector) instead. For other languages, use platform-native debug tools.
When a bug doesn't fit debug-hub's scope, state why explicitly and switch to the appropriate approach rather than forcing the injection workflow.
Workflow
- Start:
debug_hub.start_session { objective: "..." }— note thesessionId - Hypothesize: 3-5 testable hypotheses about root cause
- Inject: write
__dhhelper + marked log calls, one per hypothesis
- CRG (if codemap installed):
semantic_search_nodes(query="<error-related term>")→query_graph(pattern="callees_of", target="<suspected function>")→detect_changes(base="HEAD~5")for structural evidence before injecting
- Record:
debug_hub.instrument { sessionId, files: [{path, lineCount}] }— use absolute paths - Reproduce: ask user to run the failing scenario
- Analyze:
debug_hub.search_logs { keyword: "<sessionId>" }→ CONFIRMED/REJECTED/INCONCLUSIVE - Fix: apply only after logs prove root cause; keep instrumentation
- Verify: user reproduces again, compare before/after
- Cleanup:
dryRun: truefirst, then executedebug_hub.cleanup_instruments { sessionId }
Cleanup has two modes:
- Explicit: uses instrument records → fast, precise
- Discovery:
{ sessionId, workspace: "/project/root" }→ greps filesystem, fallback when agent forgotinstrument
Guardrails
- MUST NOT log secrets, tokens, passwords, API keys, PII, or session cookies
- 2-10 log calls max, each mapped to a hypothesis
- MUST run
dryRun: truebefore executing cleanup - MUST NOT remove instrumentation before post-fix verification succeeds
- MUST NOT leave injected code behind; the
__dhhelper and every call site must go try/catchin__dh= target app keeps running if debug-hub is down
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill-sources/debug-hub/SKILL.md
Popularity
- Repository stars
- 49
- Repository forks
- 6
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/rexleimo/harness-cli/debug-hub)