From htmlgraph
Diagnose bugs, errors, and issues with root cause analysis. Use when asked to diagnose, debug, investigate, or find root cause of any problem — whether a HtmlGraph bug ID, error message, unexpected behavior, or delegation audit.
npx claudepluginhub shakestzd/htmlgraph --plugin htmlgraphThis skill uses the workspace's default tool permissions.
General-purpose diagnostic skill for investigating bugs, errors, and unexpected behavior.
Provides Ktor server patterns for routing DSL, plugins (auth, CORS, serialization), Koin DI, WebSockets, services, and testApplication testing.
Conducts multi-source web research with firecrawl and exa MCPs: searches, scrapes pages, synthesizes cited reports. For deep dives, competitive analysis, tech evaluations, or due diligence.
Provides demand forecasting, safety stock optimization, replenishment planning, and promotional lift estimation for multi-location retailers managing 300-800 SKUs.
General-purpose diagnostic skill for investigating bugs, errors, and unexpected behavior.
/htmlgraph:diagnose <bug-id> # Investigate a specific bug
/htmlgraph:diagnose <error or symptom> # Investigate an error or behavior
/htmlgraph:diagnose --delegation # Audit delegation compliance (legacy mode)
Trigger on:
bug-5126e3cfAll diagnostic work must be attributed:
htmlgraph bug start <bug-id> before investigatinghtmlgraph bug create "Error: description" --track <trk-id> then start ithtmlgraph help for available commandsIf given a bug ID (matches bug-*):
htmlgraph bug start <bug-id>htmlgraph bug show <bug-id>If given an error message or symptom:
htmlgraph bug create "<summary>" --track <trk-id> then htmlgraph bug start <id>If --delegation flag:
If no arguments:
htmlgraph recommend --top 3Dispatch the debugger agent with a structured prompt:
Agent(
subagent_type="htmlgraph:debugger",
description="Diagnose: <bug summary>",
prompt="""
## Bug: <bug-id> — <title>
### Symptom
<description from bug or user>
### Investigation Steps
1. Search codebase for relevant code paths
2. Read the source files involved
3. Identify the root cause with file paths and line numbers
4. Check if the issue affects other cases beyond the reported one
5. Query SQLite or run CLI commands to verify current state
6. Propose a fix (describe what to change, don't implement)
### Report Format
- **Root cause**: What's wrong and where (file:line)
- **Blast radius**: Does this affect other cases?
- **Suggested fix**: What code change resolves it
- **Verification**: How to confirm the fix works
"""
)
After the agent reports back, present findings to the user in this format:
## Diagnosis: <bug-id>
**Root cause:** <one-line summary>
**Location:** `<file>:<line>`
**Blast radius:** <scope of impact>
### Details
<agent's detailed findings>
### Suggested Fix
<what to change>
### Next Steps
- [ ] Implement fix
- [ ] Run tests: `go test ./...`
- [ ] Verify: <specific verification command>
When --delegation is specified, audit the current session's delegation compliance:
htmlgraph status
sqlite3 .htmlgraph/htmlgraph.db "
SELECT tool_name, COUNT(*) as count
FROM agent_events
WHERE session_id = (SELECT session_id FROM agent_events ORDER BY timestamp DESC LIMIT 1)
GROUP BY tool_name ORDER BY count DESC;
"
Compute score: delegations / (delegations + direct_impl + git_writes) * 100
Present report:
## Delegation Diagnostic
### Score: X% (N/M actions delegated)
### Gaps Found
| Time | Tool | Action | Should Use |
|------|------|--------|------------|
| ... | ... | ... | ... |
### Recommendations
1. ...