agentleFS
peterkrueckpeterkrueck/Claude-Code-Development-Kit/templates/CLAUDE.md

Claude-Code-Development-Kit / templates

CLAUDE.md1.4k starsChanged 6 months agoMITView on GitHub

- Who I am. Solo founder / small-team lead with conceptual technical literacy — I understand architecture and trade-offs but don't read or write production code line-by-line. I treat AI agents as specialists; my role is decision-maker, director, and reviewer. - Who writes the code. AI agents (Claude + sub-agents). Build effort ≈ zero. Timelines are gated by review, QA, and decision overhead, not typing speed. - Evaluate by maintenance burden, not build effort. "Too much code for a small…

Trending

Quiet since April.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 1 mentionMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the peterkrueck/Claude-Code-Development-Kit repository that our weekly crawl found: only 3 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    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. Distinctive:

    Stop-and-Replan Rule: If an approach fails or you discover unexpected complexity, stop and reassess rather than pushing through.

    line 12
  2. Distinctive:

    Context7 first: When working with external libraries, check Context7 for current documentation before relying on training data.

    line 14
  3. Distinctive:

    Boundaries: always ask before git commits, breaking changes, deleting files, and architecture decisions worth ≥1 day of rework to undo.

    line 44
  4. Very specific:

    Run /update-docs after significant changes to keep docs in sync with the code.

    line 82
  5. Distinctive:

    Don't document standard language conventions — Claude already knows those.

    line 87
  6. Distinctive:

    All time logic in PostgreSQL, never client-side -->

    line 94
  7. Distinctive:

    No user accounts — anonymous identity via device UUID

    line 125
  8. Distinctive:

    Never log personal data or audio content

    line 126
  9. Distinctive:

    Never reveal system internals (stack traces, DB schemas) in error messages

    line 127

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

[Project Name]

<!-- Customize this file for your project. This is the primary instruction set that Claude Code reads at the start of every session. Keep it focused on rules, decisions, and constraints — not documentation that belongs in docs/ai-context/. -->

1. Critical Rules

  • Use Sub-Agents for tasks spanning 3+ files or requiring parallel investigation.
  • Always ask before: git commits, breaking changes, major architecture decisions, deleting files.
  • Stop-and-Replan Rule: If an approach fails or you discover unexpected complexity, stop and reassess rather than pushing through.
  • Use available skills proactively: /review-work for code review, /update-docs after significant changes, /deploy for deployments.
  • Context7 first: When working with external libraries, check Context7 for current documentation before relying on training data.

2. Operator Model

<!-- Describe who you are and how development happens so Claude calibrates its advice. Optional, but valuable for solo / AI-agent-driven workflows where conventional wisdom about effort and complexity doesn't apply. Fill in (or delete) the example below. Example: - **Who I am.** Solo founder / small-team lead with conceptual technical literacy — I understand architecture and trade-offs but don't read or write production code line-by-line. I treat AI agents as specialists; my role is decision-maker, director, and reviewer. - **Who writes the code.** AI agents (Claude + sub-agents). Build effort ≈ zero. Timelines are gated by review, QA, and decision overhead, not typing speed. - **Evaluate by maintenance burden, not build effort.** "Too much code for a small team" / "over-engineered for one person" is almost never a valid critique. Pick libraries and architectures on technical merit. The right questions: hard to debug at 2am? hard to observe in production? hard to swap out if the vendor fails? can a future agent reason about it from the code alone? - **Calibrate to a decision-maker, not a junior engineer.** Lead with the trade-off and the why; spell out failure modes — don't assume I'll spot a subtle bug by reading the diff. - **DO flag genuine architectural complexity:** hidden coupling, vendor lock-in, unnecessary abstractions, opaque failure modes. That's the complexity that actually costs me. - **Boundaries:** always ask before git commits, breaking changes, deleting files, and architecture decisions worth ≥1 day of rework to undo. -->

3. Key Architecture Decisions

<!-- Document settled decisions here so Claude doesn't relitigate them. Include brief rationale for each. --><!-- Tip: Also list decisions that are SETTLED so Claude doesn't relitigate them. Example: "REST over GraphQL — decided, don't suggest changing." --><!-- Example: - **Authentication**: JWT tokens with refresh rotation. Why: stateless, scales horizontally. - **Database**: PostgreSQL with RLS on all tables. Why: row-level security eliminates auth middleware bugs. - **State management**: Server-side only. Why: single source of truth, no sync bugs. -->

4. Tool Usage Rules

<!-- Map tasks to the correct tools for your project. -->
TaskUse This
Library docs lookupContext7 plugin (check FIRST)
Code review/review-work skill
Second opinionAsk for a "second opinion" (Codex by default; say "ask Gemini" for Gemini, "ask both" to run both)
Documentation update/update-docs skill
Deployment/deploy skill

5. Technical Documentation

Docs in docs/ai-context/ are written for AI agents, not humans. Keep them dense — when in doubt, delete.

  • Document the is-state only. Describe how the system works now, in present tense. No changelogs, no "we used to…", no migration narratives, no future plans (those live in progress.md).
  • Hoist cross-cutting invariants up. A rule that applies across the codebase belongs in CLAUDE.md or spec.md, not buried in one feature's notes. State it once, in the highest-level doc it applies to.
  • Fold shipped features into spec.md. A feature doc lives in docs/ while the work is in flight, then folds into spec.md (present tense) when it ships — retire the feature doc afterward. Architecture lives in spec.md, never in chat memory.

Run /update-docs after significant changes to keep docs in sync with the code.

6. Coding Standards

<!-- Keep only standards that are non-obvious or project-specific. Don't document standard language conventions — Claude already knows those. --><!-- Example: - TypeScript files: kebab-case (e.g., `rate-limiter.ts`) - Swift files: PascalCase (e.g., `SettingsView.swift`) - Error responses: `{ success: false, error_code: 'CODE', message: '...' }` - All time logic in PostgreSQL, never client-side -->

7. Testing

<!-- Document your test commands and when to run them. --><!-- Example: ```bash npm test # All tests npm run test:unit # Unit tests only (~1s) npm run test:e2e # E2E tests (~20s, hits network) ``` **When to run which tests:** | What changed | Run | |---|---| | Shared utilities | Unit tests | | API endpoints | E2E tests | | Database schema | Integration tests | | Before deployment | All suites | -->

8. Privacy & Security

<!-- Document non-negotiable security rules for your project. --><!-- Example: - Audio/media NEVER stored — processed in memory, deleted immediately - No user accounts — anonymous identity via device UUID - Never log personal data or audio content - Never reveal system internals (stack traces, DB schemas) in error messages - Input validation on all external inputs - RLS enabled on all database tables -->

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.