agentleFS
diegopachecodiegopacheco/agent-skills/claude-agents-md/CLAUDE.md

agent-skills / claude-agents-md

CLAUDE.md0 starsChanged 3 months agoUnlicenseView on GitHub

The file

Show its rules and text

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

45 rules. About 0 are common, 41 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈41

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

    Never use comments, never comment anything.

    line 2
  2. Distinctive:

    Never use the words: "demo", "demonstration" or "example", never ever.

    line 3
  3. Distinctive:

    Make sure the code is as simple as possible.

    line 4
  4. Distinctive:

    Make sure the code is well written and make sense.

    line 5
  5. Distinctive:

    Do not do things I did not ask for in explicit prompts.

    line 6
  6. Distinctive:

    Use the least number of libraries as possible, if possible no libraries.

    line 7
  7. Distinctive:

    Never add Co-Authored-By lines to commits

    line 10
  8. Distinctive:

    Always explain the task

    line 13
  9. Distinctive:

    Always put the whole prompt on the PR description

    line 14
  10. Distinctive:

    Always run the tests and get the test output on the PR.

    line 15
  11. Distinctive:

    Never use comments, never ever.

    line 18
  12. Distinctive:

    Never do sleep bigger than 1

    line 19
  13. Distinctive:

    When need to wait for a POD or a docker container in docker or k8s make sure you will use a loop and check the condition and do max sleep 1.

    line 20
  14. Distinctive:

    Dont use icons and enomjis on bash script.

    line 21
  15. Distinctive:

    Prefer name the file as Containerfile

    line 24
  16. Distinctive:

    Never use Docker, always use podman and podman-compose

    line 25
  17. Distinctive:

    Make sure you are using the latest versions

    line 26
  18. Distinctive:

    Do not write comments, never comment.

    line 27
  19. Distinctive:

    Make sure you dont do ENTER between commands make it compact

    line 28
  20. Distinctive:

    Never use docker-compose always use podman-compose

    line 31
  21. Very specific:

    always have a start.sh where you start docker-compose.

    line 34
  22. Very specific:

    always have a stop.sh to stop docker-compose.

    line 35
  23. Very specific:

    always have a test.sh where you show the feature is working.

    line 36
  24. Distinctive:

    dont use timeouts more than 1 min

    line 37
  25. Distinctive:

    Never do ACII ART for architecture diagrams

    line 40
  26. Distinctive:

    Always do Excalidraw-style diagram.

    line 41
  27. Distinctive:

    When there is UI always use Playwright MCP to take print screens, add on printscreens/ folder on the project and always load, refer, render …

    line 42
  28. Distinctive:

    IF there is a logo, always display/render in the begining of the README

    line 43
  29. Distinctive:

    Always make sure it's just one version and one version only of the app installed

    line 53
  30. Distinctive:

    Make sure there are install/uninstall scripts

    line 54
  31. Distinctive:

    When making changes make sure remove, rebuild, re-install the app

    line 55
  32. Distinctive:

    Always light themed (never DARK - unless user asked for)

    line 58
  33. Very specific:

    IF does not have code, should be self contained (CSS/JS) inside single index.html (Not the case for apps with backend code)

    line 59
  34. Distinctive:

    Stop when confused. Name what's unclear.

    line 69
  35. Distinctive:

    No features beyond what was asked.

    line 73
  36. Distinctive:

    Test: would a senior engineer say this is overcomplicated?

    line 74
  37. Distinctive:

    Don't "improve" adjacent code, comments, or formatting.

    line 78
  38. Distinctive:

    Don't refactor what isn't broken.

    line 79
  39. Distinctive:

    Don't follow steps. Define success and iterate.

    line 83
  40. Distinctive:

    If two patterns contradict, pick one (more recent / more tested).

    line 87
  41. Distinctive:

    Don't blend conflicting patterns.

    line 89
  42. Distinctive:

    Before adding code, read exports, immediate callers, shared utilities.

    line 92
  43. Distinctive:

    Don't continue from a state you can't describe back.

    line 101
  44. Distinctive:

    If you lose track, stop and restate.

    line 102
  45. Distinctive:

    Default to surfacing uncertainty, not hiding it.

    line 107

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

