Token导航 LogoToken导航

Agent Skill · 研究检索

docs:update-docs(文档更新文档)

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

docs:update-docs 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 11,514。

总安装 11,198周安装 481GitHub Stars 891下载 3,925核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/neolabhq/context-engineering-kit --skill docs:update-docs

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

自动更新本地代码变更对应的文档内容。docs:update-docs 属于研究检索类 Skill,可作为该场景下的辅助能力补充。调用 tech-writer agents 并行分析最新 commit 或未提交改动。确保新功能描述、接口变更等关键信息及时同步。支持指定关注领域(如 API 文档、部署指南)。

适用于敏捷开发中持续维护文档准确性的场景。

来源仓库内路径:skills/docs:update-docs

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/neolabhq/context-engineering-kit --skill docs:…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

docs:update-docs 怎么安装?

在终端执行 npx skills add https://github.com/neolabhq/context-engineering-kit --skill docs:update-doc…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

docs:update-docs 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

docs:update-docs 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

docs:update-docs 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

docs:update-docs 用的人多吗?

公开数据是累计安装 11,198 次,近一周安装 481 次,下载 3,925 次,GitHub 891 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

docs:update-docs 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
docs:update-docs

文档更新文档 · 本页

11,198891需要联网未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Update Documentation for Local Changes

User Arguments

User can provide specific focus areas or documentation types:

$ARGUMENTS

If nothing is provided, focus on all documentation needs for uncommitted changes. If everything is committed, cover the latest commit.

Context

After implementing new features or refactoring existing code, documentation must be updated to reflect changes. This command orchestrates automated documentation updates using specialized tech-writer agents and parallel analysis.

Goal

Ensure all code changes are properly documented with clear, maintainable documentation that helps users accomplish real tasks.

Important Constraints

  • Focus on user-facing impact - not every code change needs documentation
  • Preserve existing documentation style - follow established patterns
  • Analyse complexity of changes:

- If there are 3+ changed files affecting documentation, or significant API changes → Use multi-agent workflow - If there are 1-2 simple changes → Write documentation yourself

  • Documentation must justify its existence - avoid bloat and maintenance overhead

Workflow Steps

Preparation

  1. Read SADD skill if available

- If available, read the SADD skill to understand best practices for managing agents

  1. Discover documentation infrastructure

- CRITICAL: You MUST read root README.md and project config (package.json, pyproject.toml, etc.) - Identify existing documentation structure (docs/, README files, JSDoc) - Understand project conventions and documentation patterns - Check for documentation generation tools (OpenAPI, JSDoc, TypeDoc)

  1. Inventory existing documentation
# Find all documentation files
find . -name "*.md" -o -name "*.rst" | grep -E "(README|CHANGELOG|CONTRIBUTING|docs/)"

# Check for generated docs
find . -name "openapi.*" -o -name "*.graphql" -o -name "swagger.*"

Analysis

Do steps 4-5 in parallel using haiku agents:

  1. Analyze documentation structure

- Launch haiku agent to map existing documentation: - Identify docs/ folder structure and organization - Find all README.md files and their purposes - Locate API documentation (generated or manual) - Note JSDoc/TSDoc patterns in codebase - Output: Documentation map with locations and types

  1. Analyze local changes

- Run git status -u to identify all changed files (including untracked) - If no uncommitted changes, run git show --name-status for latest commit - Filter to identify documentation-impacting changes: - New/modified public APIs - Changed module structures - Updated configuration options - New features or workflows - Launch separate haiku agents per changed file to: - Analyze the file and its documentation impact - Identify what documentation needs to be created/updated - Identify index documents that need updates (see Index Documents section) - Prepare short summary of documentation requirements - Extract list of documentation tasks

Documentation Planning

  1. Group changes by documentation area

