agentleFS
agentmatikagentmatik/template-intelligence/CLAUDE.md

template-intelligence

CLAUDE.md0 starsChanged 2 months agoMITView on GitHub

This file adds Claude-Code-specific guidance on top of the universal rules in AGENTS.md. Read AGENTS.md first. Do not add to CLAUDE.md: Personal per-machine overrides (sandbox URLs, local paths, preferred thinking mode) go in CLAUDE.local.md. That file is gitignored. @CLAUDE.local.md

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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. Very specific:

    If the task is recent-work-related: the most recent file in weekly/

    line 12
  2. Distinctive:

    If the task touches a specific domain: that root file or folder

    line 13
  3. Distinctive:

    Only then use MCP for fresh operational state

    line 14
  4. Distinctive:

    Use plan mode for large restructures or cross-domain changes.

    line 30
  5. Distinctive:

    Don't assume anything from previous chat survives unless written to a file or persisted by a configured tool.

    line 32
  6. Distinctive:

    Do not add to CLAUDE.md:

    line 42

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

@AGENTS.md

This file adds Claude-Code-specific guidance on top of the universal rules in AGENTS.md. Read AGENTS.md first.

Read order at session start

  1. AGENTS.md (loaded via the import above)
  2. INDEX.md for a curated map of entry points
  3. FACTSHEET.md - the dense quick-reference for any specific company fact or official link (store/socials/registration/funding/founders). Reach for it first when asked to fill an application/form/deck or to produce a specific fact or URL; don't hunt across files.
  4. If the task is recent-work-related: the most recent file in weekly/
  5. If the task touches a specific domain: that root file or folder
  6. Only then use MCP for fresh operational state

Claude-Code features - when to reach for each

FeatureUse for
CLAUDE.mdAlways-on repo rules. Short. Imports AGENTS.md.
SkillsReusable workflows. On-demand, not always loaded.
Slash commandsUser-triggered shortcuts. /weekly-brief, /customer-brief
SubagentsIsolated research or triage. Returns a compact summary.
HooksAutomation around events - lint, validate, import, notify.
Output stylesTone/format changes. Not for repo rules or knowledge.
MCPLive reads and narrow writes. Not long-term memory.

Session management

  • Use plan mode for large restructures or cross-domain changes.
  • Compact aggressively once a long task has stable plan and stable notes.
  • Don't assume anything from previous chat survives unless written to a file or persisted by a configured tool.

Thinking levels

  • think - default; routine queries, transcript summaries.
  • think hard - competitive analysis, strategy questions.
  • ultrathink - fundraising memos, board prep, architectural decisions.

What does NOT belong here

Do not add to CLAUDE.md:

  • Long procedures → put in skills/<name>/SKILL.md
  • Service-specific playbooks → put in ops.md or a dedicated runbook
  • Vendor docs or large reference material → not in this repo at all; fetch via MCP
  • Company knowledge → put in the appropriate knowledge file

Local overrides

Personal per-machine overrides (sandbox URLs, local paths, preferred thinking mode) go in CLAUDE.local.md. That file is gitignored.

@CLAUDE.local.md

Copy style (house rule, example)

  • In all human-facing copy (guides, posts, emails, client deliverables, docs) use a plain hyphen -. Never use em-dashes or en-dashes; replace them with - or rephrase the sentence. Keep or change this rule when you instantiate the template.

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.