agentleFS
Cody-SimsCody-Sims/agent-skills/skills/documentation-maintenance/SKILL.md

documentation-maintenance

Skill0 starsChanged 4 months agoMITView on GitHub

Keeps README, API docs, architecture notes, ADRs, and changelogs accurate when code changes by identifying which documents a change invalidates, documenting rationale, keeping setup instructions and examples runnable, updating the changelog with user-visible changes, and removing stale content. Use when code, configuration, commands, interfaces, or behavior change and documentation must be updated, or when writing an ADR or changelog entry.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep documentation true to the code.

    line 13
  2. Distinctive:

    Search the documentation for the names, commands, flags, paths, and values the change touched.

    line 26
  3. Distinctive:

    Keep setup instructions executable and verified: Run the documented setup and command sequence, or trace it exactly, and confirm it still …

    line 36
  4. Distinctive:

    Keep examples runnable: Ensure code samples compile or run against the current interfaces.

    line 39
  5. Distinctive:

    Remove stale content; do not append to it: Delete or rewrite the outdated passage rather than adding a correction beside it.

    line 41
  6. Distinctive:

    Write an ADR when a change makes or reverses a significant, hard-to-undo decision, such as a technology choice, an interface contract, or a …

    line 48
  7. Distinctive:

    Do not edit an accepted ADR's decision after the fact.

    line 56
  8. Distinctive:

    Update the changelog whenever a change is visible to users of the software.

    line 61
  9. Distinctive:

    Add an entry under the unreleased section using the changelog entry format.

    line 63
  10. Distinctive:

    Call out breaking changes explicitly and describe the migration.

    line 67

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Documentation Maintenance

Keep documentation true to the code. Out-of-date docs mislead humans and agents and are often worse than none. Treat documentation as part of the change, not a follow-up.

Identify What a Change Invalidates

  1. Review the change and list every document it could contradict:
    • README — setup, commands, prerequisites, and feature summaries.
    • API docs — signatures, parameters, return values, errors, and examples.
    • Architecture notes — component responsibilities, data flow, and diagrams.
    • ADRs — decisions the change reverses, supersedes, or fulfills.
    • Changelog — any user-visible addition, change, fix, or removal.
    • Inline comments and docstrings near the edited code.
  2. Search the documentation for the names, commands, flags, paths, and values the change touched. Renamed or removed identifiers are a common source of staleness.
  3. Decide for each affected document whether to update, supersede, or delete content. Do not leave a contradiction unresolved.

Update Principles

  • Document rationale, not just mechanics. Explain why something works the way it does and what constraint it satisfies, so a reader can adapt it rather than copy it blindly. The code already shows the mechanics.
  • Keep setup instructions executable and verified. Run the documented setup and command sequence, or trace it exactly, and confirm it still works. Update any step the change altered.
  • Keep examples runnable. Ensure code samples compile or run against the current interfaces. A broken example is a defect.
  • Remove stale content; do not append to it. Delete or rewrite the outdated passage rather than adding a correction beside it. Layered corrections rot fast.
  • Use consistent terminology with the code and the rest of the documentation.
  • Use relative links within the repository so they survive relocation.

Architecture Decision Records

Write an ADR when a change makes or reverses a significant, hard-to-undo decision, such as a technology choice, an interface contract, or a structural boundary.

  1. Copy the ADR template.
  2. Record the context and forces, the decision, the alternatives considered and why they were rejected, and the consequences including trade-offs.
  3. Give the ADR a stable number and a status: proposed, accepted, superseded, or deprecated.
  4. Do not edit an accepted ADR's decision after the fact. Supersede it with a new ADR that links back to the one it replaces, preserving the history.

Changelog

Update the changelog whenever a change is visible to users of the software.

  1. Add an entry under the unreleased section using the changelog entry format.
  2. Classify it as Added, Changed, Deprecated, Removed, Fixed, or Security.
  3. Describe the effect on the user, not the internal implementation.
  4. Call out breaking changes explicitly and describe the migration.
  5. Skip purely internal changes with no user-visible effect, such as a refactor that alters no behavior.

Verify

  1. Re-read each updated document in full for internal consistency.
  2. Confirm every documented command and example was checked against the current code, and note which were run.
  3. Confirm no contradiction, dead link, or stale identifier remains.

Report

Return: the documents updated, superseded, or deleted; the commands and examples verified and their result; any ADR added or superseded; the changelog entry; and any documentation gap left for follow-up.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.