
Docs Sync
OfficialFreeEnsure your documentation is accurate and up-to-date.
Free · Opens the source repo
What Docs Sync does
Docs Sync is a skill designed to help developers maintain accurate and comprehensive documentation for their projects. By analyzing the implementation and configuration of the main branch, it identifies gaps, inaccuracies, and outdated content in the documentation located in the docs/ directory. This skill is particularly useful for teams that want to keep their documentation aligned with the evolving codebase, ensuring that users have access to the most current information without unnecessary confusion.
The workflow begins by confirming the scope of the documentation audit, typically focusing on the main branch. It builds a feature inventory based on the current state of the code, capturing user-facing behaviors such as public exports, configuration options, and CLI commands. The skill then conducts a thorough review of existing documentation, identifying missing content and proposing necessary additions or adjustments to improve clarity and usability.
Once the analysis is complete, Docs Sync generates a comprehensive report detailing findings, including missing features, incorrect information, and structural suggestions for the documentation. This report is presented to the user for approval before any changes are made, ensuring that updates are transparent and aligned with the existing documentation style. The skill is designed to only update English documentation, leaving translated versions untouched, which helps maintain consistency across different language versions.
Overall, Docs Sync is an essential tool for developers and technical writers who prioritize documentation accuracy and want to streamline the process of keeping their docs in sync with code changes. By automating the identification of documentation gaps and inaccuracies, it allows teams to focus on development while ensuring that their documentation remains a reliable resource for users.
When to use it
Use Docs Sync when you need to audit documentation coverage, sync docs with code changes, or propose updates to existing documentation.
When not to use it
This skill is not suitable for projects that do not have a structured documentation process or where documentation is not regularly updated, as it relies on a consistent codebase and documentation structure.
What you can build with it
Auditing Documentation
Use Docs Sync to perform a thorough audit of your project's documentation, ensuring that all features and configurations are accurately represented.
Syncing Code Changes
When significant changes are made to the codebase, Docs Sync can help identify necessary updates to the documentation, keeping it aligned with the latest code.
Proposing Documentation Improvements
If you notice inconsistencies in your documentation, Docs Sync can generate a report suggesting targeted improvements for better clarity and usability.
How to install Docs Sync
View source1. Install with the skills CLI
npx skills add openai/openai-agents-python/docs-sync --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by openaiDocs 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
-
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 vsmainto scope doc updates. - Avoid switching branches if it would disrupt local changes; use
git show main:<path>orgit worktree addwhen needed.
- Identify the current branch and default branch (usually
-
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 vsmain(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-knowledgeto 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.
- If on
-
Doc-first pass: review existing pages
- Walk each relevant page under
docs/(excludingdocs/ja,docs/ko, anddocs/zh). - Identify missing mentions of important, supported options (opt-in flags, env vars), customization points, or new features from
src/agents/andexamples/. - Propose additions where users would reasonably expect to find them on that page.
- Walk each relevant page under
-
Code-first pass: map features to docs
- Review the current docs information architecture under
docs/andmkdocs.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 insrc/as the source of truth. Prefer updating those code comments so regenerated reference docs stay correct, instead of hand-editing the generated pages.
- Review the current docs information architecture under
-
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.
-
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.
-
If approved, apply changes (English only)
- Edit only English docs in
docs/**. - Do not edit
docs/ja,docs/ko, ordocs/zh. - Keep changes aligned with the existing docs style and navigation.
- Update
mkdocs.ymlwhen adding or renaming pages. - Build docs with
make build-docsafter edits to verify the docs site still builds.
- Edit only English docs in
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
Frequently asked questions about Docs Sync
Similar skills
Markdown to HTML Conversion
Efficiently convert Markdown documents to HTML.
Code Tour
Create structured walkthroughs for codebases.
Acquire Codebase Knowledge
Streamline onboarding with comprehensive codebase documentation.
Documentation & Modernization
Streamline codebase documentation and modernization planning.
Azure Resource Visualizer
Generate architecture diagrams for Azure resources.
CLAUDE.md Improver
Optimize your CLAUDE.md files for better project context.
