agentleFS
timmo001timmo001/skills/maintain-docs/SKILL.md

maintain-docs

Skill1 starsChanged 56 days agoApache-2.0View on GitHub

Keep documentation current and accurate with recent code changes, across in-code docs (docstrings, annotations, comments), in-repo docs sites, and external docs repositories. Use when asked to update docs, check docs accuracy, keep documentation current, document recent changes, refresh docstrings or annotations, or catch documentation up with the codebase. Matches the codebase's existing documentation density and stops before commit.

1 other project uses 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. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    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 current and accurate as the codebase evolves.

    line 9
  2. Distinctive:

    Verify against source. Never document behaviour you have not confirmed in the code, never preserve claims that no longer match …

    line 13
  3. Distinctive:

    Prefer updating existing docs over adding redundant pages.

    line 15
  4. Distinctive:

    Keep the change documentation-only and focused.

    line 17
  5. Distinctive:

    Do not commit, push, or open a pull request.

    line 18
  6. Distinctive:

    Check doc mode fit before editing: tutorials teach, how-to guides complete a task, reference states facts, and explanations build …

    line 22
  7. Distinctive:

    Prefer current-state, timeless wording.

    line 23
  8. Distinctive:

    Test commands, setup steps, examples, and sample code where practical.

    line 24
  9. Distinctive:

    Remove or link duplicated procedures and repeated facts.

    line 25
  10. Distinctive:

    Check audience and task fit: the page should make prerequisites clear and answer what the reader needs to do or understand next.

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

Maintain docs

Keep documentation current and accurate as the codebase evolves. Cover recently changed subsystems with weak, stale, or inaccurate docs, public interfaces, workflows, operational runbooks, and setup or troubleshooting notes. This is authoring against verified behaviour, distinct from /research (external primary-source lookup) and /explore-codebase (internal discovery).

Guardrails (always)

  • Verify against source. Never document behaviour you have not confirmed in the code, never preserve claims that no longer match implementation, and never fabricate coverage.
  • Match the codebase's existing documentation density and style, inferred from its agent instructions and existing code and docs. Shared, exported, or component-level surfaces get docs; single-use or self-explanatory internals do not. Do not introduce documentation conventions the codebase does not already use, such as docstrings in a codebase that avoids them or a new docs site where none exists.
  • Prefer updating existing docs over adding redundant pages.
  • Conform to the user's established writing style and voice: concise, human, house style, no robotic or marketing tone. Defer to any repo house style.
  • Keep the change documentation-only and focused. Do not mix in unrelated code changes.
  • Do not commit, push, or open a pull request.

Quality checks

  • Check doc mode fit before editing: tutorials teach, how-to guides complete a task, reference states facts, and explanations build understanding. Do not blur modes unless the existing docs deliberately do.
  • Prefer current-state, timeless wording. Remove stale temporal framing such as "now", "new", "currently", "recently", "latest", or "soon" unless timing is the point of the doc.
  • Test commands, setup steps, examples, and sample code where practical. If something cannot be run, say exactly what was verified instead.
  • Remove or link duplicated procedures and repeated facts. Keep one source of truth and use cross-references when the docs already support them.
  • Check audience and task fit: the page should make prerequisites clear and answer what the reader needs to do or understand next.

Workflow

  1. Establish scope. Take the set of recent changes from version-control history (the recent-commits window), widening it with a since date or ref when a broader catch-up is wanted. If given a focus (subsystem, path, or topic), narrow to it. Otherwise cover the whole recent window. Include existing documentation claims in scope when they describe the changed behaviour, not only missing or newly needed docs.
  2. Discover the surfaces. Infer from the repo's own conventions which documentation surfaces apply to the changed areas: in-code docs (docstrings, annotations, comments), an in-repo docs site or design-doc build task, and documentation that lives in one or more external repositories. Read the repo's agent instructions, existing docs layout, comment density, doc-build tasks, and any references pointing to external docs. Identify both absent coverage and existing claims that may be stale, incomplete, misleading, or contradicted by the source. Only touch surfaces the codebase demonstrably uses.
  3. Investigate the changes. For each changed area with a likely doc gap or accuracy risk, read the change and the relevant existing docs in detail before writing. Apply the quality checks above to the affected surfaces, not just presence/absence checks. Verify claims about libraries, APIs, specifications, or GitHub behaviour against primary sources.
  4. Check access. Use available authorised documentation tools, local references, or CLI access. Missing one integration is not a blocker when another can provide the evidence. Edit external documentation only within the user's requested scope and granted access; report any required evidence or access that remains unavailable.
  5. Preview, then write. List the intended documentation updates (file, section, and why), including corrections to inaccurate existing claims and quality issues, before editing. Then write in-code and in-repo docs directly. For external locations that passed the gate, write in place; otherwise output the proposed changes for the user to apply.
  6. Verify. Run checks relevant to the changed documentation and any checks explicitly required by the repository. Use a docs build or link check when the edit affects those surfaces; do not run application tests or typechecks merely because documentation changed. Regenerate affected docs from source and check for drift instead of hand-editing generated pages. Report pre-existing, unrelated failures without fixing out-of-scope code.
  7. Report and stop. Stop before commit. Summarise what changed: docs added, updated, or corrected, the codepaths they cover, the key gaps or inaccuracies addressed, anything proposed but not written, and which repositories hold uncommitted doc changes. If no gaps or accuracy issues exist in scope, say the docs are already current and accurate, and make no edits.

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.