agentleFS
dgilforddgilford/ai-science-toolkit/skills/evolve-claude-md/SKILL.md

evolve-claude-md

Skill63 starsChanged 2 months agoMITView on GitHub

Update CLAUDE.md — or the canonical AGENTS.md it redirects to — with durable knowledge from the current session. Use at the end of a working session to promote new findings, renamed variables, refined definitions, or corrected assumptions into the permanent project record.

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    Do not add: session-specific state, task progress, anything already in CLAUDE.md, speculative findings, or things that belong in HANDOFF.md.

    line 41
  2. Distinctive:

    If nothing meaningful warrants an update, say so explicitly and stop.

    line 48

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

Review the current session and update the project's canonical agent-guidance file with anything durable that it doesn't yet know.

Target file

CLAUDE.md by default — but some repos keep a thin CLAUDE.md stub that redirects to a canonical AGENTS.md (the cross-tool convention scaffolded by /repo-init). Resolve the target before editing:

A redirect stub is a CLAUDE.md whose only content is the redirect to AGENTS.md plus pointer lines (the shape /repo-init scaffolds) — nothing project-specific. A stray substantive line in an otherwise-stub file is residue: migrate it into AGENTS.md as part of this run and leave the stub clean.

Repo stateEdit
CLAUDE.md substantive, no AGENTS.md (the most common state)CLAUDE.md
CLAUDE.md is a redirect stubAGENTS.md — leave the stub untouched (create AGENTS.md if the stub points at a missing file)
No CLAUDE.md, but AGENTS.md existsAGENTS.md
Both exist with substantive contentCLAUDE.md, and flag the split-brain to the user so they can consolidate
Neither existsCreate CLAUDE.md

What belongs in the canonical file

Promote only knowledge that is:

  • Permanent — true beyond this session (not current task state)
  • Project-level — relevant to anyone working in this repo
  • Non-obvious — not derivable from reading the code directly

Good candidates: renamed or new variables, corrected definitions, newly understood warn patterns, confirmed pipeline behavior, resolved ambiguities about data schema, architectural decisions with non-obvious rationale.

Good: Pipeline requires --baseline to be passed explicitly; there is no default. — permanent code behavior that would surprise any future developer.

Bad: Dataset coverage is 1981-09-01 through 2026-05-16 (16,329 zarrs). — describes the current data artifact being processed, not the codebase. Belongs in HANDOFF.md.

The test: if removing this fact would cause a future developer to misunderstand how the pipeline works, it belongs here. If it describes the data being processed this session, it belongs in the handoff.

Do not add: session-specific state, task progress, anything already in CLAUDE.md, speculative findings, or things that belong in HANDOFF.md.

Steps

  1. Resolve the target file (table above) and read it in full.
  2. Scan the session for new knowledge: check git diff, recently modified files, and conversation context.
  3. Identify specific additions or corrections — be precise about what changed and why.
  4. If nothing meaningful warrants an update, say so explicitly and stop.
  5. Otherwise, make targeted edits to the target file. Do not rewrite sections that don't need changing.
  6. Briefly summarize what was added or corrected, where, and why.

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.