agentleFS
SerhatKumasSerhatKumas/AI--ClaudeCodeStarter/CLAUDE.md

AI--ClaudeCodeStarter

CLAUDE.md1 starsChanged 6 months agoMITView on GitHub

This file is loaded into Claude's context at the start of every session. Keep it concise and high-signal. Put deep references in .claude/rules/ and link to them. Run <lint> and <typecheck> before declaring any task done. These are the rules of the house. Detailed guidance lives in .claude/rules/:

  • Installs packages

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

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

    Smallest change that works: No drive-by refactors unless asked.

    line 55
  2. Very specific:

    Verify before claiming done: Run tests/lint/typecheck and report real results.

    line 56
  3. Distinctive:

    Never invent APIs: Check the codebase or docs.

    line 57
  4. Distinctive:

    No secrets in code: Use env vars; never commit credentials.

    line 59
  5. Distinctive:

    Don't add dependencies without checking what's already available.

    line 63
  6. Distinctive:

    Don't disable lint rules or tests to make something pass.

    line 64
  7. Distinctive:

    Don't commit, push, or open PRs unless explicitly asked.

    line 65
  8. Distinctive:

    Don't write comments that restate the code.

    line 66

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

<PROJECT_NAME>

This file is loaded into Claude's context at the start of every session. Keep it concise and high-signal. Put deep references in .claude/rules/ and link to them.

What this project is

<One or two sentences: what the product does and who it's for.>

Tech stack

  • Language(s): <e.g. TypeScript, Python 3.12>
  • Framework(s): <e.g. Next.js 15, FastAPI>
  • Database: <e.g. PostgreSQL via Prisma>
  • Package manager: <e.g. pnpm / uv / cargo>
  • Testing: <e.g. Vitest, Playwright, pytest>

Commands

<install>      # e.g. pnpm install
<dev>          # e.g. pnpm dev
<test>         # e.g. pnpm test
<lint>         # e.g. pnpm lint
<typecheck>    # e.g. pnpm typecheck
<build>        # e.g. pnpm build

Run <lint> and <typecheck> before declaring any task done.

Project layout

src/          # <what lives here>
tests/        # <test convention>
...           # <fill in the directories that matter>

Conventions Claude must follow

These are the rules of the house. Detailed guidance lives in .claude/rules/:

  • Core principles — .claude/rules/00-core-principles.md
  • Code style — .claude/rules/01-code-style.md
  • Git & commits — .claude/rules/02-git-workflow.md
  • Testing — .claude/rules/03-testing.md
  • Security — .claude/rules/04-security.md
  • Documentation — .claude/rules/05-documentation.md
  • Architecture — .claude/rules/06-architecture.md
  • Dependencies — .claude/rules/07-dependencies.md

Golden rules (the short version)

  1. Match the surrounding code. Mirror existing patterns, naming, and structure.
  2. Smallest change that works. No drive-by refactors unless asked.
  3. Verify before claiming done. Run tests/lint/typecheck and report real results.
  4. Never invent APIs. Check the codebase or docs; don't guess function signatures.
  5. Ask when genuinely blocked on a decision only the user can make — otherwise pick a sane default and note it.
  6. No secrets in code. Use env vars; never commit credentials.

Things to avoid

  • Don't add dependencies without checking what's already available.
  • Don't disable lint rules or tests to make something pass.
  • Don't commit, push, or open PRs unless explicitly asked.
  • Don't write comments that restate the code; explain why, not what.

Domain glossary (optional)

TermMeaning
<Term><Definition the codebase assumes>

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.