agentleFS
bakaschwarzbakaschwarz/agent-skills/skills/readme-update/SKILL.md

readme-update

Skill0 starsChanged 6 months agoMITView on GitHub

Maintains the project's README.md by cross-referencing git history with the current README content. Use this whenever you want to check if the README is up to date, after a sprint, before a release, or when you suspect the docs have fallen behind. Handles creating a README from scratch if none exists.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. momentmaker/kaijutsu★ 3same name
    2. navikt/hovmester★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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:

    Look for README.md in the project root (the directory where you're currently working).

    line 20
  2. Distinctive:

    Ask the user these questions (you can ask them all at once):

    line 23
  3. Distinctive:

    If git returns nothing (README exists but was never committed), treat it as if the last update was the beginning of time — all commits are …

    line 48
  4. Distinctive:

    If there are no commits since then, tell the user: "The README appears to be up to date — no commits have been made since it was last …

    line 59
  5. Distinctive:

    Wait for the user's answer.

    line 83
  6. Distinctive:

    Only write to README.md after the user confirms.

    line 138
  7. Distinctive:

    Don't over-document: Only add things a user of this project needs to know.

    line 144
  8. Distinctive:

    Preserve the user's voice and structure: Don't reorganize, reformat, or rewrite sections that aren't affected by the changes.

    line 145
  9. Distinctive:

    Show your work: When you flag a commit as relevant, briefly explain why (what in the README it relates to).

    line 147

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

README Update Workflow

Your job is to keep the project's README.md in sync with what the project actually does. Work methodically through the steps below. Always confirm changes with the user before writing.


Step 1 — Check for README

Look for README.md in the project root (the directory where you're currently working).

If no README exists: Ask the user these questions (you can ask them all at once):

  1. What is this project? (one-sentence description)
  2. Who is it for? (end users, developers, internal tooling, etc.)
  3. Are there any sections you definitely want? (e.g. Installation, Usage, API, Contributing)

Then inspect the project to fill in what you can automatically:

  • package.json / Cargo.toml / pyproject.toml / etc. for name, description, scripts
  • Entry points and key source files to understand structure
  • Existing docs, comments, or config files

Draft the README, present it to the user for approval, then write it only after they confirm. a If README exists: Continue to Step 2.


Step 2 — Find the README's last update in git

Run:

git log --follow --format="%H %ai %s" -- README.md | head -1

This gives you the most recent commit that touched the README. Note the commit hash and date.

If git returns nothing (README exists but was never committed), treat it as if the last update was the beginning of time — all commits are "since then."


Step 3 — Collect commits since the README was last updated

Run:

git log --format="%H %ai %s" <last-readme-commit-hash>..HEAD

If there are no commits since then, tell the user: "The README appears to be up to date — no commits have been made since it was last modified." Then stop.


Step 4 — Identify commits that likely require README changes

Go through the commit list and flag commits that:

  1. Introduce new features — commit message starts with feat, feature, add, or similar
  2. Change existing behavior — fix, change, update, modify, rename, refactor — but only when the change is user-facing or behavioral (not purely internal cleanup)
  3. Cross-reference with the README — regardless of the semrel prefix, if the commit message mentions something that's already described in the README (a command name, a flag, a concept, a workflow, a dependency, a section topic), that commit is relevant. Read the README carefully and match against commit message content.

Commits you can usually ignore:

  • Pure chore / ci / style / lint / test commits with no behavioral changes
  • Dependency bumps that don't affect the user-facing API or usage

If you find relevant commits: Go to Step 5.

If there are commits but none seem relevant: Tell the user what you found, e.g.:

"There are 8 commits since the README was last updated, but none appear to introduce new features or change anything already described in the README. The commits are mostly [chores/dependency updates/internal refactors].

Want me to dig into the actual diffs to double-check? I might find something the commit messages didn't make obvious."

Wait for the user's answer. If they say yes, proceed to Step 5 using all commits. If no, stop.


Step 5 — Examine diffs for relevant commits

For each flagged commit, run:

git show <hash> --stat
git diff <hash>^..<hash> -- <relevant files>

Focus on source files, config files, and CLI entry points — not test files or build artifacts unless the README specifically mentions them.

You're looking for:

  • New commands, flags, options, or modes
  • Changed command names, flag names, or default values
  • New or removed dependencies that users need to know about
  • New setup steps, environment requirements, or prerequisites
  • Renamed concepts, files, or workflows that the README currently describes incorrectly

Step 6 — Draft the changes

Based on what you found, draft the minimal set of README changes needed:

  • Add content for genuinely new things the README doesn't mention
  • Update content that's now inaccurate (old command names, changed behavior, etc.)
  • Remove content only if you're confident it's obsolete — if you're not sure, flag it as a question for the user rather than removing it

For anything you're uncertain about — especially removals or significant rewrites — ask the user before including it in the draft:

"The README mentions X, but commit abc1234 seems to have removed/changed it. Should I remove/update this section?"


Step 7 — Present the draft for approval

Show the user a clear diff-style summary of what you're proposing to change. Use this format:

## Proposed README changes

### Add to "Installation" section:
<the new content>

### Update in "Usage" section:
Old: <current text>
New: <proposed text>

### Remove from "Configuration" section:
<the content you'd remove, and why>

Then ask: "Does this look right? Should I go ahead and apply these changes?"

Only write to README.md after the user confirms. Apply all changes in a single edit.


Principles

  • Don't over-document. Only add things a user of this project needs to know. Internal implementation details don't belong in the README unless it's a library/API.
  • Preserve the user's voice and structure. Don't reorganize, reformat, or rewrite sections that aren't affected by the changes.
  • When in doubt, ask. It's better to confirm a small thing than to silently remove something the user cares about.
  • Show your work. When you flag a commit as relevant, briefly explain why (what in the README it relates to).

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.