doc-sync

Detects and updates documentation that has drifted from the actual code implementation.

1|Updated Aug 24, 2026
One-click install
npx skills add https://github.com/mjun0812/skills --skill doc-sync-mjun0812
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc-sync
Source: https://github.com/mjun0812/skills/tree/main/skills/docs/doc-sync
Command: npx skills add https://github.com/mjun0812/skills --skill doc-sync-mjun0812

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Documentation drifts out of sync with code as implementations change, leaving READMEs, docstrings, and API specs describing functions, flags, and endpoints that no longer exist. This Skill compares repository documentation against the actual implementation, detects every divergence, and updates the docs to match the code. ## Core Features & Use Cases - Divergence Detection: Scans Markdown files, docstrings, OpenAPI/Swagger specs, and example config files, then cross-checks them against real function names, CLI flags, API endpoints, and config keys in the code. - Bulk Auto-Update: Applies all detected fixes in one pass while preserving the original language, style, and formatting of each document. - Dry-Run Preview: The --dry-run flag reports detected divergences with before/after previews without modifying any files. - Use Case: After renaming CLI flags and adding a required API field, run the Skill on the repo to find every stale reference in README.md and docs/api.md and rewrite them to match the current implementation. ## Quick Start Ask the AI to check the repository documentation against the current implementation and update any outdated sections, optionally with --dry-run to preview changes first.

Frequently Asked Questions about doc-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find outdated documentation in my repository?

Run the doc-sync skill against your repository to scan Markdown files, docstrings, OpenAPI specs, and example configs, then cross-check them against the actual code. It reports every divergence organized by file and section before applying updates.

How to preview documentation changes without modifying files?

Use the --dry-run flag, for example /doc-sync --dry-run. The skill detects divergences and shows before/after previews of each proposed change without calling any edit or write operations.

Can I sync docs for only one directory or file?

Yes, pass a path argument such as /doc-sync docs/api/ or /doc-sync README.md to limit the scan and update scope. This is recommended for large repositories and monorepos where each package has independent documentation.

Does doc-sync work with OpenAPI or Swagger specifications?

It detects endpoint and schema divergences in openapi.yaml, openapi.json, and swagger files. However, if the spec is auto-generated from code by tools like zod-to-openapi, it skips updating and notifies you instead.

Will doc-sync rewrite my documentation style or translate it?

No, it only fixes factually incorrect content and preserves the original language, tone, heading levels, and formatting. Translation happens only when you explicitly pass a language argument.

What are the limitations of automated documentation syncing?

The skill skips divergences where implementation intent is ambiguous and reports them for manual review. It also never commits changes, excludes directories like node_modules and .git, and avoids auto-generated OpenAPI schemas.