Token导航 LogoToken导航TokenDH.com
开发权限需确认github未标认证来源可访问许可证需确认审计通过

doctor系统诊断

Agent Skill

doctor 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

451

周安装

19

GitHub Stars

公开资料未说明

下载量

158
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:doctor(系统诊断)
来源仓库:https://github.com/jasonharmongit/jh-skills
仓库路径:skills/doctor
安装命令:
npx skills add https://github.com/jasonharmongit/jh-skills --skill doctor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jasonharmongit/jh-skills --skill doctor

简介

doctor 用于处理 GitHub 仓库、Issue 和 Pull Request 协作信息。

  • 适用于代码变更跟踪和团队协作事项管理场景。doctor 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 通过 npx skills add 命令从 GitHub 仓库安装并使用。
  • 需确认权限范围和维护状态,避免触发不必要操作。
  • 可结合原始 README 继续核验具体用法。

SKILL.md

Per-step execution loop

For every step, follow this exact order:

  1. Announce the step.
  2. Run the step and fix failures until it passes.
  3. Give a very brief report of changes made in that step.
  4. If any changes were made, call AskQuestion so the user can click instead of typing. If they choose No, stop the doctor sequence (do not run later steps). If they choose Yes, continue. If no changes were made during the step, continue automatically to the next step.

AskQuestion arguments for the gate after step N (where N is 1, 2, or 3):

  • title: Doctor: Step {N} completed
  • questions: one question with id doctor_proceed, prompt Proceed to step {N+1}?, and two options: id yes / label Yes, and id no / label No

Example announce line:

Doctor: Step 3/4 - mix check

Example report line:

Step 3 report: lib/surge/foo.ex - removed unused alias; wrapped side effect in after callback.


Step 1 - Organize functions

Read and apply the organize-elixir-functions skill from ~/.agents/skills/organize-elixir-functions. Unless the user specifies otherwise (rare), you should apply it in branch mode.

When determining which files changed on the branch for that step, use the same baseline as Step 4: git merge-base HEAD origin/main (not local main), so candidate detection matches the remote default branch.

If changes were made, call AskQuestion (after step 1 gate above). If No, stop.


Step 2 - Format

mix format

One mix format run applies all formatting the tool can do; a second pass is only needed if the first run failed (for example syntax errors) or you changed files after formatting.

If changes were made, call AskQuestion (after step 2 gate: title Doctor: Step 2 completed, prompt Proceed to step 3?). If No, stop.


Step 3 - mix check

mix check

If changes were made, call AskQuestion (after step 3 gate: title Doctor: Step 3 completed, prompt Proceed to step 4?). If No, stop.


Step 4 - Compile and tests

  • !!!ABSOLUTELY CRITICAL RULE!!!: bare mix test is never allowed under any circumstances whatsoever.
  • Scope only: branch-changed paths from git diff --name-only "$(git merge-base HEAD origin/main)"...HEAD + git status --short.
  • Test run shape: only explicit *_test.exs file args. No directory args. No repo-wide runs. No "extra confidence" runs.
  • Allowed files only: test file in branch diff, or direct counterpart of changed lib/... module (same path stem). No sibling or neighbor tests.
  • Empty allowed list: skip this step.
  • CRITICAL - Fix scope is per test case, not per file: only fix a failing case when it is DIRECTLY related to branch application-code changes. Other failures in same file: ignore, leave red.
  • No out-of-scope edits: no changes to unrelated test cases, unrelated test files, or production code for unrelated failures.
  • Pre-edit gate (required): before any test file change, announce the exact test-case edit you plan to make and cite the specific app-code path + branch diff hunk that directly justifies touching that case. If you cannot cite that evidence first, do not edit.
  • Final report requirement for any file change: include strong evidence for each changed test case - exact failing case, exact changed app-code path, and exact direct relationship. If you cannot prove that, do not edit.
mix compile --warnings-as-errors

# optional:
mix test <file path>

Notes

  • If you get stuck in any loops or complex problems that you are having to make large or risky changes for, stop and ask the user for help.
  • Doctor is not a green-the-whole-repo pass: it is compile + only branch-tied test files + only edits to branch-related test cases inside those files (other cases in the same file can stay red). Anything broader is a mistake.
  • REMINDER - bare mix test is never allowed under any circumstances whatsoever.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.17%
按下载量换算52

Claude

31.2%
按下载量换算49

Cursor

16.31%
按下载量换算26

Gemini CLI

9.42%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills