agentleFS
maxg-agencymaxg-agency/claude-code-setup/claude/CLAUDE.md

claude-code-setup / claude

CLAUDE.md2 starsChanged 28 days agoMITView on GitHub

Do directly, without the skill: - A typo, a word, a grammar fix. - Pure cosmetics: a color, a margin, one CSS variable, a label. - Questions, explanations, reading code. Run /feature-dev for: - New functionality of any size. - Refactoring that changes logic. - New endpoints, integrations, external APIs. - Changes to a user flow. - Backend logic, migrations, data schema. When unsure, run the skill. It is cheap for small tasks: phase 0 sizes the task, and a…

  • Reads credentials

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

    No debug mode on a server (debug=False, NODE_ENV=production).

    line 5
  2. Distinctive:

    Do not run applications as root.

    line 6
  3. Distinctive:

    Check for stray open ports (admin panels, dashboards, metrics).

    line 7
  4. Distinctive:

    Do not disable security checks for convenience (verify=False, allowAll and the like are for local development only).

    line 8
  5. Distinctive:

    When unsure, run the skill.

    line 26
  6. Distinctive:

    Stop line, then stop: "I have reached the point where we need to switch to <model>.

    line 32
  7. Distinctive:

    When the user corrects you or confirms a non-obvious approach, write one memory file (the rule, why, how to apply) and one line in …

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 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

Deployment safety

  • Secrets (API keys, tokens, passwords) live only in .env or environment variables, never in code.
  • .env is in .gitignore, otherwise secrets leak with the first commit.
  • Databases are never reachable from the internet: localhost or VPN only.
  • No debug mode on a server (debug=False, NODE_ENV=production).
  • Do not run applications as root; create a dedicated user.
  • Check for stray open ports (admin panels, dashboards, metrics).
  • Do not disable security checks for convenience (verify=False, allowAll and the like are for local development only).
  • SSH to servers by key only, never by password.

Feature development

Anything larger than a micro edit goes through the /feature-dev skill.

Do directly, without the skill:

  • A typo, a word, a grammar fix.
  • Pure cosmetics: a color, a margin, one CSS variable, a label.
  • Questions, explanations, reading code.

Run /feature-dev for:

  • New functionality of any size.
  • Refactoring that changes logic.
  • New endpoints, integrations, external APIs.
  • Changes to a user flow.
  • Backend logic, migrations, data schema.

When unsure, run the skill. It is cheap for small tasks: phase 0 sizes the task, and a small one gets no helper agents, just a short plan and the change.

Checkpoints and models

Model names: the Planning model: and Building model: lines of the models block in this file. <set me> there means: ask the user once and write the name in. The same name in both lines means no model stops; checkpoints still apply.

  • Plan (understanding code, choosing an approach, a plan that failed in practice) on the planning model; build (a ready plan, fixes after review, routine edits) on the building model. Your own model is named in your system prompt. Wrong model: do nothing else, write the state, print the stop line. Exceptions: scale S, or the user said "do it on this model".
  • A checkpoint happens when the plan is ready, a model switch is needed, the user says "continue tomorrow", context is warned about or compacted, or a unit of work is finished. In order: (1) write the unit's self-contained state file (PLAN.md of a feature, STATE.md otherwise) with a Model log entry; (2) agent reports as delivered into blueprints/ next to it; (3) the user's answers verbatim into the state file, decisions into DECISIONS.md; (4) roll the status up to the project's MASTER-PLAN.md, creating it and DECISIONS.md from ~/.claude/skills/feature-dev/examples/ if missing; (5) propose a commit message, commit only if the user asks; (6) the stop line if a switch is needed.
  • Stop line, then stop: "I have reached the point where we need to switch to <model>. State saved: <path>. To continue: /model <model>, then "continue"." For features the exact three-line form is in the skill. Never switch models or chats yourself.
  • Last line of every checkpoint message: the latest "Context: Nk / …" line from the hook, or "Context: unknown" if there is none. The same number goes into the Model log entry.
  • When the user corrects you or confirms a non-obvious approach, write one memory file (the rule, why, how to apply) and one line in MEMORY.md.

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.