agentleFS
MrCipherSmithMrCipherSmith/goodai-base/skills/claude-md-management/SKILL.md

claude-md-management

Skill0 starsChanged 5 months agoMITView on GitHub

Use when saving session learnings, coding patterns, conventions, or commands discovered during work into CLAUDE.md files.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 9 are distinctive, and 3 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.

  • 3

    Very specific

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

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

    Keep organized with clear ## headers

    line 68
  2. Distinctive:

    Avoid duplication — merge with existing

    line 69
  3. Distinctive:

    Remove outdated entries if contradicted

    line 70
  4. Very specific:

    Use ## headers for sections

    line 74
  5. Very specific:

    Use - bullet lists for items

    line 75
  6. Distinctive:

    Keep entries concise (1 line each)

    line 76
  7. Distinctive:

    No frontmatter in CLAUDE.md files

    line 78
  8. Distinctive:

    ALWAYS show proposed changes before applying

    line 83
  9. Distinctive:

    NEVER remove existing entries without explanation

    line 84
  10. Distinctive:

    NEVER add entries that duplicate what's already there

    line 85
  11. Distinctive:

    Keep CLAUDE.md files under 100 lines

    line 86
  12. Distinctive:

    Prefer project-level for project-specific things

    line 87

≈ “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

CLAUDE.md Management

Capture session insights and persist them into the appropriate CLAUDE.md file.

Arguments

  • /revise-claude-md — analyze session and propose updates
  • /revise-claude-md "specific thing" — add a specific entry
  • /revise-claude-md --auto — apply without asking (for pipelines)

Workflow

Step 1: Collect Session Insights

Analyze the current conversation for:

  • Coding patterns discovered or established
  • Project conventions learned (naming, structure, testing)
  • Build/deploy commands that work
  • Gotchas and pitfalls encountered
  • Architecture decisions made
  • Tool configurations set up

Step 2: Read Current CLAUDE.md Files

  1. Project-level: <project-root>/CLAUDE.md
  2. User-level: ~/.claude/CLAUDE.md
  3. Project-specific user-level: ~/.claude/projects/<project-path>/CLAUDE.md

Step 3: Classify Each Insight

TypeTarget
Project conventions, build commands<project>/CLAUDE.md
Global preferences, workflow rules~/.claude/CLAUDE.md
Project-specific personal notes~/.claude/projects/<path>/CLAUDE.md

Step 4: Propose Changes

Present diff preview:

📝 Proposed CLAUDE.md updates:

[project] CLAUDE.md:
+ ## Build Commands
+ - `npm run dev` — start dev server on port 3000

[global] ~/.claude/CLAUDE.md:
+ ## Preferences
+ - Always use conventional commits

Step 5: Apply (after user approval)

  1. Edit existing sections or append new sections
  2. Keep organized with clear ## headers
  3. Avoid duplication — merge with existing
  4. Remove outdated entries if contradicted

Formatting Rules for CLAUDE.md

  • Use ## headers for sections
  • Use - bullet lists for items
  • Keep entries concise (1 line each)
  • Group by: Commands, Conventions, Architecture, Gotchas
  • No frontmatter in CLAUDE.md files
  • CLAUDE.md should be practical — commands you run, not documentation

Rules

  • ALWAYS show proposed changes before applying
  • NEVER remove existing entries without explanation
  • NEVER add entries that duplicate what's already there
  • Keep CLAUDE.md files under 100 lines
  • Prefer project-level for project-specific things

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.