- Aggregate analysis results from haiku agents - Group changes that can be covered by same documentation update: - API Documentation: All API changes → single agent - Module READMEs: Changes in same module → single agent - User Guides: Related feature changes → single agent - JSDoc/Code Comments: Complex logic changes → per-file agents - Index Documents: Updates to navigation and discovery docs → single agent - Identify index documents requiring updates: - Root README.md - if new modules/features affect project overview, High probability of needing update. - Module README.md - if module's purpose, exports, or usage changed - docs/ index files - if documentation structure changed - Create documentation task assignments

Documentation Writing

Simple Change Flow (1-2 files, minor updates)

If changes are simple, write documentation yourself following this guideline:

  1. Read Tech Writer Agent guidelines from @/plugins/sdd/agents/tech-writer.md
  2. Review the changed files and understand the impact
  3. Identify which documentation needs updates
  4. Make targeted updates following project conventions
  5. Verify all links and examples work
  6. Ensure documentation serves real user needs

Ensure documentation:

  • Follows project style and conventions
  • Includes working code examples
  • Avoids duplication with existing docs
  • Helps users accomplish tasks
Multi-Agent Flow (3+ files or significant changes)

If there are multiple changed files or significant documentation needs, use specialized agents:

  1. Launch doc-analysis agents (parallel) (Haiku models)

- Launch one analysis agent per documentation area identified - Provide each agent with: - Context: What changed in related files (git diff) - Target: Which documentation area to analyze - Resources: Existing documentation in that area - Goal: Create detailed documentation requirements - Output: Specific documentation tasks with priorities: - CRITICAL: User-facing API changes, breaking changes - IMPORTANT: New features, configuration options - NICE_TO_HAVE: Code comments, minor clarifications - Collect all documentation requirement reports

  1. Launch sdd:tech-writer agents for documentation (parallel) (Sonnet or Opus models)

- Launch one tech-writer agent per documentation area - Provide each agent with: - Context: Documentation requirements from analysis agent - Target: Specific documentation files to create/update - Documentation tasks: List from analysis agent - Guidance: Read Tech Writer Agent @/plugins/sdd/agents/tech-writer.md for best practices - Resources: Existing documentation for style reference - Goal: Create/update comprehensive documentation - Constraints: - Follow existing documentation patterns - Include working code examples - Avoid documentation bloat - Focus on user tasks, not implementation details

  1. Launch quality review agents (parallel) (Sonnet or Opus models)

- Launch sdd:tech-writer agents again for quality review - Provide: - Context: Original changes + new documentation created - Goal: Verify documentation quality and completeness - Review criteria: - All user-facing changes are documented - Code examples are accurate and work - Links and references are valid - Documentation follows project conventions - No unnecessary documentation bloat - Output: PASS confirmation or list of issues to fix

  1. Iterate if needed

- If any documentation areas have quality issues: Return to step 8 - Launch new tech-writer agents only for areas with gaps - Provide specific instructions on what needs fixing - Continue until all documentation passes quality review

  1. Final verification

- Review all documentation changes holistically - Verify cross-references between documents work - Ensure no conflicting information - Confirm documentation structure is navigable

Success Criteria

  • All user-facing changes have appropriate documentation ✅
  • Code examples are accurate and tested ✅
  • Documentation follows project conventions ✅
  • No broken links or references ✅
  • Quality verified by review agents ✅

Agent Instructions Templates

Documentation Analysis Agent (Haiku)

Analyze documentation needs for changes in {DOCUMENTATION_AREA}.

Context: These files were modified in local changes:
{CHANGED_FILES_LIST}

Git diff summary:
{GIT_DIFF_SUMMARY}

Your task:
1. Review the changes and understand their documentation impact
2. Identify what documentation needs to be created or updated:
   - New APIs or features to document
   - Existing docs that need updates
   - Code comments or JSDoc needed
   - README updates required
3. Identify index documents requiring updates:
   - Module README.md files affected by changes
   - Root README.md if features or modules changed
   - docs/ index files (index.md, SUMMARY.md, guides.md, getting-started.md, references, resources, etc.)
   - Navigation files (_sidebar.md, mkdocs.yml nav section)
