agentleFS
byronwadebyronwade/memoria/.claude/CLAUDE.md

memoria

CLAUDE.md2 starsChanged 12 months agoMITView on GitHub

Memoria gives AI assistants memory of what broke before. Use these MCP tools to avoid breaking coupled files. BEFORE modifying any file, call the analyze_file MCP tool with the absolute path: What you get: - Risk Score (0-100): LOW (0-24), MEDIUM (25-49), HIGH (50-74), CRITICAL (75+) - Coupled Files: Files that historically change together - Static Dependents: Files that import this file - Pre-flight Checklist: Files to verify before committing Actions based on risk: - LOW (0-24): Safe to proceed…

The file

We split this CLAUDE.md into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    MEDIUM (25-49): Verify coupled files are still compatible

    line 22
  2. Distinctive:

    HIGH (50-74): Read all coupled files before making changes

    line 23
  3. Distinctive:

    CRITICAL (75+): Stop and ask the user before proceeding

    line 24
  4. Distinctive:

    IMPORTANT: Use SHORT keywords (1-3 words).

    line 34
  5. Distinctive:

    If risk is CRITICAL: Stop and ask user before proceeding

    line 47
  6. Distinctive:

    If risk is HIGH: Read all coupled files first

    line 48
  7. Very specific:

    Before removing code: Call ask_history to check if it's a bug fix

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md
<!-- MEMORIA:START -->

Memoria Integration

Memoria gives AI assistants memory of what broke before. Use these MCP tools to avoid breaking coupled files.

File Analysis Rule

BEFORE modifying any file, call the analyze_file MCP tool with the absolute path:

{"path": "/absolute/path/to/file.ts"}

What you get:

  • Risk Score (0-100): LOW (0-24), MEDIUM (25-49), HIGH (50-74), CRITICAL (75+)
  • Coupled Files: Files that historically change together
  • Static Dependents: Files that import this file
  • Pre-flight Checklist: Files to verify before committing

Actions based on risk:

  • LOW (0-24): Safe to proceed normally
  • MEDIUM (25-49): Verify coupled files are still compatible
  • HIGH (50-74): Read all coupled files before making changes
  • CRITICAL (75+): Stop and ask the user before proceeding

History Search Rule

Before removing "weird" code, call ask_history to understand WHY it exists:

{"query": "setTimeout", "path": "/absolute/path/to/file.ts"}

IMPORTANT: Use SHORT keywords (1-3 words). Do NOT use full sentences - git grep requires exact matches.

Parameters:

  • query - Short keyword (e.g., "setTimeout", "Safari", "race condition")
  • path - Optional: scope to specific file
  • searchType - "message", "diff", or "both" (default)
  • startLine/endLine - For line-range search (Sherlock Mode)

Example: You see setTimeout(() => resolve(), 0) and think it's useless. Search for "setTimeout" and find a commit from 2 years ago: "Fix race condition in Safari." Keep the code!

Mandatory Rules

  1. ALWAYS call analyze_file before modifying any code file
  2. If risk is CRITICAL: Stop and ask user before proceeding
  3. If risk is HIGH: Read all coupled files first
  4. Before removing code: Call ask_history to check if it's a bug fix
  5. Use ABSOLUTE paths (e.g., /Users/name/project/src/file.ts)
  6. Use SHORT keywords in ask_history queries (not sentences)
<!-- MEMORIA:END -->

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.