Community生產力與協作github.com

evemcgivern/agent-skills

檢查專案中發現的代理指令(AGENTS.md、CLAUDE.md、GEMINI.md)與技能定義是否存在靜態接線問題,不需載入、變更或啟用它們,並回報哪些已安裝的技能在本機工作階段記錄中很少或從未被呼叫。

agent-skills 是什麼?

Agent Doctor 是一項用於診斷 AI 代理指令與技能探索問題的工具型技能,特別適合開發者在使用 Claude Code、Cursor、Codex 等代理平台時進行靜態分析。它會掃描專案中的 AGENTS.md、CLAUDE.md、GEMINI.md 等指令檔案,以及多個平台支援的技能資料夾(如 .claude、.cursor、.copilot 等),檢查是否存在符號連結逸脫、身分宣告不匹配(透過 --model 參數比較)、以及發現但無法正確載入的技能。掃描過程是唯讀的,不會修改檔案、載入技能、請求權限或讀取認證資訊。此外,它也支援透過 `--usage` 分析本機工作階段記錄,統計各技能的呼叫次數,幫助開發者決定哪些技能應保留、更新或歸檔。支援的輸出格式包括 markdown 與 json,便於進一步自動化處理。

相容平台✓Claude Code✓Codex CLI✓Cursor✓Gemini CLI✓OpenCode✓Windsurf
npx skills add https://github.com/evemcgivern/agent-skills/tree/HEAD/plugins/agent-workflow/skills/agent-doctor

Installed? Explore more 生產力與協作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Agent Doctor

使用此技能來針對實際存在的檔案,診斷代理指令與技能探索的相關問題。它會將來源報告為已發現,而非執行時期已載入或設定為可用。

請先執行確定性掃描,然後僅根據報告及其指名的檔案進行推理。該掃描為唯讀操作,不會修復檔案、載入技能、請求權限,也不會讀取一般家目錄、環境、憑證或驗證檔案。

從此技能的安裝目錄執行:

python3 scripts/agent_doctor.py --project <path-to-project> --format markdown

使用 --home /fixture/home 來指定測試用或替代的全域發現路徑。僅在需要額外允許的技能根目錄時,才加入明確的 --skill-root /path/to/skills 參數。--model <name> 接受您正在執行的模型名稱(任何文字名稱,例如 Claude、claude-opus-5-5 或 GPT-5),並將其與一般技能文字中「You are 」這類文字身分宣告進行比對,忽略大小寫、連字號與空格或句點的差異,以及開頭的 claude-,並將不符之處僅回報為建議事項。若省略此參數則跳過該檢查。選擇 --format json 可取得機器可讀的輸出。使用 --max-files、--max-bytes 及 --max-directories 來縮小掃描範圍,進行針對性診斷。

掃描會限制深度、目錄數、檔案數與位元組數;它會跳過依賴、版本控制、快取及工作樹目錄。它會辨識上層與巢狀的 AGENTS.md/CLAUDE.md/GEMINI.md、允許的全域指令檔案(~/.codex/AGENTS.md、~/.claude/CLAUDE.md、~/.gemini/GEMINI.md),以及每個已記錄主機資料夾中的平面技能資料夾:家目錄下的 .agents、.codex、.claude、.gemini、.cursor、.copilot 與 .codeium/windsurf 技能,以及專案中的 .agents、.codex、.claude、.gemini、.cursor、.github、.opencode、.cline、.clinerules、.devin 與 .windsurf 技能。若某個技能可透過多個資料夾觸及(例如 Skills CLI 的符號連結),僅回報一次。它會保持正規路徑與別名分離,拒絕符號連結逸脫,且不輸出原始檔案內容。

技能使用與歸檔

對於很少或從未被呼叫的技能,請執行 python3 scripts/agent_doctor.py --usage 並參閱 references/usage.md。它會以唯讀方式讀取工作階段記錄,僅輸出技能名稱與呼叫次數。向擁有者顯示該表格,然後針對每個技能詢問:更新、保留或歸檔。請說「在記錄中未找到任何呼叫」,而不是「未使用」。僅使用 scripts/skill_archive.py 進行歸檔:先 plan,顯示計畫,取得對該技能的明確同意,然後 archive --yes;切勿在詢問的同一回合中執行歸檔。請提及 restore。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

evemcgivern/agent-skills

Reconsiders a project or shelved idea against current capabilities, proposes three ambitious outcomes, and designs an experiment for the hardest uncertainty. Use when asked "what more is now feasible", "is this worth attempting now", "revisit this shelved idea", or "think bigger about this project".

evemcgivern/agent-skills

Review an external PDF, image, screenshot, article, or URL against a repository's current issues and code to sort its ideas into new, already tracked, shipped, contradicted, or unverifiable, read-only by default. Use when the user asks to '/check-worth' or '$check-worth' a source, or asks whether an external idea is worth pulling into a repository as an issue or code change.

evemcgivern/agent-skills

Routes each task to a suitable model tier in Claude Code, Codex, or another agent that can start subagents on a chosen model (for example Gemini CLI or Antigravity CLI), following the user's routing preferences. Keeps small tasks local, delegates discovery, routine coding, and testing to cheaper subagents, and sends difficult decisions and risky reviews to a stronger one. Use when deciding whether to delegate, writing subagent handoffs, or setting routing preferences, or when asked to "save tokens", "use cheaper models", "fan out subagents", "stay inside my quota", or "efficient-frontier-routing help".

evemcgivern/agent-skills

Makes the most expensive model in a session the senior decision-maker, keeping its reasoning for intent, architecture, decomposition, tradeoffs, final review, and synthesis while cheaper agents handle discovery, implementation, tests, logs, and verification. Use when the active agent is Fable or another top-tier model, or when asked to "act as chief agent", "delegate the grunt work", or "save the expensive model for decisions".

相關技能