4. Check existing documentation to avoid duplication
5. Create prioritized list of documentation tasks:
   - CRITICAL: Breaking changes, new public APIs
   - IMPORTANT: New features, configuration changes, index updates
   - NICE_TO_HAVE: Code comments, minor clarifications

Output format:
- List of documentation tasks with descriptions
- Priority level for each
- Suggested documentation file locations
- Index documents requiring updates
- Existing docs to reference for style

Tech Writer Agent (Documentation Creation)

Create/update documentation for {DOCUMENTATION_AREA}.

Documentation requirements identified:
{DOCUMENTATION_TASKS_LIST}

Your task:
1. Read Tech Writer Agent guidelines @/plugins/sdd/agents/tech-writer.md
2. Read @README.md for project context and conventions
3. Review existing documentation for style and patterns
4. Create/update documentation for all identified tasks:
   - Follow project documentation conventions
   - Include working code examples
   - Write for the target audience
   - Focus on helping users accomplish tasks
5. Ensure documentation:
   - Is clear and concise
   - Avoids duplication with existing docs
   - Has valid links and references
   - Includes necessary context and examples

Target files: {TARGET_DOCUMENTATION_FILES}

Quality Review Agent (Verification)

Review documentation quality for {DOCUMENTATION_AREA}.

Context: Documentation was created/updated for local code changes.

Files to review:
{DOCUMENTATION_FILES}

Related code changes:
{CODE_CHANGES_SUMMARY}

Your task:
1. Read the documentation created/updated
2. Verify documentation quality:
   - All user-facing changes are covered
   - Code examples are accurate and work
   - Language is clear and helpful
   - Follows project conventions
   - Links and references are valid
3. Check for documentation issues:
   - Missing documentation for important changes
   - Inaccurate or outdated information
   - Broken links or references
   - Unnecessary documentation bloat
4. Verify no conflicts with existing documentation

Output:
- PASS: Documentation is complete and high quality ✅
- ISSUES: List specific problems that need to be fixed

Core Documentation Philosophy

The Documentation Hierarchy

CRITICAL: Documentation must justify its existence
├── Does it help users accomplish real tasks? → Keep
├── Is it discoverable when needed? → Improve or remove
├── Will it be maintained? → Keep simple or automate
└── Does it duplicate existing docs? → Remove or consolidate

What TO Document ✅

User-Facing Documentation:

  • Getting Started: Quick setup, first success in <5 minutes
  • How-To Guides: Task-oriented, problem-solving documentation
  • API References: When manual docs add value over generated
  • Troubleshooting: Common real problems with proven solutions
  • Architecture Decisions: When they affect user experience

Developer Documentation:

  • Contributing Guidelines: Actual workflow, not aspirational
  • Module READMEs: Navigation aid with brief purpose statement
  • Complex Business Logic: JSDoc for non-obvious code
  • Integration Patterns: Reusable examples for common tasks

What NOT to Document ❌

Documentation Debt Generators:

  • Generic "Getting Started" without specific tasks
  • API docs that duplicate generated/schema documentation
  • Code comments explaining what the code obviously does
  • Process documentation for processes that don't exist
  • Architecture docs for simple, self-explanatory structures
  • Changelogs that duplicate git history
  • Documentation of temporary workarounds
  • Multiple READMEs saying the same thing

Red Flags - Stop and Reconsider:

  • "This document explains..." → What task does it help with?
  • "As you can see..." → If it's obvious, why document it?
  • "TODO: Update this..." → Will it actually be updated?
  • "For more details see..." → Is the information where users expect it?

Documentation Discovery Process

Codebase Analysis

<mcp_usage> Use Context7 MCP to gather accurate information about:

  • Project frameworks, libraries, and tools in use
  • Existing API endpoints and schemas
  • Documentation generation capabilities
  • Standard patterns for the technology stack </mcp_usage>

Inventory Existing Documentation:

# Find all documentation files
find . -name "*.md" -o -name "*.rst" -o -name "*.txt" | grep -E "(README|CHANGELOG|CONTRIBUTING|docs/)"

