Keep Documentation

Keep project documentation accurate as code changes. Use whenever you add or change a feature, public API, config, env var, setup step, or command — and when the user asks to document something or writes new code without touching docs. Ensures README, usage docs, and inline docs stay true.

soukupl Updated

File contents

Keep documentation current

Documentation drift is a bug. When behavior changes, the docs describing it change in the same piece of work — not "later".

What to keep in sync (only what exists / is warranted)

  • README — setup, install, run, and the headline feature list.
  • Usage / API docs — public functions, endpoints, CLI flags, config keys, env vars.
  • CHANGELOG — user-facing changes, if the project keeps one.
  • Inline docs — doc comments on public surfaces you changed; keep them factual, not decorative.

How

  1. After a change, ask: "what did I make true or false?" Find the docs that assert the old behavior.
  2. Update them to match. Add docs for genuinely new surfaces.
  3. Match the project's existing doc style and location — don't invent a new docs system.
  4. If a change is user-visible but undocumented anywhere, say so and propose where it should live.

Restraint

Don't over-document: no docs for obvious internal helpers, no restating code in prose, no giant files for a tiny project. Right-size to the project. Documentation you add must be correct — verify commands and examples actually work before writing them down.

soukupl/claudeSkillsLibrary/tree/main/skills/keep-documentation commit fca22891f9

Frequently asked questions

npx skillmds@latest add soukupl/keep-documentation