doctor
Diagnose why pi-flows, the Anthropic-messages bridge, model resolution, a pi install, a peer, a plugin/bridge, or a build/reload is broken in the pi-agent-dashboard. Derives every fact live (works with the server down). Use on "flow won't show", "bridge waiting_peers", "pi version mismatch", "which pi is this using", "diagnose the dashboard", "doctor".
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 348
- Forks
- 56
01 前言 Front Matter
- name
- doctor
- license
- MIT
- description
- Diagnose why pi-flows, the Anthropic-messages bridge, model resolution, a pi install, a peer, a plugin/bridge, or a build/reload is broken in the pi-agent-dashboard. Derives every fact live (works with the server down). Use on "flow won't show", "bridge waiting_peers", "pi version mismatch", "which pi is this using", "diagnose the dashboard", "doctor".
02 资源文件 30
- 脚本_lib/checks.ts8.5 KB
- 脚本_lib/derive-tokens.ts2.1 KB
- 脚本_lib/front-matter.ts3.5 KB
- 脚本_lib/index.ts486 B
- 脚本_lib/knowledge-hash.ts3.0 KB
- 脚本_lib/provenance.ts1.5 KB
- 脚本_lib/regenerate.ts3.4 KB
- 脚本_lib/router.ts5.1 KB
- 脚本_lib/server-tier.ts1.9 KB
- 参考文档AGENTS.md4.6 KB
- 其他modules/apple-tools.knowledge.hash17 B
- 参考文档modules/apple-tools.md2.4 KB
- 其他modules/build-reload.knowledge.hash17 B
- 参考文档modules/build-reload.md1.9 KB
- 其他modules/env-node.knowledge.hash17 B
- 参考文档modules/env-node.md1.9 KB
- 其他modules/install-topology.knowledge.hash17 B
- 参考文档modules/install-topology.md2.1 KB
- 其他modules/mcp-builtin.knowledge.hash17 B
- 参考文档modules/mcp-builtin.md3.0 KB
- 其他modules/model-resolution.knowledge.hash17 B
- 参考文档modules/model-resolution.md2.2 KB
- 其他modules/oauth-redirect-base.knowledge.hash17 B
- 参考文档modules/oauth-redirect-base.md3.1 KB
- 其他modules/peers.knowledge.hash17 B
- 参考文档modules/peers.md2.0 KB
- 其他modules/pi-resolution.knowledge.hash17 B
- 参考文档modules/pi-resolution.md3.7 KB
- 其他modules/plugins-bridges.knowledge.hash17 B
- 参考文档modules/plugins-bridges.md3.3 KB
03 SKILL.md 正文
doctor — modular diagnostic skill
This SKILL.md is a thin router. It owns NO capability knowledge. Every
diagnostic fact lives in a self-contained capability module under modules/,
read on demand. The router derives its symptom map and sweep order from each
module's front-matter (symptoms:, depends-on:) — so adding a module MD
auto-registers it with no edit here.
Modules
Each modules/<id>.md follows a uniform 5-part contract: SCOPE · KNOWLEDGE ·
CHECKS · FIX ROUTING · DERIVES-FROM (+ a <id>.knowledge.hash sidecar).
| id | scope |
|---|---|
env-node |
Node runtime + OS/platform baseline |
pi-resolution |
every pi install location, divergence + floor |
peers |
pi-flows, tier-1/tier-2, name-skew |
plugins-bridges |
bridge registration (packages[] vs dashboardPluginBridges) + activation |
build-reload |
three-component rebuild/reload gaps |
install-topology |
npm-global / Electron / Docker / dev + topology fixes |
model-resolution |
model:resolve handler, roles/preset, @role resolvability |
apple-tools |
iMCP (Apple PIM) provisioning state for the apple-tools plugin |
oauth-redirect-base |
which OAuth redirect base won + its tier (reverse-proxy redirect_uri_mismatch) |
mcp-builtin |
pi built-in MCP + per-session pi-dashboard registration (adapter installed, shadowing entry, non-strict mcp.json) |
How to route
The router logic lives in _lib/router.ts (load modules, build the symptom
map, topo-sort the sweep DAG, plan short-circuit). Use it — do not hand-keep a
catalog.
- Symptom phrase (e.g. "flow won't show") →
routeSymptom(modules, phrase)returns exactly one module id. Read that module MD and run its CHECKS. - Named capability (e.g. "check peers") → read
modules/peers.mddirectly. - Full sweep (no hint, or "full") →
buildSweepOrder(modules)orders modules env → pi → peers → plugins → build → runtime. Run in order; when a module fails,planSweep(modules, failed)marks every dependent modulesuppressedso a lower-layer failure (missing pi) is reported as the ROOT CAUSE and NOT re-reported as a broken bridge.
Fact provenance (server up or down)
Checks are shell-first: they read files + createRequire and work with the
dashboard server DOWN. When the server is reachable, _lib/server-tier.ts
(fetchHealth, fetchPiCoreVersions) enriches the report as an ADDITIVE tier.
Every reported fact is labelled file-derived or server-enriched
(_lib/provenance.ts) so a partial (server-down) run is never mistaken for a
clean bill.
Two-tier self-update
- Tier 1 (derive-on-run) — versions, peer names, resolved paths, the recommended set are read from live sources every run; they can never rot.
- Tier 2 (knowledge-hash) — each module stores
<id>.knowledge.hashover the semantic tokens of itsderives-fromsources (_lib/knowledge-hash.ts). On run,checkDrift(id, liveTokens, hashPath)compares live vs stored; a mismatch flags that module's authored prose as possibly stale.
--regenerate <module>
When a module's hash drifts:
- Re-derive the module's tables from its live
derives-fromsources. - Propose edits to the module's authored prose for confirmation — never overwrite silently.
- After confirmation,
writeStoredHash(hashPath, liveHash)to clear the drift.
Regeneration is always confirmed. The AGENTS.md Documentation Update Protocol
maps each source-of-truth change to the single module to regenerate (peer
rename → peers; pi floor bump → pi-resolution; new install platform →
install-topology; new bridge slot → plugins-bridges).
Report format
For each module report: PASS / FAIL, the resolved path(s) + version(s) per
tier, the provenance of each fact, and — on FAIL — the matching FIX ROUTING
remediation for the detected install topology. Never report a version without
the resolved path it came from.
04 同仓库更多 Skills
youtube-srt
Download YouTube subtitles (SRT + timestamped TXT) for a channel, playlist or video via yt-dlp, no media download; optionally mine them into a categorized catalog (e.g. AI models by function, open weights, local runnability, hardware tier). Use on "download the srt of this video", "transcripts of channel X for the last N months", "catalog the models AI Search talked about", "update docs/models".
video-transcription
Transcribe video and audio files to SRT subtitles with speaker diarization using the Soniox (default) or AssemblyAI API. Use when the user wants to transcribe meetings, videos, or audio files. Supports MKV, MP4, MOV, M4A, MP3. Triggers on "/transcribe", "transcribe my meetings", "transcribe videos in ~/Movies", or any request to convert audio/video to text.
speaker-id
Name anonymous diarized SRT speakers from a persistent local voiceprint library and repair speaker drift; local, CPU-only, no API key. Triggers "who is speaker 2", "put names on the transcript", "label the meeting SRT", "the diarization split one person into three", "enroll my voice". Backed by the pi-voiceid CLI.
veo-showreel-production-kit
Turn a video timeline + voiceover into a reproducible, sliceable Veo 3.1 prompt package with a consistency anchor and AI storyboard sketches.
veo-generator
Render a scripted video project into mp4 clips with the Google Veo 3.1 API. Reads a project's shot package (shots/*.md), one clip per camera cut, reusing each shot's prompt and sketch — world anchor only with `--with-reference`, seed unless `--no-seed`. Use on "render the Veo video for <project>", "generate the videos from the shot scripts", "make the clips with Veo".
hyperframes-showreel
Turn real screen and site footage into a rhythmic showreel rendered with HyperFrames: sampling, edit script, redacted clips, a generated composition, Veo only as additive FX, music edit + camera punches, delivery render and export QA. Use on "make a showreel from these recordings", "build the HyperFrames video", "assemble the footage edit", "render and QA the showreel".