# Find index documents specifically
find . -name "index.md" -o -name "SUMMARY.md" -o -name "_sidebar.md" -o -name "getting-started.md"
find . -name "mkdocs.yml" -o -name "docusaurus.config.js"

# Check for generated docs
find . -name "openapi.*" -o -name "*.graphql" -o -name "swagger.*"

# Look for JSDoc/similar
grep -r "@param\|@returns\|@example" --include="*.js" --include="*.ts"

User Journey Mapping

Identify critical user paths:

  • Developer onboarding: Clone → Setup → First contribution
  • API consumption: Discovery → Authentication → Integration
  • Feature usage: Problem → Solution → Implementation
  • Troubleshooting: Error → Diagnosis → Resolution

Documentation Gap Analysis

High-Impact Gaps (address first):

  • Missing setup instructions for primary use cases
  • API endpoints without examples
  • Error messages without solutions
  • Complex modules without purpose statements

Low-Impact Gaps (often skip):

  • Minor utility functions without comments
  • Internal APIs used by single modules
  • Temporary implementations
  • Self-explanatory configuration

Smart Documentation Strategy

When to Generate vs. Write

Use Automated Generation For:

  • OpenAPI/Swagger: API documentation from code annotations
  • GraphQL Schema: Type definitions and queries
  • JSDoc: Function signatures and basic parameter docs
  • Database Schemas: Prisma, TypeORM, Sequelize models
  • CLI Help: From argument parsing libraries

Write Manual Documentation For:

  • Integration examples: Real-world usage patterns
  • Business logic explanations: Why decisions were made
  • Troubleshooting guides: Solutions to actual problems
  • Getting started workflows: Curated happy paths
  • Architecture decisions: When they affect API design

Documentation Tools and Their Sweet Spots

OpenAPI/Swagger:

  • ✅ Perfect for: REST API reference, request/response examples
  • ❌ Poor for: Integration guides, authentication flows
  • Limitation: Requires discipline to keep annotations current

GraphQL Introspection:

  • ✅ Perfect for: Schema exploration, type definitions
  • ❌ Poor for: Query examples, business context
  • Limitation: No usage patterns or business logic

Prisma Schema:

  • ✅ Perfect for: Database relationships, model definitions
  • ❌ Poor for: Query patterns, performance considerations
  • Limitation: Doesn't capture business rules

JSDoc/TSDoc:

  • ✅ Perfect for: Function contracts, parameter types
  • ❌ Poor for: Module architecture, integration examples
  • Limitation: Easily becomes stale without enforcement

Documentation Audit Guidelines

Quality Assessment

For each existing document, ask:

  1. When was this last updated? (>6 months = suspect)
  2. Is this information available elsewhere? (duplication check)
  3. Does this help accomplish a real task? (utility check)
  4. Is this findable when needed? (discoverability check)
  5. Would removing this break someone's workflow? (impact check)

Strategic Updates

High-Impact, Low-Effort Updates:

  • Fix broken links and outdated code examples
  • Add missing setup steps that cause common failures
  • Create module-level README navigation aids
  • Document authentication/configuration patterns

Automate Where Possible:

  • Set up API doc generation from code
  • Configure JSDoc builds
  • Add schema documentation generation
  • Create doc linting/freshness checks

Documentation Patterns Reference

README.md Best Practices

Project Root README:

# Project Name

Brief description (1-2 sentences max).

## Quick Start
[Fastest path to success - must work in <5 minutes]

## Documentation
- [API Reference](./docs/api/) - if complex APIs
- [Guides](./docs/guides/) - if complex workflows
- [Contributing](./CONTRIBUTING.md) - if accepting contributions

## Status
[Current state, known limitations]

Module README Pattern:

# Module Name

**Purpose**: One sentence describing why this module exists.

**Key exports**: Primary functions/classes users need.

**Usage**: One minimal example.

See: [Main documentation](../docs/) for detailed guides.

Index Documents

Index documents serve as navigation aids and entry points for documentation. When updating documentation, always check if related index documents need updates.

Common Index Documents to Update:

