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.

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

StaleDocs 以確定性的 AST 分析找出與程式碼不再相符的文件,並把需要更新的具體章節交給助理。

可以做什麼
  • 找出文件漂移:回報拉取請求中的公開 API 變更,以及仍在描述舊行為的文件章節。
  • 檢視變更符號:取得變更之公開符號的前後簽章。
  • 準備文件更新:提供確切章節與簽章,讓助理起草並套用經核准的 Markdown。
  • 稽核儲存庫:列出 Markdown(含代理指令檔)仍提及但程式碼已不存在的套件指令碼、路徑與公開類別成員。
適用情境
適用於儲存庫的 README、API 文件或代理指令檔與程式碼脫節的情況,尤其是拉取請求審查時,或希望助理起草並驗證文件更新時。
執行需求
透過 npx 從 npm 套件 staledocs 以 stdio 在本機執行。外掛與命令列方式需要 Node.js 22.12.0 以上版本及 npm/npx。核心漂移檢查不需 API 金鑰或驗證。
安裝前請注意
核心的 review、check 與 audit 指令被描述為唯讀且具確定性。舊版 readme、api、changelog、diagram 與 annotate 產生器需要供應商金鑰或 Ollama,會把程式碼傳送給該供應商。文件修改由助理自行套用,提交前請檢查其變更。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 StaleDocs,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

StaleDocs

Formerly aidoc.

[StaleDocs: a createUser(email) change linked to README.md and docs/API.md, ending in a reviewed documentation update.]

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

yaml
name: StaleDocs reviewon: {pull_request: {types: [opened, synchronize, reopened]}}permissions: {contents: read, pull-requests: write}jobs:  review:    runs-on: ubuntu-latest    steps:      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1        with: {fetch-depth: 0}      - uses: mr-min-max/[email protected]        with:          mode: review          fail-on: none

[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-change and docs-stale labels when applicable.

No model, no API key, no writes. It is deterministic AST analysis.

From the terminal

Install the command:

bash
npm install -g staledocs

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.

bash
npm install -g staledocsstaledocs audit

Output on a small fixture repository:

text
README.md > Usage: member-missing "Client.fetchAll"README.md > Usage: path-missing "src/core/old.ts"README.md > Usage: script-missing "npm run bulid" (closest: build)
3 findings across 1 Markdown file: script-missing 1, path-missing 1, member-missing 1.

Fix the docs with your assistant

Codex plugin

Start Codex in your Git worktree, then run:

bash
codex plugin marketplace add mr-min-max/staledocscodex plugin add staledocs@staledocs

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:

text
/plugin marketplace add mr-min-max/staledocs/plugin install staledocs@staledocs

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

bash
codex mcp add staledocs -- staledocs --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
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

2
  1. v0.5.0-beta.2最新Oct 30, 2026
  2. v0.5.0-beta.1Oct 29, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分