agentleFS
ashp15205ashp15205/vibe-coding-essentials/templates/CLAUDE.md

vibe-coding-essentials / templates

CLAUDE.md11 starsChanged 5 months agoMITView on GitHub

Derived from AGENTS.md. Optimized for Claude Code's memory and instruction format. Update AGENTS.md first, then reflect changes here. Current Goal: [what we are trying to ship this session] Latest Decision: [the most recent architectural or technical decision] Next Step: [exactly what needs to be done next] Default Mode is Builder. To override, the developer will start their prompt with [ECONOMY], [MAINTAINER], or [ARCHITECT]. Mode: Builder (Default) — ship fast, controlled scope, one feature at a time. Mode: Maintainer [MAINTAINER] —…

  • Reads credentials

The file

Show its rules and text

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    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:

    Before making changes, state:

    line 45
  2. Distinctive:

    If the task is ambiguous: ask one clarifying question.

    line 50
  3. Distinctive:

    Prefer targeted edits over full-file rewrites

    line 55
  4. Distinctive:

    Keep the blast radius as small as possible

    line 57
  5. Distinctive:

    Search for existing utilities before creating new ones

    line 62
  6. Distinctive:

    Read narrow: function first, file second, module third

    line 63
  7. Distinctive:

    Read only what is needed for the task

    line 67
  8. Distinctive:

    Search before creating — the utility may already exist

    line 102
  9. Distinctive:

    No new abstractions until there are 2+ concrete uses

    line 103
  10. Distinctive:

    Never use deprecated APIs for the versions listed above

    line 113
  11. Distinctive:

    Never invent method names, config keys, or environment variable names

    line 114
  12. Very specific:

    Check package.json / requirements.txt / pubspec.yaml before assuming a dependency exists

    line 115
  13. Distinctive:

    If unsure about an API: say so.

    line 116
  14. Distinctive:

    When context is unclear: stop and ask for a Context Reset, don't guess

    line 148
  15. Distinctive:

    No unasked-for changes exist in the diff

    line 165
  16. Distinctive:

    No new files beyond what was discussed

    line 166
  17. Distinctive:

    When updating rules, update this file first.

    line 188

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

CLAUDE.md — Vibe Coding Essentials for Claude Code

Derived from AGENTS.md. Optimized for Claude Code's memory and instruction format. Update AGENTS.md first, then reflect changes here.


MVP Context (Update Daily)

Edit this block at the end of each session.

Current Goal: [what we are trying to ship this session] Latest Decision: [the most recent architectural or technical decision] Next Step: [exactly what needs to be done next]


Active Mode

Default Mode is Builder. To override, the developer will start their prompt with [ECONOMY], [MAINTAINER], or [ARCHITECT].

Mode: Builder (Default) — ship fast, controlled scope, one feature at a time.
Mode: Maintainer [MAINTAINER] — stability first, small diffs, zero surprises in production code.
Mode: Economy [ECONOMY] — token-aware, minimal context, maximum precision. Routine tasks only.
Mode: Architect [ARCHITECT] — system thinking, decisions only, no code until architecture is decided.


Core Rules

1. The Task Is The Task

Do not:

  • Fix things you were not asked to fix
  • Rename things for style preference
  • Refactor code that is not broken
  • Suggest "while I'm in here" improvements (mention them at the end instead)

Do:

  • Complete exactly what was asked
  • Note unrelated issues without fixing them

2. Scope Before Action

Before making changes, state:

  • Which files will be modified
  • What will change in each file
  • What will not be touched

If the task is ambiguous: ask one clarifying question. Then proceed.

3. Small Diffs, Big Trust

  • Change the minimum necessary
  • Prefer targeted edits over full-file rewrites
  • One logical change per prompt
  • Keep the blast radius as small as possible

4. Read Before Writing

  • Understand existing code before generating new code
  • Search for existing utilities before creating new ones
  • Read narrow: function first, file second, module third

5. Token Discipline

  • Read only what is needed for the task
  • Paste excerpts, not full files
  • Request minimal output: "changed lines only" unless explanation is needed
  • Compress sessions at natural breaks

Confirmation Gates

Stop and ask before:

GateTrigger
ArchitectureNew layer, service, or structural pattern
DataSchema change, migration, or data transformation
DependenciesAdding, removing, or upgrading any package
Large ScopeTouching more than 5 files in one task
SecurityAuth, permissions, or config changes
DeletionRemoving any file or function

Confirmation format:

Before proceeding:
Action: [what will happen]
Files: [what will be affected]
Reversible: [yes / no / partially]
Risk: [low / medium / high]
Proceed?

File Discipline

  • Maximum 3 new files per task without confirmation
  • Search before creating — the utility may already exist
  • No new abstractions until there are 2+ concrete uses
  • Flat structure over nested structure when in doubt

Anti-Hallucination

Stack: [list your technologies and versions, e.g. "Next.js 14, TypeScript 5, PostgreSQL 15"]

Rules:

  • Never use deprecated APIs for the versions listed above
  • Never invent method names, config keys, or environment variable names
  • Check package.json / requirements.txt / pubspec.yaml before assuming a dependency exists
  • If unsure about an API: say so. Do not guess.

Framework-specific rules: see anti-hallucination/[framework]/rules.md


Project Context

Purpose: [one sentence — what this project does]

Key architecture decisions:

  • [decision and reason]
  • [decision and reason]

Patterns to follow:

  • [pattern — where to find an example]

Off-limits:

  • [file or folder] — [reason, e.g. "managed by infrastructure team"]
  • .env — never read or modify secrets

Conventions:

  • File naming: [e.g. kebab-case]
  • Component pattern: [e.g. co-locate styles and tests]
  • Error handling: [e.g. always use the AppError class]

Session Discipline

  • Provide a session checkpoint summary every 5 significant changes
  • At the end of the session, produce a summary: what was done, what remains, next action
  • When context is unclear: stop and ask for a Context Reset, don't guess

Context Reset format:

Context Reset needed. Please provide:
- Current task
- Key decisions made
- Files changed so far
- Next step

Completion Definition

A task is done when:

  1. The original request is fulfilled (exactly, not approximately)
  2. No unasked-for changes exist in the diff
  3. No new files beyond what was discussed
  4. Existing tests pass
  5. The change is scoped to what was stated

Done does not mean perfect, fully tested for all edge cases, or extended with related improvements.


Derived Formats

This file is the canonical source. Derived formats are in templates/:

FileTool
templates/ANTIGRAVITY.mdAntigravity IDE
templates/CLAUDE.mdClaude Code
templates/GEMINI.mdGemini CLI
templates/.cursorrulesCursor
templates/.windsurfrulesWindsurf
templates/copilot-instructions.mdGitHub Copilot
templates/KIRO.mdKiro

When updating rules, update this file first. Then propagate.


Vibe Coding Essentials Runtime — part of vibe-coding-essentials

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.