DocumentLocationUpdate When
README.mdProject rootNew features, modules, or significant changes
README.mdModule directoriesModule API, exports, or purpose changes
index.mddocs/ rootNew documentation pages or structure changes
getting-started.mddocs/Setup steps, prerequisites, or quickstart changes
guides.mddocs/New guides added or guide categories change
reference.mddocs/New API references or reference structure
resources.mddocs/New tools, links, or resources added
SUMMARY.mddocs/ (GitBook)Any documentation structure changes
_sidebar.mddocs/ (Docsify)Navigation structure changes
mkdocs.ymlProject root (MkDocs)Documentation navigation changes

Index Document Update Checklist:

When documentation changes affect a module or feature:

  1. Module-level index - Update the module's README.md:

- Add/remove exported functions or classes - Update usage examples if API changed - Update purpose statement if scope changed

  1. Section-level index - Update relevant docs/ index files:

- docs/guides.md - if adding new guides - docs/reference.md - if adding new API docs - docs/tutorials.md - if adding new tutorials

  1. Project-level index - Update root README.md:

- Add new features to feature list - Update quick start if entry point changed - Add new modules to project structure

  1. Navigation index - Update site navigation if present:

- SUMMARY.md for GitBook projects - _sidebar.md for Docsify projects - mkdocs.yml nav section for MkDocs projects

Example: Adding a New Feature

When adding a new "export" feature to a reporting module:

Files to update:
├── src/reporting/README.md      → Add export to key exports
├── docs/guides/index.md         → Link to new export guide
├── docs/guides/exporting.md     → Create new guide (main content)
├── docs/reference/index.md      → Link to export API reference
├── README.md                    → Mention export in features list
└── SUMMARY.md                   → Add navigation entries

JSDoc Best Practices

Document These:

/**
 * Processes payment with retry logic and fraud detection.
 *
 * @param payment - Payment details including amount and method
 * @param options - Configuration for retries and validation
 * @returns Promise resolving to transaction result with ID
 * @throws PaymentError when payment fails after retries
 *
 * @example
 * ```typescript
 * const result = await processPayment({
 *   amount: 100,
 *   currency: 'USD',
 *   method: 'card'
 * });
 * ```
 */
async function processPayment(payment: PaymentRequest, options?: PaymentOptions): Promise<PaymentResult>

Don't Document These:

// ❌ Obvious functionality
getName(): string

// ❌ Simple CRUD
save(user: User): Promise<void>

// ❌ Self-explanatory utilities
toLowerCase(str: string): string

Quality Gates

Before Publishing:

  • All code examples tested and working
  • Links verified (no 404s)
  • Document purpose clearly stated
  • Audience and prerequisites identified
  • No duplication of generated docs
  • Maintenance plan established

Documentation Debt Prevention:

  • Automated checks for broken links
  • Generated docs preferred over manual where applicable
  • Clear ownership for each major documentation area
  • Regular pruning of outdated content

Documentation Update Summary Template

## Documentation Updates Completed

### Files Updated
- [ ] README.md (root)
- [ ] Module README.md files
- [ ] docs/ directory organization
- [ ] API documentation (generated/manual)
- [ ] JSDoc comments for complex logic

### Index Documents Updated
- [ ] Root README.md - features list, quick start
- [ ] Module README.md files - exports, usage
- [ ] docs/index.md or SUMMARY.md - navigation
- [ ] docs/tutorials.md or getting-started.md - tutorials
- [ ] docs/guides.md - guides
- [ ] docs/reference.md - API reference
- [ ] Other index files: [list any others]

### Changes Documented
- [List code changes that were documented]
- [New documentation created]
- [Existing documentation updated]

### Quality Review
- [ ] All examples tested and working
- [ ] Links verified
- [ ] Index documents link to new content
- [ ] Follows project conventions

### Next Steps
- [Any follow-up documentation tasks]
- [Maintenance notes]

平台分布

Codex

35.65%
按下载量换算1,399

Claude

31.13%
按下载量换算1,222

Cursor

21%
按下载量换算824

Gemini CLI

9.43%
按下载量换算370

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills