
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 分