agentleFS
nortonxnortonx/ai-tooling-free/skills/update-claude-md/SKILL.md

update-claude-md

Skill1 starsChanged 2 months agoMITView on GitHub

Update the project's CLAUDE.md with conventions and patterns from recent branch changes. Args: [<path-to-CLAUDE.md>]

7 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use codebase-design, domain-modeling and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GoogleSkill

    codebase-design

    Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

    Also in 3 projects that use this

  • GoogleSkill

    domain-modeling

    Build and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model.

    Also in 3 projects that use this

  • +3 more from google

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Locate CLAUDE.md: Use $ARGUMENTS as the path if provided.

    line 26
  2. Distinctive:

    Read the current CLAUDE.md in full.

    line 31
  3. Very specific:

    Run git diff main...HEAD (or master...HEAD) to get the branch diff.

    line 32
  4. Distinctive:

    After showing the diff, ask: "Apply these changes?"

    line 62
  5. Distinctive:

    If no CLAUDE.md is found, stop and report the paths checked.

    line 69
  6. Distinctive:

    Do not apply changes until the user approves.

    line 70

“Common” is measured: kept by at least 6 in 10 of the 5 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
<!-- Note: $ARGUMENTS is substituted by Claude commands only. In Copilot, the user must include their argument inline in the prompt; the skill body sees the literal text "$ARGUMENTS" unsubstituted. -->

Arguments

[<path-to-CLAUDE.md>]

  • Optional. Explicit path to the CLAUDE.md to update; defaults to searching the repo root and .claude/.
  • Examples: /update-claude-md, /update-claude-md packages/api/CLAUDE.md

Copilot CLI note: $ARGUMENTS does not substitute in skills; include the argument inline in your prompt.

Update CLAUDE.md

Analyze recent branch changes and propose additions to the project CLAUDE.md.

Scope

  1. Locate CLAUDE.md: Use $ARGUMENTS as the path if provided; otherwise search the repo root and .claude/ for a CLAUDE.md file.
  2. Diff source: Changes between this branch and main/master.

Task

  1. Read the current CLAUDE.md in full.
  2. Run git diff main...HEAD (or master...HEAD) to get the branch diff.
  3. Identify additions worth documenting: only stable, reusable conventions:
    • New CLI commands, scripts, or tooling patterns introduced
    • New architectural patterns or module conventions
    • Non-obvious configuration or environment constraints
    • Public API changes (new endpoints, changed contracts, new env vars)
    • New dependencies and why they were added
    • Gotchas, workarounds, or constraints discovered during the work
  4. Filter out:
    • One-off fixes unlikely to recur
    • Implementation details (function bodies, variable names)
    • Anything already documented in CLAUDE.md
    • Obvious information derivable from reading the code

Output

Show proposed additions as a diff; do not edit any files yet:

### Update: <path-to-CLAUDE.md>

**Why:** <one-line reason>

```diff
+ <addition: one line per concept>

Group by section if adding to multiple parts of the file. If nothing new is worth documenting, say so and explain why.

After showing the diff, ask: **"Apply these changes?"**

## Rules

- **Never delete or rewrite existing content**: append or update only.
- **Match the existing CLAUDE.md's style** by example, not by paraphrase. Before drafting, scan the file for: heading depth (does it use `##` or `###` for new sections?), bullet style (`-` vs `*`), whether prose paragraphs or bullets dominate, whether code identifiers are backticked, whether examples use fenced code blocks or inline references. Mirror those choices in your additions.
- One line per concept: CLAUDE.md is part of the prompt; brevity matters. A "line" is one bullet or one short sentence. If you need 3+ lines to explain a concept, the concept is two concepts; split it.
- If no CLAUDE.md is found, stop and report the paths checked.
- Do not apply changes until the user approves.

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.