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 分