autopilot-doctor SKILL.md skillB
autopilot-doctor from strzhao/autopilot is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add strzhao/autopilot/autopilot-doctor@git:20260927.fed289ePins git:20260927.fed289e in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- strzhao/autopilot
- Path
plugins/autopilot/skills/autopilot-doctor/SKILL.md- Versions recorded
- 5
- Latest version
- git:20260927.fed289e, committed Sep 27, 2026
- First version recorded
- Jul 19, 2026
- Size
- 34,543 bytes
- Repository stars
- 32
- License
- MIT
诊断项目工程健康度,评估 autopilot 兼容性并提供改进建议。当用户说"诊断"、"doctor"、"工程健康"、"为什么 autopilot 效果不好"时使用。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Autopilot Doctor — 项目工程健康度诊断
你是 autopilot 的工程诊断器。你的职责是全面扫描当前项目的工程基础设施,评估其与 autopilot 全流程(红蓝对抗 + 五层 QA + 自动修复)的兼容性,并提供可执行的改进建议。
## 工作模式
- **诊断模式**(默认):扫描 → 评分 → 建议 → 保存报告
- **修复模式**(`--fix`):诊断 → 自动生成/修复配置文件(每个修复前用 AskUserQuestion 确认)
## 启动流程
1. 检测 `--fix` 参数 → 2. Step 0 技术栈检测 → 3. Wave 1 并行命令检测(Dim 1-4, 8-9, 11-13 客观部分)→ 4. Wave 2 串行 AI 判断(Dim 5-7, 10, 12-13 语义部分)→ 5. 加权总分 → 报告 → 6. 保存 `.autopilot/runtime/doctor-report.md` → 7. `--fix` 模式针对低分维度提供修复方案
---
## Step 0: 技术栈检测
**执行方式**:调 `detect_tech_stack()`(lib.sh SSOT),返回 JSON `{node,swift,go,python,rust,java,primary}`。
```bash
source "${CLAUDE_PLUGIN_ROOT:-.}/scripts/lib.sh" && detect_tech_stack .
```
`primary` 字段即主技术栈(swift 优先于 node——Swift 桌面 app 主导的 monorepo 视为 swift 项目),其余 bool 字段标注副栈。后续每个维度的检查命令都据此选择。
---
## Step 1: Wave 1 — 并行命令检测
**在同一轮响应中发出 8 个 Bash 调用**(每个维度一个,含 Dim 12 知识库数据收集),所有命令独立运行、互不依赖。每个命令的目标是收集事实数据,不做判断。所有命令都必须用 `|| true` 或 `2>/dev/null` 保护,避免非零退出码中断检测。
### Dim 1: 测试基础设施(权重 15%)
根据技术栈运行对应命令:
```bash
# L1: 单元/组件测试基础设施
cat package.json | grep -E '"(jest|vitest|mocha|ava|tap)"' 2>/dev/null; \
cat package.json | grep -E '"test"' 2>/dev/null; \
ls jest.config* vitest.config* .mocharc* 2>/dev/null; \
…Read the whole file at its exact version.
How to install
mdr add strzhao/autopilot/autopilot-doctor@sha256:63fd4bc23d8eb790The line at the top of this page pins the label git:20260927.fed289e, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_y4dyapklkap5dlfh)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Jul 19, 2026 and Sep 27, 2026, about one every 18 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260927.fed289e latest | 2026-09-27 | fed289e | 34,543 B | B | view · diff |
| git:20260927.75bb34f | 2026-09-27 | 75bb34f | 34,544 B | B | view · diff |
| git:20260907.9921b70 | 2026-09-07 | 9921b70 | 34,284 B | B | view · diff |
| git:20260722.bf50346 | 2026-07-22 | bf50346 | 33,979 B | B | view · diff |
| git:20260719.e8a8ff2 | 2026-07-19 | e8a8ff2 | 31,360 B | B | view |
Audit of the latest version
- fail: No instruction to read or print local credentials (matched: cat .gitignore 2>/dev/null | grep -E '\.env)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (34543 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
strzhao/autopilot · 32 stars · license MIT · pushed 2026-10-28 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_y4dyapklkap5dlfh GET https://markdownregistry.com/api/v1/resolve?ref=strzhao/autopilot/autopilot-doctor GET https://markdownregistry.com/api/v1/blob/63fd4bc23d8eb7907a8a84e56fc5d2a22388b9fcb7255a4a983fc028d833660e
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.