← 返回 Skills 市场
frisky1985

Update Docs

作者 Stefan Ming · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
43
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install update-docs
功能描述
This skill should be used when the user asks to "update documentation for my changes", "check docs for this PR", "what docs need updating", "sync docs with c...
使用说明 (SKILL.md)

OpenClaw Documentation Updater

Guides you through updating OpenClaw documentation based on code changes on the active branch. Designed for maintainers reviewing PRs for documentation completeness.

Quick Start

  1. Analyze changes: Run git diff main...HEAD --stat to see what files changed
  2. Identify affected docs: Map changed source files to documentation paths
  3. Review each doc: Walk through updates with user confirmation
  4. Validate: Check formatting and links
  5. Commit: Stage documentation changes

Workflow: Analyze Code Changes

Step 1: Get the diff

# See all changed files on this branch
git diff main...HEAD --stat

# See changes in specific areas
git diff main...HEAD -- skills/
git diff main...HEAD -- src/api/

Step 2: Identify documentation-relevant changes

Look for changes in these areas:

Source Path Likely Doc Impact
skills/ Skill documentation
src/api/ API reference documentation
src/config/ Configuration guides
examples/ Tutorial and example guides
src/core/ Core architecture documentation

Step 3: Map to documentation files

Use the code-to-docs mapping in references/CODE-TO-DOCS-MAPPING.md to find corresponding documentation files.

Example mappings:

  • skills/browser-hosting/docs/skills/browser-hosting.md
  • src/api/browser.tsdocs/api/browser.md
  • examples/basic-agent/docs/guides/basic-agent.md

Workflow: Update Existing Documentation

Step 1: Read the current documentation

Before making changes, read the existing doc to understand:

  • Current structure and sections
  • Frontmatter fields in use
  • Code examples and their accuracy

Step 2: Identify what needs updating

Common updates include:

  • New features/options: Add to reference tables and create sections explaining usage
  • Changed behavior: Update descriptions and examples
  • Deprecated features: Add deprecation notices and migration guidance
  • New examples: Add code blocks following conventions

Step 3: Apply updates with confirmation

For each change:

  1. Show the user what you plan to change
  2. Wait for confirmation before editing
  3. Apply the edit
  4. Move to the next change

Step 4: Validate changes

Check documentation for common issues:

  • Frontmatter has required fields (title, description)
  • Code blocks are properly formatted
  • Links point to valid paths
  • Spelling and grammar

Workflow: Scaffold New Feature Documentation

Use this when adding documentation for entirely new features.

Step 1: Determine the doc type

Feature Type Doc Location Template
New skill docs/skills/ Skill Reference
New API function docs/api/ API Reference
New config option docs/config/ Config Reference
New concept/guide docs/guides/ Guide
Core architecture docs/architecture/ Architecture Guide

Step 2: Create the file with proper naming

  • Use kebab-case: my-new-feature.md
  • Add numeric prefix if ordering matters: 05-my-new-feature.md
  • Place in the correct directory based on feature type

Step 3: Use the appropriate template

API Reference Template: See assets/api-reference-template.md

Guide Template: See assets/guide-template.md

Step 4: Add related links

Update frontmatter with related documentation:

related:
  title: Next Steps
  description: Learn more about related features.
  links:
    - api/browser
    - guides/browser-automation

Documentation Conventions

See references/DOC-CONVENTIONS.md for complete formatting rules.

Quick Reference

Frontmatter (required):

---
title: Page Title (2-3 words)
description: One or two sentences describing the page.
---

Code blocks:

# Python example
code_here()
// JavaScript example  
code_here();

Notes:

> **Good to know**: Single line note.

> **Good to know**:
>
> - Multi-line note point 1
> - Multi-line note point 2

Validation Checklist

Before committing documentation changes:

  • Frontmatter has title and description
  • Code blocks have proper language specification
  • Links point to valid paths
  • Spelling and grammar are correct
  • Examples are tested and working
  • Documentation matches current code behavior

References

  • references/DOC-CONVENTIONS.md - Complete frontmatter and formatting rules
  • references/CODE-TO-DOCS-MAPPING.md - Source code to documentation mapping
  • assets/api-reference-template.md - API reference template
  • assets/guide-template.md - Guide template
安全使用建议
Install this if you are comfortable with a skill that can inspect repository diffs and help edit documentation files. Review proposed doc changes before confirming them, and be aware that any included packaging or initialization scripts should only be run intentionally on paths you choose.
能力评估
Purpose & Capability
The stated purpose is to update or scaffold documentation based on code changes; the artifacts coherently support that with git diff analysis, documentation mapping, templates, and validation guidance.
Instruction Scope
The skill asks the agent to inspect repository diffs and edit documentation, but it also explicitly says to show planned changes and wait for user confirmation before editing.
Install Mechanism
No dependency install, auto-run hook, or privileged installer is present; included Python scripts are helper utilities and are not invoked automatically.
Credentials
Local git and documentation file access are proportionate for a docs-update workflow, and the reviewed scripts do not perform network calls or credential/session/profile access.
Persistence & Privilege
No persistence mechanism, background worker, privilege escalation, credential storage, or automatic recurring execution was found.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install update-docs
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /update-docs 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the update-docs skill for OpenClaw. - Provides a guided workflow for updating documentation based on code changes, including analyzing diffs, mapping code to docs, and validating updates. - Includes detailed instructions for updating existing docs and scaffolding new documentation for features, APIs, config, guides, and architecture. - Offers checklists and conventions for formatting, frontmatter, code blocks, and validation. - References core formatting rules and templates to ensure consistent documentation quality.
元数据
Slug update-docs
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Update Docs 是什么?

This skill should be used when the user asks to "update documentation for my changes", "check docs for this PR", "what docs need updating", "sync docs with c... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 43 次。

如何安装 Update Docs?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install update-docs」即可一键安装,无需额外配置。

Update Docs 是免费的吗?

是的,Update Docs 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Update Docs 支持哪些平台?

Update Docs 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Update Docs?

由 Stefan Ming(@frisky1985)开发并维护,当前版本 v1.0.0。

💬 留言讨论