Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Diagnose Promptbook setup — check config, hooks, API key, and session tracking health. Use when Promptbook seems broken or the user wants to verify their setup. Trigger with "/doctor" or "check promptbook health".
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 55% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -28% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 73% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-12 | ✗→✓ | ▲ Improved | -13% | 0% |
Run diagnostics to verify Promptbook is set up correctly. Checks config, consent, API key validity, and recent session activity. Presents a clear pass/fail report.
/setup firstRun these checks in order via Bash and report each result.
bashif [ -f "$HOME/.promptbook/config.json" ]; then echo "CONFIG_FOUND" # Check permissions — should be 600 for security stat -f "%Lp" "$HOME/.promptbook/config.json" 2>/dev/null || stat -c "%a" "$HOME/.promptbook/config.json" 2>/dev/null # Check required fields exist (without displaying values) node -e "const c=JSON.parse(require('fs').readFileSync('$HOME/.promptbook/config.json','utf8'));console.log('has_api_key:',!!c.api_key);console.log('has_api_url:',!!c.api_url);console.log('auto_summary:',c.auto_summary);console.log('telemetry_consent:',c.telemetry_consent===true)" else echo "NO_CONFIG" fi
If no config file found or telemetry_consent is false: tell the user to run /setup first.
Test the API key without displaying it:
bashAPI_KEY=$(node -e "console.log(JSON.parse(require('fs').readFileSync('$HOME/.promptbook/config.json','utf8')).api_key)") curl -sL -o /dev/null -w "%{http_code}" -X POST "https://promptbook.gg/api/auth/verify-setup" \ -H "Authorization: Bearer $API_KEY"
/setup againCheck for recent session data files to verify hooks are firing:
bashls -lt ~/.promptbook/sessions/ 2>/dev/null | head -5
If no session files found: hooks may not be firing. Suggest starting a new Claude Code session.
Present results as a clear diagnostic report:
Promptbook Doctor
─────────────────
✓ Config: Found (~/.promptbook/config.json)
✓ Consent: Granted during setup
✓ API Key: Valid and verified
✓ Activity: Last session 2 hours agoUse ✓ for passing checks, ✗ for failures, ⚠ for warnings.
✗ Config and direct user to /setup✗ Consent and direct user to /setup✗ API Key and suggest re-running /setup⚠ Activity and suggest starting a new sessionUser: /doctor
Agent: Promptbook Doctor
─────────────────
✓ Config: Found (~/.promptbook/config.json), permissions 600
✓ Consent: Granted during setup
✓ API Key: Valid and verified (HTTP 200)
✗ Activity: No recent sessions found
Everything looks good except no sessions have been tracked yet.
Start a new Claude Code session to see your first build.Other measured skills in the registry, with their headline benchmark lift.