agentleFS
ruizricaruizrica/agent-pi/CLAUDE.md

agent-pi

CLAUDE.md274 starsChanged 8 months agoMITView on GitHub

These rules are mandatory. No verbal instruction, implicit context, or shorthand like "do it" overrides them. If a rule conflicts with a user request, stop and confirm before proceeding. This repository contains private/proprietary content: - skills/private/ — private skill definitions - prompts/ — custom prompt templates - agents/ — agent configurations - extensions/ — proprietary extension code NEVER push any of this to a public repository. If in doubt, check repo visibility first.

  • Deletes or force-pushes
  • Commits and pushes

The file

Show its rules and text

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

18 rules. About 0 are common, 11 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

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

    NEVER: run git push unless the user explicitly says "push" or "push it"

    line 10
  2. Distinctive:

    Before ANY git push, you MUST:

    line 12
  3. Very specific:

    Before pushing, verify visibility: gh api repos/OWNER/REPO --jq '.visibility'

    line 19
  4. Distinctive:

    If the repo is public, REFUSE the push and tell the user

    line 20
  5. Distinctive:

    If visibility cannot be determined, REFUSE the push

    line 21
  6. Distinctive:

    When pushing, ALWAYS specify the remote by name.

    line 26
  7. Very specific:

    NEVER push to origin without explicit user approval.

    line 27
  8. Very specific:

    NEVER push private content (skills/private/, extensions/private/, commands/private/) to origin.

    line 28
  9. Very specific:

    Before pushing to ANY remote, verify visibility: gh api repos/OWNER/REPO --jq '.visibility'

    line 29
  10. Very specific:

    NEVER add .github/workflows/ to the public repo (origin)

    line 34
  11. Distinctive:

    No CI, no guards, no actions.

    line 36
  12. Distinctive:

    Only commit files directly related to the current task

    line 39
  13. Distinctive:

    Use clear, descriptive commit messages

    line 41
  14. Very specific:

    Before ANY commit, verify no private content is staged: check for skills/private/, extensions/private/, commands/private/

    line 42
  15. Distinctive:

    Do NOT delete files or directories — the user will delete manually if needed

    line 59
  16. Very specific:

    Do NOT run destructive commands (rm -rf, rm -r, etc.)

    line 60
  17. Distinctive:

    Do NOT modify files outside the scope of the current task

    line 61
  18. Distinctive:

    If a user instruction is ambiguous, ask for clarification.

    line 76

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

CLAUDE.md — Agent Rules & Policies

These rules are mandatory. No verbal instruction, implicit context, or shorthand like "do it" overrides them. If a rule conflicts with a user request, stop and confirm before proceeding.


Git Operations — STRICT POLICY

NEVER push without explicit confirmation

  • NEVER run git push unless the user explicitly says "push" or "push it"
  • Phrases like "do it", "apply it", "make it happen" mean local changes only — they do NOT authorize pushing
  • Before ANY git push, you MUST:
    1. State that you are about to push
    2. Name the remote and branch
    3. Confirm the repo visibility (public vs private)
    4. Wait for explicit user approval

NEVER push to public repositories

  • Before pushing, verify visibility: gh api repos/OWNER/REPO --jq '.visibility'
  • If the repo is public, REFUSE the push and tell the user
  • If visibility cannot be determined, REFUSE the push

Two remotes — know the difference

  • pi-dev → ruizrica/pi-dev — PRIVATE repo. Full content. This is the working repo.
  • origin → ruizrica/agent-pi — PUBLIC repo. Clean content only. No private dirs, no actions.
  • When pushing, ALWAYS specify the remote by name. NEVER use bare git push.
  • NEVER push to origin without explicit user approval.
  • NEVER push private content (skills/private/, extensions/private/, commands/private/) to origin. Ever.
  • Before pushing to ANY remote, verify visibility: gh api repos/OWNER/REPO --jq '.visibility'
  • If the repo is public, REFUSE the push and tell the user
  • A pre-push hook enforces this at the git level as a safety net — do not rely on it, check yourself first

No GitHub Actions on public repo

  • NEVER add .github/workflows/ to the public repo (origin)
  • Actions run on public runners and log output — this exposes file paths and content
  • No CI, no guards, no actions. The pre-push hook is the guard, and it runs locally.

Git commit policy

  • Only commit files directly related to the current task
  • Show git status before committing so the user can review
  • Use clear, descriptive commit messages
  • Before ANY commit, verify no private content is staged: check for skills/private/, extensions/private/, commands/private/

Sensitive Content

This repository contains private/proprietary content:

  • skills/private/ — private skill definitions
  • prompts/ — custom prompt templates
  • agents/ — agent configurations
  • extensions/ — proprietary extension code

NEVER push any of this to a public repository. If in doubt, check repo visibility first.


File Operations

  • Do NOT delete files or directories — the user will delete manually if needed
  • Do NOT run destructive commands (rm -rf, rm -r, etc.)
  • Do NOT modify files outside the scope of the current task

Confirmation Required

The following actions always require explicit user confirmation:

  1. git push (any remote)
  2. git force-push (any remote)
  3. Changing repo visibility
  4. Publishing packages
  5. Any action that sends data to external services

When In Doubt

If a user instruction is ambiguous, ask for clarification. Do not assume the most aggressive interpretation. "Do it" means "do the local work" — not "deploy to the world."

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.