Help us improve
Share bugs, ideas, or general feedback.
Updates project documentation from source-of-truth files like package.json, .env.example, openapi.yaml, and Dockerfiles; generates script refs, env docs, contributing guide, runbook; checks staleness.
npx claudepluginhub xu-xiang/everything-claude-code-zhHow this command is triggered — by the user, by Claude, or both
Slash command
/everything-claude-code:update-docsThe summary Claude sees in its command listing — used to decide when to auto-load this command
# 更新文档 (Update Documentation) 将文档与代码库同步,从单一事实来源 (Source of Truth) 文件生成。 ## 步骤 1:识别单一事实来源 (Identify Sources of Truth) | 来源 | 生成内容 | |------|----------| | `package.json` 脚本 | 可用命令参考 | | `.env.example` | 环境变量文档 | | `openapi.yaml` / 路由文件 | API 端点参考 | | 源码导出内容 | 公共 API 文档 | | `Dockerfile` / `docker-compose.yml` | 基础设施设置文档 | ## 步骤 2:生成脚本参考 (Generate Script Reference) 1. 读取 `package.json`(或 `Makefile`、`Cargo.toml`、`pyproject.toml`) 2. 提取所有脚本/命令及其说明 3. 生成参考表: ## 步骤 3:生成环境文档 (Generate Environment Documentation) 1. 读取 `.env.example`(或 `.env.template`、`.env.sample`) 2. 提取所有变量及其用途 3. 将其分类为必填与选...
/update-docsSynchronizes project documentation from source-of-truth files — generates script references, env variable docs, contributing guides, and runbooks while flagging stale content for review.
/update-docsSyncs documentation from source-of-truth files (scripts, schemas, routes, exports) generating reference tables, contributing guides, runbooks, and env docs with staleness checks.
/update-docsSyncs documentation from package.json scripts and .env.example, generating docs/CONTRIB.md (dev workflow, scripts, env, testing) and docs/RUNBOOK.md (deployment, monitoring, issues, rollback). Identifies obsolete docs and shows diff.
/docsGenerates and maintains project documentation including OpenAPI specs, code docs (JSDoc/docstrings), READMEs, runbooks; audits for staleness, reports coverage, fixes links.
/docsManage project documentation: generate for targets, sync with code changes, validate links/references, check health metrics, update stale info via flags or natural language.
/docsGenerate or update project documentation from codebase and specs. Scopes: api|readme|deploy|all. Scans files, drafts for approval, tracks in todo.md.
Share bugs, ideas, or general feedback.
将文档与代码库同步,从单一事实来源 (Source of Truth) 文件生成。
| 来源 | 生成内容 |
|---|---|
package.json 脚本 | 可用命令参考 |
.env.example | 环境变量文档 |
openapi.yaml / 路由文件 | API 端点参考 |
| 源码导出内容 | 公共 API 文档 |
Dockerfile / docker-compose.yml | 基础设施设置文档 |
package.json(或 Makefile、Cargo.toml、pyproject.toml)| Command | Description |
|---------|-------------|
| `npm run dev` | Start development server with hot reload |
| `npm run build` | Production build with type checking |
| `npm test` | Run test suite with coverage |
.env.example(或 .env.template、.env.sample)| Variable | Required | Description | Example |
|----------|----------|-------------|---------|
| `DATABASE_URL` | Yes | PostgreSQL connection string | `postgres://user:pass@host:5432/db` |
| `LOG_LEVEL` | No | Logging verbosity (default: info) | `debug`, `info`, `warn`, `error` |
生成或更新 docs/CONTRIBUTING.md,包含:
生成或更新 docs/RUNBOOK.md,包含:
Documentation Update
──────────────────────────────
Updated: docs/CONTRIBUTING.md (scripts table)
Updated: docs/ENV.md (3 new variables)
Flagged: docs/DEPLOY.md (142 days stale)
Skipped: docs/API.md (no changes detected)
──────────────────────────────
<!-- AUTO-GENERATED --> 标记