agentleFS
CodeWithJuberCodeWithJuber/forgekit/global/CLAUDE.md

forgekit / global

CLAUDE.md2 starsChanged 4 months agoMITView on GitHub

A template for your user-level ~/.claude/CLAUDE.md. Neither install.sh nor the plugin installs it (that would overwrite yours), so copy in the parts you want. Once there, Claude Code loads it every session. Keep it short — long files get ignored. Prune ruthlessly.

  • Reads credentials
  • Deletes or force-pushes

The file

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

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Never mark work done without a check Claude can run: tests, build exit code, linter, or a diff against expected output.

    line 9
  2. Very specific:

    Prefer rg/grep and targeted reads over reading whole files or directories.

    line 13
  3. Very specific:

    Use the verifier subagent for an independent review of non-trivial diffs.

    line 15
  4. Distinctive:

    Prefer the project's existing libraries.

    line 20
  5. Distinctive:

    No comments that restate the code.

    line 21
  6. Very specific:

    Never write secrets, tokens, or keys into code or commits.

    line 24
  7. Very specific:

    Ask before: force-push, history rewrite, rm -rf, dropping DB tables, or touching production.

    line 25
  8. Very specific:

    Use CLI tools when available: gh (GitHub), cloud CLIs, etc.

    line 32

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

Global instructions (all projects)

A template for your user-level ~/.claude/CLAUDE.md. Neither install.sh nor the plugin installs it (that would overwrite yours), so copy in the parts you want. Once there, Claude Code loads it every session. Keep it short — long files get ignored. Prune ruthlessly.

Workflow

  • Explore → plan → code → verify. For multi-file or unfamiliar changes, use plan mode first. Skip planning for one-line/obvious fixes.
  • Never mark work done without a check Claude can run: tests, build exit code, linter, or a diff against expected output. Show the evidence (command + result), don't just assert success.
  • Fix root causes, not symptoms. Don't suppress errors to make a check pass.

Context & cost (balanced)

  • Prefer rg/grep and targeted reads over reading whole files or directories.
  • For broad codebase investigation, delegate to the scout subagent so exploration doesn't fill main context.
  • Use the verifier subagent for an independent review of non-trivial diffs.
  • Between unrelated tasks, expect a /clear. Don't carry stale context forward.

Code style

  • Match the surrounding file's conventions over any personal default.
  • Prefer the project's existing libraries; don't add dependencies without reason.
  • No comments that restate the code; comment only non-obvious "why".

Safety

  • Never write secrets, tokens, or keys into code or commits. .env* and key files are protected by a hook — don't work around it.
  • Ask before: force-push, history rewrite, rm -rf, dropping DB tables, or touching production.

Memory

  • The recall skill records durable, cross-session facts to $XDG_STATE_HOME/forgekit/recall/ (default ~/.local/state/forgekit/recall/; FORGE_HOME overrides).
  • Save only what's non-obvious and lasting (env quirks, decisions, gotchas). Never save secrets or PII.

Tools

  • Use CLI tools when available: gh (GitHub), cloud CLIs, etc. — most context-efficient.
  • Learn unknown CLIs with <tool> --help before guessing flags.

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.