sync-docs

Update hand-maintained documentation files to match recent code changes.

22|3|Updated Jul 28, 2024
One-click install
npx skills add https://github.com/webdevcody/go-mailing-list --skill sync-docs-webdevcody
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-docs
Source: https://github.com/webdevcody/go-mailing-list/tree/main/.claude/skills/sync-docs
Command: npx skills add https://github.com/webdevcody/go-mailing-list --skill sync-docs-webdevcody

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It prevents documentation from becoming stale after code changes, reducing confusion and integration errors for API, configuration, and developer workflows.

Core Features & Use Cases

  • Change-aware doc syncing: identifies what changed (API surface, env vars, dependencies, behavior, UX copy) before editing any documentation.
  • Doc inventory and validation: searches for the specific existing doc surfaces that reference the changed routes, symbols, or config keys and confirms they are hand-maintained rather than generated.
  • In-place, minimal edits: updates README, CHANGELOG, Swagger/OpenAPI specs, .env.example, ADR notes (only when appropriate), and inline doc comments while never creating new doc files.

Quick Start

Run sync-docs after your latest PR lands and tell the assistant what changed, or let it inspect the diff, so it can update the existing documentation to match the current code.

Frequently Asked Questions about sync-docs

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

FAQPage Schema
How do I keep my API documentation in sync with recent code changes?

To keep API documentation in sync with recent code changes, you can run sync-docs after a PR lands to inspect the diff and apply minimal, in-place edits to existing OpenAPI specs, READMEs, and .env.example files, preventing documentation drift.

What is the best way to update environment variable examples after a commit?

The best way to update environment variable examples after a commit is to use a change-aware syncing tool that searches your repository for hand-maintained .env.example files and applies minimal edits to match the latest configuration keys.

How does documentation drift detection work without overwriting generated outputs?

Documentation drift detection works by inventorying your repository's doc surfaces, confirming they are hand-maintained rather than generated outputs, and then applying targeted in-place edits only to stable identifiers and manual files.

Can I update Swagger specs in place after renaming a route?

Yes, you can update Swagger specs in place after renaming a route because the syncing process preserves stable identifiers in OpenAPI specs and edits existing documentation files directly rather than creating new ones.

Does sync-docs create new documentation files for missing API behaviors?

No, sync-docs does not create new documentation files; it strictly edits existing hand-maintained files like developer guides and ADR notes, and will only report gaps when it finds missing coverage for updated dependencies or behaviors.

When do I need to manually update documentation versus using an automated sync?

You need to manually update documentation when you want to create new doc files or modify generated outputs, whereas automated syncing is designed strictly for applying minimal, in-place edits to existing, hand-maintained documentation surfaces.