Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计通过

update-docs-on-code-change更新代码更改文档

Agent Skill

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

总安装

3,510

周安装

142

GitHub Stars

公开资料未说明

下载量

1,102
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install update-docs-on-code-change

简介

在应用程序代码修改后自动同步更新 README 和相关文档。

  • 适用于添加新功能或调整接口时保持文档一致性的开发流程。
  • 可识别变更点并生成对应文档段落,减少人工维护成本。
  • 安装前请确认具备读写项目文档目录的权限,避免权限不足导致失败。
  • 建议结合版本控制系统使用,以便追溯文档变更历史。update-docs-on-code-change 属于效率类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
update-docs-on-code-change
description
Automatically update README.md and documentation files when application code changes require documentation updates. Use when adding new features, changing APIs, modifying configuration options, updating installation procedures, or making breaking changes. Triggers on code modifications that affect user-facing documentation, changelog entries, migration guides, or code examples.

Update Documentation on Code Change

A skill for keeping documentation synchronized with code changes. Automatically detects when README.md, API documentation, configuration guides, and other documentation files need updates based on code modifications.

When to Use This Skill

  • Adding new features or functionality
  • Changing API endpoints, methods, or interfaces
  • Introducing breaking changes
  • Modifying dependencies or requirements
  • Changing configuration options or environment variables
  • Updating installation or setup procedures
  • Modifying CLI commands or scripts
  • When code examples in documentation become outdated

Prerequisites

  • Understanding of the project's documentation structure
  • Access to code changes being made
  • Knowledge of documentation files that may need updates

Documentation Update Workflows

README.md Updates

Update README.md when:

  1. Adding new features or capabilities

- Add feature description to "Features" section - Include usage examples if applicable - Update table of contents if present

  1. Modifying installation or setup process

- Update "Installation" or "Getting Started" section - Revise dependency requirements - Update prerequisite lists

  1. Adding new CLI commands or options

- Document command syntax and examples - Include option descriptions and default values - Add usage examples

  1. Changing configuration options

- Update configuration examples - Document new environment variables - Update config file templates

API Documentation Updates

Sync API documentation when:

  1. New endpoints are added

- Document HTTP method, path, parameters - Include request/response examples - Update OpenAPI/Swagger specs

  1. Endpoint signatures change

- Update parameter lists - Revise response schemas - Document breaking changes

  1. Authentication or authorization changes

- Update authentication examples - Revise security requirements - Update API key/token documentation

Code Example Synchronization

Verify and update code examples when:

  1. Function signatures change

- Update all code snippets using the function - Verify examples still compile/run - Update import statements if needed

  1. API interfaces change

- Update example requests and responses - Revise client code examples - Update SDK usage examples

Changelog Management

Add changelog entries for:

  • New features (under "Added" section)
  • Bug fixes (under "Fixed" section)
  • Breaking changes (under "Changed" section with BREAKING prefix)
  • Deprecated features (under "Deprecated" section)
  • Removed features (under "Removed" section)
  • Security fixes (under "Security" section)

Changelog format:

## [Version] - YYYY-MM-DD

### Added
- New feature description with reference to PR/issue

### Changed
- **BREAKING**: Description of breaking change
- Other changes

### Fixed
- Bug fix description

Migration Guides

Create migration guides when:

  1. Breaking API changes occur

- Document what changed - Provide before/after examples - Include step-by-step migration instructions

  1. Major version updates

- List all breaking changes - Provide upgrade checklist - Include common migration issues and solutions

  1. Deprecating features

- Mark deprecated features clearly - Suggest alternative approaches - Include timeline for removal

Documentation File Structure

Maintain these documentation files and update as needed:

  • README.md: Project overview, quick start, basic usage
  • CHANGELOG.md: Version history and user-facing changes
  • docs/: Detailed documentation

- installation.md: Setup and installation guide - configuration.md: Configuration options and examples - api.md: API reference documentation - contributing.md: Contribution guidelines - migration-guides/: Version migration guides

  • examples/: Working code examples and tutorials

Documentation Quality Standards

Writing Guidelines

  • Use clear, concise language
  • Include working code examples
  • Provide both basic and advanced examples
  • Use consistent terminology
  • Include error handling examples
  • Document edge cases and limitations

Code Example Format

### Example: [Clear description of what example demonstrates]

\`\`\`language
// Include necessary imports/setup
import { function } from 'package';

// Complete, runnable example
const result = function(parameter);
console.log(result);
\`\`\`

**Output:**
\`\`\`
expected output
\`\`\`

API Documentation Format

### `functionName(param1, param2)`

Brief description of what the function does.

**Parameters:**
- `param1` (type): Description of parameter
- `param2` (type, optional): Description with default value

**Returns:**
- `type`: Description of return value

**Example:**
\`\`\`language
const result = functionName('value', 42);
\`\`\`

**Throws:**
- `ErrorType`: When and why error is thrown

Best Practices

Do's

  • Update documentation in the same commit as code changes
  • Include before/after examples for changes to be reviewed
  • Test code examples before committing
  • Use consistent formatting and terminology
  • Document limitations and edge cases
  • Provide migration paths for breaking changes
  • Keep documentation DRY (link instead of duplicating)

Don'ts

  • Commit code changes without updating documentation
  • Leave outdated examples in documentation
  • Document features that don't exist yet
  • Use vague or ambiguous language
  • Forget to update changelog
  • Ignore broken links or failing examples
  • Document implementation details users don't need

Validation Commands

Example scripts for documentation validation:

{
  "scripts": {
    "docs:build": "Build documentation",
    "docs:test": "Test code examples in docs",
    "docs:lint": "Lint documentation files",
    "docs:links": "Check for broken links",
    "docs:spell": "Spell check documentation",
    "docs:validate": "Run all documentation checks"
  }
}

Review Checklist

Before completing documentation updates:

  • [ ] README.md reflects current project state
  • [ ] All new features are documented
  • [ ] Code examples are tested and work
  • [ ] API documentation is complete and accurate
  • [ ] Configuration examples are up to date
  • [ ] Breaking changes are documented with migration guide
  • [ ] CHANGELOG.md is updated
  • [ ] Links are valid and not broken
  • [ ] Installation instructions are current
  • [ ] Environment variables are documented

Troubleshooting

IssueSolution
Outdated code examplesRe-run examples against current code and update
Missing API documentationReview all public interfaces and document each
Broken linksUse link checker tools to identify and fix
Inconsistent terminologyCreate a glossary and standardize usage
Missing changelog entryAdd entry following the changelog format

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

84.3%
按下载量换算929

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills