agentleFS
SharrmavishalSharrmavishal/operating-kit/CLAUDE.md

operating-kit

CLAUDE.md2 starsChanged 5 months agoMITView on GitHub

Read before every task. Operating method (how I work + how I think) is in docs/claude/operating-principles.md. That file is stable across projects; this file holds this project's specifics and grows over time. Live state: {{prod URLs / environments / current milestone}}. - Permission discipline. Read-only/diagnostic runs proceed freely. Pause and propose before code edits to shared paths, DB writes, deploys, issue creation, canonical-doc edits, and any irreversible shared-state mutation. Pre-authorized sequences ("ship it", an explicit ordered plan) proceed. - Production-mutation…

  • Reads credentials

The file

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

10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read before every task. Operating method (how I work + how I think) is in docs/claude/operating-principles.md.

    line 3
  2. Distinctive:

    Permission discipline: Read-only/diagnostic runs proceed freely.

    line 28
  3. Distinctive:

    Production-mutation pre-flight (hard gate): Before any irreversible shared-state write, answer in the response: Backup / Ownership / …

    line 32
  4. Very specific:

    Code-change discipline: Before any non-trivial edit, follow docs/claude/vigilance-protocol.md (re-read the whole function, treat bug …

    line 41
  5. Very specific:

    No hardcoded secrets; maintain .env.example.

    line 56
  6. Distinctive:

    Update CLAUDE.md + CHANGELOG + memory on every significant change.

    line 59
  7. Very specific:

    Post-change gate: every data-transform/serialization/config change runs a live curl/query/grep returning a count before being called done.

    line 71
  8. Distinctive:

    Consumer audit: after an API/shape change, hit each consuming route, not just the endpoint that changed.

    line 73
  9. Distinctive:

    Calibration: verify any hardcoded threshold/enum against a live distribution before shipping, not after.

    line 75
  10. Distinctive:

    Rule: if a new idea conflicts with a decision below (or with a milestone trigger), report it as a *deferred option*.

    line 84

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

CLAUDE.md: {{PROJECT_NAME}} Project Context

Read before every task. Operating method (how I work + how I think) is in docs/claude/operating-principles.md. That file is stable across projects; this file holds this project's specifics and grows over time.


What is {{PROJECT_NAME}}

{{One-paragraph description: what it does, who it's for, current phase/state. Replace this whole block.}}

Live state: {{prod URLs / environments / current milestone}}.


Tech stack

{{Languages, frameworks, DB, infra, key services. Note where secrets live and that they are never committed. Note any non-obvious build/deploy step (e.g. "run the build locally before pushing, since CI lint blocks deploys").}}


Operating mode (pointer)

Builder + strategic-vetting partner. Full rules in docs/claude/operating-principles.md. The load-bearing gates, inline so they're never missed:

  • Permission discipline. Read-only/diagnostic runs proceed freely. Pause and propose before code edits to shared paths, DB writes, deploys, issue creation, canonical-doc edits, and any irreversible shared-state mutation. Pre-authorized sequences ("ship it", an explicit ordered plan) proceed.
  • Production-mutation pre-flight (hard gate). Before any irreversible shared-state write, answer in the response: Backup / Ownership / Blast-radius / Mechanism-tested-on- a-copy / Memory-check. (operating-principles A3.)
  • Scratch-test destructive ops on a copy and show the diff before prod. (A4.)
  • Make safety mechanical: encode gates in code, don't rely on remembering them. (A5.)
  • Milestone gate. Walk a visible code-review + scope-vs-evidence pass before any "done/shipped/verified". (A6.)
  • Verify-don't-infer. An output is not a finding until you've checked what produced it. (A7.)
  • Code-change discipline. Before any non-trivial edit, follow docs/claude/vigilance-protocol.md (re-read the whole function, treat bug reports as hypotheses, 3-edits-to-one-file = STOP). Driving a second model? Use docs/claude/multi-model-collaboration.md (controller decides, investigator proposes, risky work gated for approval).

Reusable subagents live in .claude/agents/ (code-review, deploy, session-start, session-end, prod-logs). Fill the {{placeholders}} with this project's commands and state doc before first use.


Coding standards

{{Project conventions. Examples to adapt:}}

  • Error handling norms (e.g. background jobs log-and-continue, never crash on bad data).
  • No hardcoded secrets; maintain .env.example.
  • Destructive DB ops only via the approved/safe path (name it here once one exists).
  • One logical change per commit; meaningful messages.
  • Update CLAUDE.md + CHANGELOG + memory on every significant change.
  • Honest positioning. User-facing copy never makes a comparison that implies an equivalence that isn't there (e.g. "X% cheaper than [premium competitor]" when the offering isn't equivalent). State real strengths and real prices; compare only like-for-like. A claim that feels deceptive once a user understands it is a claim to cut. {{Name the specific comparisons that are off-limits for this project, and the honest value props to lead with instead.}}

Pre-ship verification (project gates)

{{Add gates as you learn the failure modes. Each gate = a live check that returns a count with an explicit pass condition. Seed examples:}}

  • Post-change gate: every data-transform/serialization/config change runs a live curl/query/grep returning a count before being called done.
  • Consumer audit: after an API/shape change, hit each consuming route, not just the endpoint that changed.
  • Calibration: verify any hardcoded threshold/enum against a live distribution before shipping, not after.

Locked architectural decisions: do not relitigate

{{Index of decisions that are settled. Add as they're made; link to a one-pager for the bulky ones. Empty to start.}}

Rule: if a new idea conflicts with a decision below (or with a milestone trigger), report it as a deferred option; do not implement it by default. "Looks ready" is not sufficient; the documented trigger condition must be explicitly met before a settled decision is reversed.

  • (none yet)

Open work

{{Key durable threads / issues. Keep short; point to the issue tracker for the full list.}}

  • (none yet)

Quick reference

{{Common commands: build, test, run the pipeline, inspect the DB, deploy. Fill in.}}

# build / test / run
# deploy
# inspect data

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.