
StaleDocs
io.github.mr-min-max由 GitHub 帳號 mr-min-max 發布v0.5.0-beta.2更新於 Oct 30, 2026
Finds documentation that no longer matches your code. Deterministic AST check; no API key.
概覽
StaleDocs 以確定性的 AST 分析找出與程式碼不再相符的文件,並把需要更新的具體章節交給助理。
- 可以做什麼
- 找出文件漂移:回報拉取請求中的公開 API 變更,以及仍在描述舊行為的文件章節。
- 檢視變更符號:取得變更之公開符號的前後簽章。
- 準備文件更新:提供確切章節與簽章,讓助理起草並套用經核准的 Markdown。
- 稽核儲存庫:列出 Markdown(含代理指令檔)仍提及但程式碼已不存在的套件指令碼、路徑與公開類別成員。
- 適用情境
- 適用於儲存庫的 README、API 文件或代理指令檔與程式碼脫節的情況,尤其是拉取請求審查時,或希望助理起草並驗證文件更新時。
- 執行需求
- 透過 npx 從 npm 套件 staledocs 以 stdio 在本機執行。外掛與命令列方式需要 Node.js 22.12.0 以上版本及 npm/npx。核心漂移檢查不需 API 金鑰或驗證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 StaleDocs,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
StaleDocs
Formerly aidoc.
StaleDocs reads your code, finds public API changes in a pull request, and tells you which documentation sections now describe the old behavior.
Website · GitHub Action setup · Codex plugin
Add to a repository in one file
[Example StaleDocs pull request review comment]
What the comment contains
- Changed symbols with before and after signatures.
- Sections that mention them and were not updated.
breaking-changeanddocs-stalelabels when applicable.
No model, no API key, no writes. It is deterministic AST analysis.
From the terminal
Install the command:
staledocs review reports documentation impact for a pull request.
staledocs plan prints the affected documentation targets.
staledocs check exits with code 1 when a section mentioning a changed public symbol was not updated, and exits 0 otherwise.
Audit a repository once
staledocs audit lists the package scripts, repository paths, and public
class members that your Markdown still mentions but the code no longer has,
including AGENTS.md, CLAUDE.md, and the copilot-instructions.md file
under .github, the files coding agents read first. It needs no pull request.
The command is new in 0.5.0-beta.1.
Output on a small fixture repository:
Fix the docs with your assistant
Codex plugin
Start Codex in your Git worktree, then run:
In a new session, type $ and pick staledocs:check, staledocs:review, or
staledocs:maintain-documentation (or open /skills). Requires
Node.js >=22.12.0 and npm/npx. This repository hosts its own plugin
marketplace; it is not a listing in OpenAI's plugin directory.
Claude Code plugin
Start Claude Code in your Git worktree, then run:
Use /staledocs:check for drift signals, /staledocs:review for the PR report,
or /staledocs:maintain-documentation for a validated draft. Requires
Node.js >=22.12.0 and npm/npx. This repository hosts its own plugin marketplace;
it is not an approved Anthropic directory listing.
Manual MCP
prepare_documentation_update gives the assistant the exact sections and before and after signatures.
StaleDocs validates the candidate, and the assistant applies the approved Markdown.
See the Codex guide and Claude guide.
Languages
TypeScript, JavaScript, and Python are supported. A public symbol is one reachable from the package entry; see LIMITATIONS.md for syntax and discovery caveats.
Legacy generators
readme, api, changelog, diagram, and annotate remain available for initial documentation. They need a provider key or Ollama and are not the focus of StaleDocs. See the CLI catalogue.
Status and links
StaleDocs 0.5.0-beta.2 is the current release. npm latest, npm beta, and the GitHub Action v0 tag point to the current release, and the official MCP Registry lists it as io.github.mr-min-max/staledocs.
[npm] [CI] [License: MIT] [Node.js] [GitHub Action Marketplace]
來源:README.md,提交 2eca54c
工具
0版本歷史
2- v0.5.0-beta.2最新Oct 30, 2026
- v0.5.0-beta.1Oct 29, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分