ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

docs-sync

Keep project documentation in sync with code changes. Identifies which docs need updating after a PR merges or code changes, drafts the updates, and manages doc site structure (mkdocs, docusaurus, vitepress). Use when: (1) a PR just merged and docs may need updating, (2) the user says "update the docs" or "sync docs", (3) a new doc was created and needs to be added to site navigation, (4) the user wants to audit which docs are stale. NOT for: writing docs from scratch for a new project (just write them), generating API reference docs from code comments (use typedoc/jazzy/etc.), or content that isn't developer documentation.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/chriscox/docs-sync
Or

Docs Sync

Prerequisites

  • git
  • gh (GitHub CLI, authenticated via gh auth login)

Keep project documentation current with code changes. Three modes:

  1. Content sync — update doc content after code changes
  2. Site management — maintain doc site structure and navigation
  3. Docs audit — identify stale docs that need attention

Repo Discovery

Before doing anything, discover the project's documentation setup:

  1. Run git rev-parse --show-toplevel to find the repo root
  2. Check for .docs-sync.yml at the repo root — if it exists, read it and use its values for all paths, roles, and site config
  3. If no config file, auto-discover:
    • Doc site engine: look for mkdocs.yml, docusaurus.config.js, .vitepress/config.*
    • Doc directory: look for docs/, documentation/, wiki/
    • Known doc files: scan for common patterns (see Doc Roles below)
    • Convention files: CLAUDE.md, AGENTS.md, CONTRIBUTING.md
  4. Run gh repo view --json name,owner to confirm the repo

Config File: .docs-sync.yml

Optional config file at repo root. All fields are optional — auto-discovery fills gaps. See docs-sync.yml in the skill directory for a starter.

# Map your doc files to roles so the skill knows what content belongs where
docs:
  - path: docs/features.md
    role: features

  - path: docs/architecture.md
    role: architecture

  - path: CHANGELOG.md
    role: changelog
    format: keep-a-changelog

  - path: CLAUDE.md
    role: conventions

  - path: README.md
    role: readme

# Doc site configuration (optional)
site:
  engine: mkdocs               # mkdocs | docusaurus | vitepress
  config: mkdocs.yml           # path to site config
  auto_nav: true               # update navigation when docs change

Doc Roles

Roles tell the skill what kind of content a file contains, so it knows how to update it.

RoleContentUpdated when...
featuresUser-facing feature descriptions, shortcuts, statusNew feature added, feature behavior changes
architectureApp structure, data flow, patterns, diagramsNew components, changed patterns, refactors
conventionsDev setup, coding rules, build commandsBuild process changes, new conventions adopted
changelogVersion-based change historyAny significant change (follows format: keep-a-changelog, conventional, custom)
readmeProject overview, install instructions, quick startMajor features, install process changes
apiAPI reference, endpoints, function signaturesPublic API changes
guideTutorials, how-tos, walkthroughsWorkflow changes, new capabilities
customAnything else — describe in the description fieldBased on your description

Auto-Detection (No Config)

Without a config file, the skill detects roles by filename:

Metadata

Author@chriscox
Stars3683
Views0
Updated2026-04-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-chriscox-docs-sync": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.