A diagnostic tool for OpenClaw agents -- checks skill registry connectivity, AGENTS.md setup, config file validity, and installed skill health. Use when your...
---
name: skillnote-doctor
description: "A diagnostic tool for OpenClaw agents -- checks skill registry connectivity, AGENTS.md setup, config file validity, and installed skill health. Use when your setup seems broken, skills aren't loading, or you want to audit your agent's configuration."
version: "1.0.1"
metadata: {"openclaw": {"emoji": "๐ฉบ", "triggers": ["diagnose", "check setup", "why isn't", "debug", "broken", "not working"]}}
---
# SkillNote Doctor
Diagnose your SkillNote + OpenClaw integration in 6 checks. Run every check even if an earlier one fails โ the user needs the full picture. Report โ pass or โ fail with specific remediation for each.
## Check 1 โ clawhub binary
Run: `which clawhub`
- โ Pass: binary found
- โ Fail: `clawhub not found. Install from https://clawhub.ai or run: npm install -g clawhub`
## Check 2 โ SkillNote config
Read `~/.openclaw/skills/skillnote/config.json`.
- โ Pass: file exists, valid JSON, `host` is non-empty
- โ Fail (missing): `Config not found. SkillNote is not installed. Install with: clawhub install skillnote && clawhub install skillnote-resolver`
- โ Fail (invalid JSON): `Config is malformed. Delete ~/.openclaw/skills/skillnote/config.json and re-run skillnote setup.`
- โ Fail (empty host): `Config exists but host is empty. Ask your agent to re-setup skillnote.`
## Check 3 โ Registry reachability
GET `<host>/v1/skills?limit=1`
- โ Pass: HTTP 200
- โ Fail (timeout/refused): `SkillNote at <host> is unreachable. Verify the URL and that your instance is running. Self-host guide: https://github.com/luna-prompts/skillnote`
- โ Fail (non-200): `Unexpected HTTP <N>. Check SkillNote server logs.`
## Check 4 โ AGENTS.md marker
Read `~/.openclaw/workspace/AGENTS.md`. Check for exact string `<skillnote v1>`.
- โ Pass: marker found
- โ Fail: `AGENTS.md marker missing. Ask your agent: "re-graft skillnote into AGENTS.md" โ or reinstall: clawhub install skillnote`
## Check 5 โ skillnote-resolver installed
Check `~/.openclaw/skills/skillnote-resolver/SKILL.md` exists.
- โ Pass: file found
- โ Fail: `skillnote-resolver not found. Install with: clawhub install skillnote-resolver`
## Check 6 โ resolver endpoint
POST `<host>/v1/openclaw/context-bundle` with body `{"task_summary": "doctor health check", "max_skills": 1}`
- โ Pass: HTTP 200, `skills` array present
- โ Fail: `Context bundle endpoint unavailable. Check SkillNote server version โ endpoint requires v0.3.0+`
---
## Summary
After all checks report:
```
SkillNote health: X/6 checks passed
```
If all 6 pass:
> Your SkillNote integration looks healthy. If you're still seeing issues, check https://github.com/luna-prompts/skillnote/issues
If Check 2 fails with "Config not found" (SkillNote not installed at all):
> SkillNote not detected. Install with:
> ```
> clawhub install skillnote
> clawhub install skillnote-resolver
> ```
> Then follow the 5-step setup that runs automatically on first load.
---
# Hard rules
- Never modify any file during diagnosis โ read-only.
- Never POST to any endpoint other than `/v1/openclaw/context-bundle`.
- Run all 6 checks regardless of earlier failures.
- Never guess or invent the host URL โ read it strictly from config.json.
don't have the plugin yet? install it then click "run inline in claude" again.