Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计提醒

doc-updater文档更新程序

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

539

周安装

22

GitHub Stars

公开资料未说明

下载量

174
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:doc-updater(文档更新程序)
来源仓库:https://github.com/carvalab/k-skills
仓库路径:skills/doc-updater
安装命令:
npx skills add https://github.com/carvalab/k-skills --skill doc-updater
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/carvalab/k-skills --skill doc-updater

简介

用于维护代码同步的文档更新,生成架构映射并刷新 README 等内容。

  • 支持多语言项目检测,自动适配 TypeScript、Go 或 Python 等生态工具链。
  • 可结合 Madge、go mod graph 或 pydeps 生成依赖关系图。
  • 操作前应确认项目结构,避免误改关键配置或触发意外构建行为。
  • doc-updater 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Documentation & Codemap Specialist

Maintain accurate, up-to-date documentation that reflects actual code state. Generate architectural codemaps and refresh documentation from source.

Related Skills: - kavak-documentation - Query for Kavak documentation standards, README templates, architecture docs format - Use kavak-platform/platform_docs_search MCP tool for Kavak-specific documentation patterns

Quick Start

Detect project type and use appropriate tools:

# TypeScript/Node.js
npx madge --image graph.svg src/

# Go
go mod graph | dot -Tsvg -o graph.svg

# Python
pydeps src/ --output graph.svg

Core Workflow

1. Analyze Repository Structure

a) Detect language/runtime (go.mod, package.json, pyproject.toml)
b) Identify workspaces/packages
c) Map directory structure
d) Find entry points:
   - Go: cmd/*, main.go
   - Node: apps/*, packages/*, src/index.*
   - Python: src/*/__main__.py, main.py
e) Detect framework patterns

2. Generate Codemaps

Create docs/CODEMAPS/ with one file per major architectural area. The specific files depend on the project — adapt to what exists:

docs/CODEMAPS/
├── INDEX.md          # Overview and navigation (always)
├── <area>.md         # One per major area (examples below)

Common areas: frontend, backend/api, database/models, integrations/external, workers/jobs, cli, shared/utils. Only create codemaps for areas that actually exist in the project.

3. Update Documentation

Files to refresh:

  • README.md - Setup instructions, architecture overview
  • docs/GUIDES/*.md - Feature guides and tutorials
  • CONTRIBUTING.md - Development workflow

4. Validate

  • Verify all file paths exist
  • Check links work
  • Ensure examples run
  • Update timestamps

Codemap Format

Each codemap follows this structure:

# [Area] Codemap

**Last Updated:** YYYY-MM-DD
**Entry Points:** list of main files

## Architecture

[ASCII diagram]

## Key Modules

| Module | Purpose | Exports | Dependencies |
| ------ | ------- | ------- | ------------ |

## Data Flow

[Description]

## External Dependencies

- package - Purpose, Version

See references/codemap-format.md for complete specification.

When to Update

ALWAYS update when:

  • New major feature added
  • API routes changed
  • Dependencies added/removed
  • Architecture significantly changed

OPTIONAL when:

  • Minor bug fixes
  • Cosmetic changes
  • Internal refactoring

References

Detailed documentation for specific tasks:

ReferencePurpose
references/codemap-format.mdComplete codemap specification
references/codemap-examples.mdFrontend, backend, integrations examples
references/scripts.mdGeneration scripts (ts-morph, madge)
references/scripts-go.mdGo-specific tools and scripts
references/maintenance.mdSchedule and quality checklist
references/readme-template.mdREADME update template

Quality Checklist

Before committing:

  • Codemaps generated from actual code
  • All file paths verified
  • Code examples compile/run
  • Timestamps updated
  • No obsolete references

Best Practices

  1. Single Source of Truth - Generate from code, don't manually write
  2. Freshness Timestamps - Always include last updated date
  3. Token Efficiency - Keep codemaps under 500 lines each
  4. Actionable - Include commands that actually work

Principle: Documentation that doesn't match reality is worse than no documentation. Generate from source of truth (the actual code).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.75%
按下载量换算54

Gemini CLI

24.16%
按下载量换算42

Antigravity

17.91%
按下载量换算31

windsurf

11.26%
按下载量换算20

trae

8.82%
按下载量换算15

Codex

3.52%
按下载量换算6

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills