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
In this repository3 other files it gives its agents.
- fix-bugSkill
- implement-featureSkill
- refactor-safelySkill
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
- Distinctive: line 55
Smallest change that works: No drive-by refactors unless asked.
- Very specific: line 56
Verify before claiming done: Run tests/lint/typecheck and report real results.
- Distinctive: line 57
Never invent APIs: Check the codebase or docs.
- Distinctive: line 59
No secrets in code: Use env vars; never commit credentials.
- Distinctive: line 63
Don't add dependencies without checking what's already available.
- Distinctive: line 64
Don't disable lint rules or tests to make something pass.
- Distinctive: line 65
Don't commit, push, or open PRs unless explicitly asked.
- Distinctive: line 66
Don't write comments that restate the code.
≈ “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.
Files
<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 buildRun
<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)
- Match the surrounding code. Mirror existing patterns, naming, and structure.
- Smallest change that works. No drive-by refactors unless asked.
- Verify before claiming done. Run tests/lint/typecheck and report real results.
- Never invent APIs. Check the codebase or docs; don't guess function signatures.
- Ask when genuinely blocked on a decision only the user can make — otherwise pick a sane default and note it.
- 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)
| Term | Meaning |
<Term> | <Definition the codebase assumes> |
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
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.

