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.

Install it, pinned
mdr add strzhao/autopilot/autopilot-doctor@git:20260927.fed289e

Pins 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

The exact contents, by fingerprint
mdr add strzhao/autopilot/autopilot-doctor@sha256:63fd4bc23d8eb790

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_y4dyapklkap5dlfh.svg)](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.

versioncommittedcommitsizeaudit
git:20260927.fed289e latest2026-09-27 fed289e 34,543 BB view · diff
git:20260927.75bb34f2026-09-27 75bb34f 34,544 BB view · diff
git:20260907.9921b702026-09-07 9921b70 34,284 BB view · diff
git:20260722.bf503462026-07-22 bf50346 33,979 BB view · diff
git:20260719.e8a8ff22026-07-19 e8a8ff2 31,360 BB view

Audit of the latest version

B  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from strzhao/autopilot

autopilot-codex SKILL.md skill
strzhao/autopilot · .agents/skills/autopilot-codex/SKILL.md · 在 Codex 中使用本仓库的 autopilot 全闭环 runtime 时使用。适用于用户提到 /autopilot、自动驾驶、红蓝对抗、设计审批、五层 QA、或希望在 Codex 中继续使用 autopilot 的场景。不要在…
git:20260925.0f59687 · audit A · 32 stars
autopilot-commit-codex SKILL.md skill
strzhao/autopilot · .agents/skills/autopilot-commit-codex/SKILL.md · 在 Codex 中执行 autopilot 风格的智能提交时使用。适用于用户提到 autopilot commit、git commit、智能提交、提交代码、生成中文提交信息等场景。
git:20260330.f115aca · audit A · 32 stars
autopilot-doctor-codex SKILL.md skill
strzhao/autopilot · .agents/skills/autopilot-doctor-codex/SKILL.md · 在 Codex 中执行 autopilot doctor 时使用。适用于用户提到 doctor、工程健康诊断、为什么 autopilot 效果不好、Codex readiness、工程成熟度评估等场景。
git:20260330.f115aca · audit A · 32 stars
AGENTS.md@.codex AGENTS.md file
strzhao/autopilot · .codex/AGENTS.md
git:20260404.d87865b · audit A · 32 stars
CLAUDE.md CLAUDE.md file
strzhao/autopilot · CLAUDE.md
git:20261028.07f9c71 · audit A · 32 stars
autopilot-codex SKILL.md skill
strzhao/autopilot · codex/plugins/autopilot-codex/skills/autopilot-codex/SKILL.md · 在 Codex 中使用 autopilot 的全闭环 runtime 时使用。适用于用户提到 /autopilot、自动驾驶、设计审批、红蓝对抗、五层 QA,或希望在 Codex 中继续沿用 autopilot 方法论的场景。
git:20260925.0f59687 · audit A · 32 stars
autopilot-commit-codex SKILL.md skill
strzhao/autopilot · codex/plugins/autopilot-codex/skills/autopilot-commit-codex/SKILL.md · 在 Codex 中执行 autopilot 风格的智能提交时使用。适用于用户提到 autopilot commit、git commit、智能提交、提交代码、生成中文提交信息等场景。
git:20260330.f115aca · audit A · 32 stars
autopilot-doctor-codex SKILL.md skill
strzhao/autopilot · codex/plugins/autopilot-codex/skills/autopilot-doctor-codex/SKILL.md · 在 Codex 中执行 autopilot doctor 时使用。适用于用户提到 doctor、工程健康诊断、为什么 autopilot 效果不好、Codex readiness、工程成熟度评估等场景。
git:20260404.d87865b · audit A · 32 stars
autopilot-brainstorm SKILL.md skill
strzhao/autopilot · plugins/autopilot/skills/autopilot-brainstorm/SKILL.md · autopilot design 阶段需求探索专用。在写设计文档前通过逐个澄清问题理解用户意图,提出 2-3 方案让用户选择,输出共识总结到 brainstorm.md 后交回主 skill。当 autopilot skill 在…
git:20260927.fed289e · audit A · 32 stars
autopilot-commit SKILL.md skill
strzhao/autopilot · plugins/autopilot/skills/autopilot-commit/SKILL.md · 当用户需要提交代码、运行 git commit、或说"提交"时使用。
git:20260523.651ba81 · audit A · 32 stars
autopilot-project SKILL.md skill
strzhao/autopilot · plugins/autopilot/skills/autopilot-project/SKILL.md · 管理 autopilot 项目模式的任务 DAG。当用户运行 /autopilot status(有项目时)或 /autopilot next 时提供上下文参考。
git:20261028.07f9c71 · audit A · 32 stars
autopilot SKILL.md skill
strzhao/autopilot · plugins/autopilot/skills/autopilot/SKILL.md · 当用户需要从目标描述到代码合并的端到端自动化、或说"自动驾驶"时使用。
git:20260927.81bd426 · audit A · 32 stars

Every file in strzhao/autopilot

Browse by kind, by grade B, or by owner.