Skip to content
Back to skills

docs-sync

ASecurity

Keep documentation in sync with code changes across README, docs sites, API docs, runbooks, and configuration. Use when the user asks to update docs, ensure docs match behavior, or prepare docs for a release/PR.

  • 130 stars
  • 0 votes
  • 9 copies
  • 114 views
  • Added December 23, 2025
documentationtypescriptgospringgitapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add jMerta/codex-skills --skill docs-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of docs-sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for docs-sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jmerta-docs-sync/badge)](https://www.skillsdirectory.com/skills/jmerta-docs-sync)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: docs-sync
description: Keep documentation in sync with code changes across README, docs sites, API docs, runbooks, and configuration. Use when the user asks to update docs, ensure docs match behavior, or prepare docs for a release/PR.
---

# Docs sync

## Goal
Update documentation so it matches the current code and is easy for the target audience to follow.

## Inputs to ask for (if missing)
- What changed (feature/bugfix/refactor) and who the docs are for.
- Which docs surfaces matter: README, `/docs`, wiki, runbooks, API spec, changelog, onboarding.
- Any required format/voice (company style guide, "keep it short", etc.).

## Workflow (checklist)
1) Identify what changed
   - Use the diff to locate impacted areas:
     - `git diff --name-only`
     - `git diff`
2) Inventory docs surfaces in the repo
   - Common locations: `README.md`, `docs/`, `CONTRIBUTING.md`, `CHANGELOG.md`, `openapi.*`, `schema.graphql`, `adr/`, `runbooks/`.
   - For Spring: check for generated OpenAPI/Swagger docs or endpoint annotations.
   - For Next/TypeScript: check for docs pages, Storybook, or typed API clients.
   - If your repo uses `docs/` as the primary doc root, see `references/docs-structure.md` for a suggested layout.
3) Decide what needs updating
   - Ensure docs cover:
     - setup and local dev commands
     - required env vars / config keys
     - API contract changes (request/response examples)
     - DB migrations and operational steps
     - behavior changes visible to users
   - If the change is an architectural/behavioral decision, add or update an ADR (use `references/adr-template.md`).
4) Apply edits with minimal churn
   - Prefer small, targeted edits over rewrites.
   - Add examples that are copy/paste runnable.
   - Keep headings stable to avoid breaking deep links.
   - Use templates in `references/` when helpful.
5) Verify docs are consistent
   - Run the repo's existing doc checks if present (md lint, docs build, site build).
   - At minimum: ensure code fences match the actual commands and file paths, and env var names match the code.

## Deliverable
Provide:
- The list of docs files updated and why.
- A short "How to verify" section (commands or manual checks).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…