一键导入
pai-doctor
Health probe suite for the PAI ecosystem. Use when user says doctor, is everything ok, health check, what's broken, pai status.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Health probe suite for the PAI ecosystem. Use when user says doctor, is everything ok, health check, what's broken, pai status.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Hourly Claude subscription usage guardrail. Reads PAI canonical usage cache (~/.claude/MEMORY/STATE/usage-cache.json) for 5h/7d window percentages. Voice-alert via pai-pulse if threshold exceeded. Use when user says usage, cost, am I burning too much, take a break, claude limit, rate limit.
POST to PAI canonical Pulse daemon on 127.0.0.1:31337 for TTS notifications via ElevenLabs SDK encapsulated server-side. Use when user says notify, tell me when, mobile push, voice alert, send a notification, or wants asynchronous voice delivery from a long-running task.
Daily digest of PAI ecosystem state pushed to mobile at 18:00 — Claude 5h/7d usage, pending proposals, doctor failures, leak detector flags, mood/git/learning signals from PAI Algorithm. Mirrors PAI canonical statusline visible-section into single message. Use when user says daily summary, what happened today, banner, digest, brief me.
Hourly upstream watcher for 4 PAI ecosystem repos (oh-my-claudecode, Personal_AI_Infrastructure, pai-anywhere, pai-review-mode). Fetches origin, computes impact score, writes JSON proposal to disk, posts mobile alert via pai-pulse. Use when user says check upstream, watch repos, what changed, upstream bump, propose upgrade.
Persistent knowledge-base workspace for Hermes Agent. Ingests, indexes, and searches domain-specific documents (OSINT newsletters, security SOPs, research notes) in a curated filesystem hierarchy. Use when user says ingest document, add to knowledge base, search my notes, find in workspace, index folder, workspace search, osint archive, or sop lookup.
oh-my-claudecode (OMC) harness — Claude Code orchestration. Use when user says ralph, team, autopilot, ultrawork, ultrapilot, or wants Claude Code session with hooks/skills/agent catalog. Routes to local `omc` CLI binary.
| name | pai-doctor |
| description | Health probe suite for the PAI ecosystem. Use when user says doctor, is everything ok, health check, what's broken, pai status. |
User intent:
pai-doctor has no standalone script and is not itself on $PATH. It shells
out to the installed pai-anywhere binary, which has two modes:
pai-anywhere doctor [--json] — read-only host inspection (18 checks). Exit 0.pai-anywhere doctor --post-install [--json] (alias pai-anywhere verify) —
install-integrity probes (15). Exit 2 if any probe fails.Prefer --json and read the checks / probes array; each item is
{id, title, status, summary, details?}. The plain-text form ends with
Summary: N pass, M warn, K fail, … (info in host mode, skip in post-install).
There is no --fix flag — do not pass one.
pai-anywhere doctor (18 checks)host.os, host.userdep.bun, dep.git, dep.tailscale, dep.fail2ban, dep.ufwtailscale.status, tailscale.serve, network.listeners,
pulse.bind, firewall.ufw, hardening.fail2ban, ssh.dropinprofile.existing_claude, profile.managed_user,
profile.managed, manifestpai-anywhere doctor --post-install (15 probes)profile.exists, profile.isolated, profile.user_claude_preservedpai.claude_md, pai.system_prompt, pai.algorithm_latest,
pai.settings_json, pai.hooks_configured, pai.hook_filespulse.loopback, pulse.health, gateway.service,
gateway.auth_gatetailscale.private_serve, manifest.validStatus values: pass, warn, fail, plus info (host mode) / skip (post-install).
Via the Hermes terminal toolset: pai-anywhere doctor --json (add --post-install
for integrity). ~1–2s on a Linux VPS. Zero AI cost.
Terminal blocked by Tirith? On pending_approval / pattern_key: "tirith:unknown",
run it through execute_code:
subprocess.run(["pai-anywhere","doctor","--json"], capture_output=True, text=True, timeout=10).
Do not retry terminal unchanged.
Translate the pai-anywhere JSON into the digest schema pai-statusline-banner consumes:
schema: pai-hermes.doctor.v1
generatedAt: ISO-8601
passCount / warnCount / failCount: integer
probes: array of {id, title, status}
Or just extract the final Summary: counts for a one-line report.
pai-anywhere must be installed and on $PATH. If absent, fall back to a minimal
check: Pulse loopback HTTP 200 + $PAI_PROPOSALS_DIR writable.warn/skip/info on a headless VPS (no audio, Tailscale
Serve not configured yet, managed PAI profile not created).pulse.bind / pulse.loopback expect Pulse on loopback (127.0.0.1:31337); a
non-loopback bind is flagged.--post-install exits 2 when any probe fails — treat exit 2 as "fails present",
not as a failure to run the tool.--post-install, focus on fail probespai-anywhere verify before chaining to omc