agentleFS
cfircoocfircoo/claude-code-toolkit/CLAUDE.md

claude-code-toolkit

CLAUDE.md17 starsChanged 9 months agoMITView on GitHub

Auto-generated by The AI Brain. Edit .brain/brain.yaml and run /the-ai-brain:brain-vault-align to update. Last generated: 2026-03-28

The file

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

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

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before doing ANY work:

    line 24
  2. Very specific:

    Read the most recent file in Machine/Session-Logs/

    line 27
  3. Distinctive:

    Read today's daily note if it exists

    line 28
  4. Distinctive:

    Prefer CLI commands over raw file reads:

    line 32
  5. Distinctive:

    Use [[wikilinks]] for all internal references

    line 44
  6. Very specific:

    Update Machine/Memory/context-cache.md with current working context

    line 58
  7. Very specific:

    Before ending any session, write a session log to Machine/Session-Logs/YYYY-MM-DD-{topic}.md using the template at …

    line 61
  8. Distinctive:

    When the user corrects behavior:

    line 64
  9. Distinctive:

    Wait for user approval before adding the rule

    line 67

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

Claude Code Toolkit Brain — AI Brain

Auto-generated by The AI Brain. Edit .brain/brain.yaml and run /the-ai-brain:brain-vault-align to update. Last generated: 2026-03-28

About the Owner

  • Name: cfircoo
  • Role: Developer / AI tooling builder
  • Domain: Claude Code skills, agents, hooks, commands

Vault Structure

  • Human/ — Human-authored content (READ only unless explicitly asked)
    • Human/Daily/ — Daily notes (YYYY-MM-DD.md)
    • Human/Projects/ — Project files
    • Human/Archive/ — Completed/archived items
  • Machine/ — AI-managed content (READ and WRITE freely)
    • Machine/Session-Logs/ — Session continuity logs
    • Machine/Memory/ — Persistent memory (entities, decisions, corrections)
    • Machine/Rules/ — Self-updating behavioral rules
    • Machine/Templates/ — Note/project templates
    • Machine/Canvases/ — Obsidian JSON canvas visualizations

Startup Protocol

Before doing ANY work:

  1. Read Machine/Rules/active-rules.md
  2. Read Machine/Memory/context-cache.md
  3. Read the most recent file in Machine/Session-Logs/
  4. Read today's daily note if it exists

Obsidian CLI (active — v1.12.7)

On WSL2, obsidian is a wrapper to the Windows Obsidian.com CLI binary. Prefer CLI commands over raw file reads:

TaskCLI commandFallback
Search vaultobsidian search query=<text> format=jsonGrep files
Today's daily noteobsidian daily / obsidian daily:readRead file
Incomplete tasksobsidian tasks todo format=jsonGrep - [ ]
Find orphansobsidian orphans format=jsonManual link scan
Get backlinksobsidian backlinks file=<name> format=jsonGrep [[name]]
Open a noteobsidian open path=<path>N/A

Formatting Conventions

  • Use [[wikilinks]] for all internal references
  • Include YAML frontmatter on every new file
  • Date format: YYYY-MM-DD
  • Tags in frontmatter arrays: tags: [tag1, tag2]

Directory Permissions

  • Human/ — READ freely, WRITE only when explicitly asked
  • Machine/ — READ and WRITE freely
  • .brain/ — READ only (config, do not modify manually)

Memory Protocol

  • New person/project/tool encountered → log to Machine/Memory/entities.md
  • Significant decision made → log to Machine/Memory/decisions.md
  • User corrects behavior → log to Machine/Memory/corrections.md
  • Update Machine/Memory/context-cache.md with current working context

Session End Protocol

Before ending any session, write a session log to Machine/Session-Logs/YYYY-MM-DD-{topic}.md using the template at Machine/Templates/session-log.md.

Self-Improvement Protocol

When the user corrects behavior:

  1. Log the correction to Machine/Memory/corrections.md
  2. Propose a new rule for Machine/Rules/active-rules.md
  3. Wait for user approval before adding the rule
  4. Log the rule change to Machine/Rules/rule-changelog.md

Global Brain

At startup, also read ~/Brain/CLAUDE.md for:

  • Who I am (identity, role, global preferences)
  • Global rules that apply to all projects
  • Cross-project entities (people, tools, recurring patterns)
  • Known projects registry

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.