General Guidelines

  • Never use comments, never comment anything.
  • Never use the words: "demo", "demonstration" or "example", never ever.
  • Make sure the code is as simple as possible.
  • Make sure the code is well written and make sense.
  • Do not do things I did not ask for in explicit prompts.
  • Use the least number of libraries as possible, if possible no libraries.

Git Commits

  • Never add Co-Authored-By lines to commits

Github Pull Request(PR) Guidelines

  • Always explain the task
  • Always put the whole prompt on the PR description
  • Always run the tests and get the test output on the PR.

When Writing BASH scripts

  • Never use comments, never ever.
  • Never do sleep bigger than 1
  • When need to wait for a POD or a docker container in docker or k8s make sure you will use a loop and check the condition and do max sleep 1.
  • Dont use icons and enomjis on bash script.

Containerfile

  • Prefer name the file as Containerfile
  • Never use Docker, always use podman and podman-compose
  • Make sure you are using the latest versions
  • Do not write comments, never comment.
  • Make sure you dont do ENTER between commands make it compact

podman-compose

  • Never use docker-compose always use podman-compose
  • This section only apply if you have podman-compose requirements otherwise ignore it.
  • docker-compose it's alias to podman, keep that in mind.
  • always have a start.sh where you start docker-compose.
  • always have a stop.sh to stop docker-compose.
  • always have a test.sh where you show the feature is working.
  • dont use timeouts more than 1 min

README.md

  • Never do ACII ART for architecture diagrams
  • Always do Excalidraw-style diagram. Rendered a hand-drawn flow diagram (wobble filter + "Caveat" handwriting font, pastel boxes, solid capture path.
  • When there is UI always use Playwright MCP to take print screens, add on printscreens/ folder on the project and always load, refer, render the images and explain on README.md
  • IF there is a logo, always display/render in the begining of the README
  • README of solutions must have:
    • Architecture
    • Stack (list list with 1 line explaining why)
    • Contracts/APIs
    • key datastructures and software design decision if any
    • How to run the app/tests
    • How it Works? (3-15 lines max)

Electron/Swift MacOS Apps

  • Always make sure it's just one version and one version only of the app installed
  • Make sure there are install/uninstall scripts
  • When making changes make sure remove, rebuild, re-install the app

Websites Design (index.html)

  • Always light themed (never DARK - unless user asked for)
  • IF does not have code, should be self contained (CSS/JS) inside single index.html (Not the case for apps with backend code)

CLAUDE.md — 12-rule template

These rules apply to every task in this project unless explicitly overridden. Bias: caution over speed on non-trivial work. Use judgment on trivial tasks.

Rule 1 — Think Before Coding

State assumptions explicitly. If uncertain, ask rather than guess. Present multiple interpretations when ambiguity exists. Push back when a simpler approach exists. Stop when confused. Name what's unclear.

Rule 2 — Simplicity First

Minimum code that solves the problem. Nothing speculative. No features beyond what was asked. No abstractions for single-use code. Test: would a senior engineer say this is overcomplicated? If yes, simplify.

Rule 3 — Surgical Changes

Touch only what you must. Clean up only your own mess. Don't "improve" adjacent code, comments, or formatting. Don't refactor what isn't broken. Match existing style.

Rule 4 — Goal-Driven Execution

Define success criteria. Loop until verified. Don't follow steps. Define success and iterate. Strong success criteria let you loop independently.

Rule 7 — Surface conflicts, don't average them

If two patterns contradict, pick one (more recent / more tested). Explain why. Flag the other for cleanup. Don't blend conflicting patterns.

Rule 8 — Read before you write

Before adding code, read exports, immediate callers, shared utilities. "Looks orthogonal" is dangerous. If unsure why code is structured a way, ask.

Rule 9 — Tests verify intent, not just behavior

Tests must encode WHY behavior matters, not just WHAT it does. A test that can't fail when business logic changes is wrong.

Rule 10 — Checkpoint after every significant step

Summarize what was done, what's verified, what's left. Don't continue from a state you can't describe back. If you lose track, stop and restate.

Rule 12 — Fail loud

"Completed" is wrong if anything was skipped silently. "Tests pass" is wrong if any were skipped. Default to surfacing uncertainty, not hiding it.

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.