agentleFS
centminmodcentminmod/my-claude-code-setup/CLAUDE.md

my-claude-code-setup

CLAUDE.md2.7k starsChanged 6 months agoMITView on GitHub

This repo provides 3 CLAUDE.md templates following official Anthropic best practices: For migrating an existing CLAUDE.md to a new template, see CLAUDE-migrate-to-new-template.md. Use rg not grep, fd not find. tree is not installed. This template requires .claude/rules/core-rules.md for behavioral rules. If .claude/rules/ is missing or empty, alert the user and direct them to https://github.com/centminmod/my-claude-code-setup to obtain the companion rules files. This project uses a dual-memory architecture: Primary (git-shared): CLAUDE-*.md files in repo root — read on demand: Shadow (machine-local): Native…

Trending

More talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 16 mentionsFeb 2026: 2 mentionsMar 2026: 11 mentionsApr 2026: 4 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the centminmod/my-claude-code-setup repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about centminmod/my-claude-code-setup

The biggest 5 of 56 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 56

Talked about on Bluesky, GitHub and Hacker News (56 times).

On Bluesky · 50

45 more on Bluesky

On GitHub · 5

The file

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

7 rules. About 0 are common, 2 are distinctive, and 5 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.

  • 5

    Very specific

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

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

    Use rg not grep, fd not find.

    line 27
  2. Distinctive:

    All optional — check existence first.

    line 60
  3. Distinctive:

    After significant work: update CLAUDE-*.md files, then sync key content to auto memory topic files.

    line 68
  4. Very specific:

    If CLAUDE.md is ever reset or wiped, auto memory retains project knowledge — check /memory to recover context.

    line 70
  5. Very specific:

    When asked to backup, copy CLAUDE.md, CLAUDE-*.md files, and .claude/ settings to the specified backup directory.

    line 74
  6. Very specific:

    Use /memory to inspect loaded files.

    line 94
  7. Very specific:

    When working on Claude Code features (hooks, skills, subagents, MCP servers), use the claude-code-guide subagent (natively built into …

    line 98

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

<!-- Project-specific context only. Behavioral rules: .claude/rules/core-rules.md --><!-- Run /init to auto-populate (or CLAUDE_CODE_NEW_INIT=1 for interactive mode) --><!-- Keep under 200 lines. If removing a line wouldn't cause mistakes, cut it -->

Project Overview

  • Name: my-claude-code-setup
  • Description: Template repository providing CLAUDE.md templates, memory bank system, hooks, skills, subagents, and MCP server configurations for Claude Code projects
  • This is a template repo — no application code. Users fork/copy files to their own projects.

CLAUDE.md Templates

This repo provides 3 CLAUDE.md templates following official Anthropic best practices:

TemplateLinesPhilosophy
CLAUDE-template-1.md~101Compact self-contained + memory resilience
CLAUDE-template-2.md~153Memory bank headline + dual memory
CLAUDE-template-3.md~105Progressive disclosure native (this file's format)

For migrating an existing CLAUDE.md to a new template, see CLAUDE-migrate-to-new-template.md.

Tools

Use rg not grep, fd not find. tree is not installed.

  • Ignore GEMINI.md and GEMINI-*.md files

Rules Dependency

This template requires .claude/rules/core-rules.md for behavioral rules. If .claude/rules/ is missing or empty, alert the user and direct them to https://github.com/centminmod/my-claude-code-setup to obtain the companion rules files.


Memory System

This project uses a dual-memory architecture:

Primary (git-shared): CLAUDE-*.md files in repo root — read on demand:

FileRead When
CLAUDE-activeContext.mdSession start (state and goals)
CLAUDE-patterns.mdBefore implementing (code patterns)
CLAUDE-decisions.mdBefore design choices (ADRs)
CLAUDE-troubleshooting.mdWhen debugging (known fixes)
CLAUDE-config-variables.mdWhen touching config

Shadow (machine-local): Native auto memory mirrors key content for resilience:

Auto Memory FileMirrorsPurpose
memory/MEMORY.mdIndex of all memory bank filesAlways loaded (200 lines)
memory/patterns.mdCLAUDE-patterns.mdSurvives CLAUDE.md reset
memory/architecture.mdCLAUDE-decisions.mdSurvives CLAUDE.md reset
memory/build.mdBuild, Test & Verify sectionSurvives CLAUDE.md reset

All optional — check existence first. Exclude CLAUDE.md and CLAUDE-*.md from commits.

<!-- BACKUP TIP: Create a private git repo for memory bank backups: rsync -av ./CLAUDE.md ./CLAUDE-*.md ./.claude/ ~/my-project-memory-backup/ This keeps CLAUDE-*.md version-controlled privately while excluded from the public repo. -->

Sync Workflow

After significant work: update CLAUDE-*.md files, then sync key content to auto memory topic files.

If CLAUDE.md is ever reset or wiped, auto memory retains project knowledge — check /memory to recover context.

Backups

When asked to backup, copy CLAUDE.md, CLAUDE-*.md files, and .claude/ settings to the specified backup directory.


Context Layers

LayerLocationLoadsSharedResilient
Project contextThis fileAlwaysGitNo
Core rules.claude/rules/core-rules.mdAlwaysGitYes
Auto memorymemory/MEMORY.mdAlways (200 lines)NoYes
Auto memory topicsmemory/*.mdOn demandNoYes
Path-scoped rules.claude/rules/*.mdMatching filesGitYes
User rules~/.claude/rules/*.mdAlwaysNoYes
Skills.claude/skills/On demandGitYes
Personal overridesCLAUDE.local.mdAlwaysNoLocal
Memory bankCLAUDE-*.mdOn demandGitNo
<!-- To share rules across projects: ln -s ~/shared-rules .claude/rules/shared -->

Use /memory to inspect loaded files. Root CLAUDE.md survives /compact.

Claude Code Official Documentation

When working on Claude Code features (hooks, skills, subagents, MCP servers), use the claude-code-guide subagent (natively built into Claude Code) for questions about Claude Code CLI features, hooks, slash commands, MCP servers, settings, IDE integrations, Claude Agent SDK, and Claude API usage.

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.