DO

This skill compares code with documentation to identify inconsistencies and suggests updates to keep English documentation accurate.

Install

mkdir -p .claude/skills/docs-sync && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/928" && unzip -o skill.zip -d .claude/skills/docs-sync && rm skill.zip

Installs to .claude/skills/docs-sync

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Analyze main branch implementation and configuration to find missing, incorrect, or outdated documentation in docs/. Use when asked to audit doc coverage, sync docs with code, or propose doc updates/structure changes. Only update English docs under docs/** and never touch translated docs under docs/ja, docs/ko, or docs/zh. Provide a report and ask for approval before editing docs.
383 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Audit documentation coverage in docs/ directory
  • Sync documentation with main branch code changes
  • Propose structural changes for improved discoverability
  • Identify missing or outdated configuration options
  • Generate a report of doc gaps for user approval

How it works

The skill compares the current codebase against existing documentation to identify inconsistencies, then generates a report proposing targeted updates for English-language files.

Inputs & outputs

You give it
Source code and existing documentation
You get back
Sync report and proposed documentation edits

When to use docs-sync

  • Audit documentation coverage
  • Sync docs with code changes
  • Refactor documentation structure

About this skill

Docs Sync

Overview

Identify doc coverage gaps and inaccuracies by comparing main branch features and configuration options against the current docs structure, then propose targeted improvements.

Workflow

  1. Confirm scope and base branch

    • Identify the current branch and default branch (usually main).
    • Prefer analyzing the current branch to keep work aligned with in-flight changes.
    • If the current branch is not main, analyze only the diff vs main to scope doc updates.
    • Avoid switching branches if it would disrupt local changes; use git show main:<path> or git worktree add when needed.
  2. Build a feature inventory from the selected scope

    • If on main: inventory the full surface area and review docs comprehensively.
    • If not on main: inventory only changes vs main (feature additions/changes/removals).
    • Focus on user-facing behavior: public exports, configuration options, environment variables, CLI commands, default values, and documented runtime behaviors.
    • Capture evidence for each item (file path + symbol/setting).
    • Use targeted search to find option types and feature flags (for example: rg "Settings", rg "Config", rg "os.environ", rg "OPENAI_").
    • When the topic involves OpenAI platform features, invoke $openai-knowledge to pull current details from the OpenAI Developer Docs MCP server instead of guessing, while treating the SDK source code as the source of truth when discrepancies appear.
  3. Doc-first pass: review existing pages

    • Walk each relevant page under docs/ (excluding docs/ja, docs/ko, and docs/zh).
    • Identify missing mentions of important, supported options (opt-in flags, env vars), customization points, or new features from src/agents/ and examples/.
    • Propose additions where users would reasonably expect to find them on that page.
  4. Code-first pass: map features to docs

    • Review the current docs information architecture under docs/ and mkdocs.yml.
    • Determine the best page/section for each feature based on existing patterns and the API reference structure under docs/ref.
    • Identify features that lack any doc page or have a page but no corresponding content.
    • Note when a structural adjustment would improve discoverability.
    • When improving docs/ref/* pages, treat the corresponding docstrings/comments in src/ as the source of truth. Prefer updating those code comments so regenerated reference docs stay correct, instead of hand-editing the generated pages.
  5. Detect gaps and inaccuracies

    • Missing: features/configs present in main but absent in docs.
    • Incorrect/outdated: names, defaults, or behaviors that diverge from main.
    • Structural issues (optional): pages overloaded, missing overviews, or mis-grouped topics.
  6. Produce a Docs Sync Report and ask for approval

    • Provide a clear report with evidence, suggested doc locations, and proposed edits.
    • Ask the user whether to proceed with doc updates.
  7. If approved, apply changes (English only)

    • Edit only English docs in docs/**.
    • Do not edit docs/ja, docs/ko, or docs/zh.
    • Keep changes aligned with the existing docs style and navigation.
    • Update mkdocs.yml when adding or renaming pages.
    • Classify the complete diff with the Documentation Verification Tiers in AGENTS.md and run only the checks required by that tier.
    • For content or structural changes, run make build-docs once after the edits and required review are stable. Do not run it for editorial-only changes.

Output format

Use this template when reporting findings:

Docs Sync Report

  • Doc-first findings
    • Page + missing content -> evidence + suggested insertion point
  • Code-first gaps
    • Feature + evidence -> suggested doc page/section (or missing page)
  • Incorrect or outdated docs
    • Doc file + issue + correct info + evidence
  • Structural suggestions (optional)
    • Proposed change + rationale
  • Proposed edits
    • Doc file -> concise change summary
  • Questions for the user

References

  • references/doc-coverage-checklist.md

When not to use it

  • Editing non-English documentation files
  • Updating documentation without user approval

Prerequisites

Git repository with docs/ folder

Limitations

  • Only updates English documentation
  • Requires manual approval before applying changes

How it compares

It performs a code-first analysis to map features to documentation, ensuring that reference docs stay aligned with the actual implementation.

Compared to similar skills

docs-sync side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
docs-sync (this skill)44moNo flagsIntermediate
architecture-decision-records545moReviewBeginner
meeting-minutes416moNo flagsBeginner
docs-write226moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

skill-installer

openai

Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).

29141

figma-implement-design

openai

Translate Figma nodes into production-ready code with 1:1 visual fidelity using the Figma MCP workflow (design context, screenshots, assets, and project-convention translation). Trigger when the user provides Figma URLs or node IDs, or asks to implement designs or components that must match Figma specs. Requires a working Figma MCP server connection.

2460

figma

openai

Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.

2266

gh-fix-ci

openai

Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions; use `gh` to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treat external providers (for example Buildkite) as out of scope and report only the details URL.

1234

transcribe

openai

Transcribe audio files to text with optional diarization and known-speaker hints. Use when a user asks to transcribe speech from audio/video, extract text from recordings, or label speakers in interviews or meetings.

1148

gh-address-comments

openai

Help address review/issue comments on the open GitHub PR for the current branch using gh CLI; verify gh auth first and prompt the user to authenticate if not logged in.

1059

Search skills

Search the agent skills registry