agent-files
CLAUDE.md3 starsChanged 4 months agoMITView on GitHub
always use ripgrep instead of grep always use fd instead of find always use git commit --no-gpg-sign when committing always prefer brew over npm for system tools Before writing a person's name, a machine path, an employer, or an internal host into any file under git, check whether the repository is public. Do it without credentials, so the answer does not depend on which account is logged in or which org owns the repo: url="$(git remote get-url origin | sed…
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- advanced-prompt-improverSkill
- codex-gateSkill
- codex-web-renderSkill
- deliverable-checkSkill
- freeing-disk-spaceSkill
- gmail-draftSkill
- codexSkill
The file
We split this CLAUDE.md into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Create drafts with the Slack connector's draft tool, never slack-drafts restore: Slack keeps restored drafts on its server, but the app …
- Very specific: line 12
After writing, run slack-drafts list <channel_id> again, and report the draft only when one starting with the new text is there.
- Distinctive: line 13
Never make a link bold: Slack's composer carries the bold into the text that follows it.
- Distinctive: line 22
never use em dash or en dash
- Distinctive: line 23
never use "this isn't just..., it's..." trope
- Distinctive: line 28
Before writing a person's name, a machine path, an employer, or an internal host into any file under git, check whether the repository is …
- Distinctive: line 39
If it is public, write every file so a stranger can use it:
- Very specific: line 42
Use generic paths: ~/..., $HOME, or a configurable variable.
- Distinctive: line 44
Never name an employer, an internal host, or an internal repository path.
- Distinctive: line 47
Before guessing how a third-party service behaves, verify first.
≈ “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.
Files
Shell
always use ripgrep instead of grep always use fd instead of find always use git commit --no-gpg-sign when committing always prefer brew over npm for system tools
Slack drafts
Slack drafts can't be edited, and a draft tool's "Draft created" reply is not proof the draft exists. Add -w <workspace> to any slack-drafts command for a workspace other than slackdump's current one.
- Create drafts with the Slack connector's draft tool, never
slack-drafts restore: Slack keeps restored drafts on its server, but the app does not show them. - Before writing, run
slack-drafts list <channel_id>. If the destination already holds a draft, delete it withslack-drafts clear <channel_id> [thread_ts], because the connector's draft tool silently writes nothing to a destination that already has one (its reply then carries nodraft_id). Ifclearprints "kept", the User typed or edited that draft in Slack: build the new draft on its text, then remove it withslack-drafts clear --all <channel_id> [thread_ts](it saves a backup first). - After writing, run
slack-drafts list <channel_id>again, and report the draft only when one starting with the new text is there. - Never make a link bold: Slack's composer carries the bold into the text that follows it.
Coding
prefer python and use uv
Markdown
adhere to DavidAnson markdownlint
Writing preference
- never use em dash or en dash
- never use "this isn't just..., it's..." trope
- NO METASPEAK: every deliverable (report, email, doc, Jira/Slack post) reads as a standalone artifact by a fresh author. Never reference prior drafts, revisions, review feedback, the writing process, or what changed ("as discussed", "updated to reflect", "per your feedback", "in this revision"). Before presenting any deliverable, self-check for these and strip them.
Public repositories
Before writing a person's name, a machine path, an employer, or an internal host into any file under git, check whether the repository is public. Do it without credentials, so the answer does not depend on which account is logged in or which org owns the repo:
url="$(git remote get-url origin | sed -E 's#^(ssh://)?git@([^:/]+)[:/]#https://\2/#; s#\.git$##')"
curl -s -o /dev/null --max-time 10 -w '%{http_code}\n' "$url"200 means public. 404 or any 3xx means private or gone. Anything else (000, 5xx, 429) means unknown: ask the User before writing.
If it is public, write every file so a stranger can use it:
- Refer to the person as "User", never by name, and use they/them.
- Use generic paths:
~/...,$HOME, or a configurable variable. Never hardcode/Users/<name>/.... - Never name an employer, an internal host, or an internal repository path.
Research & Verification
Before guessing how a third-party service behaves, verify first. In priority order:
- Live state (account/instance-specific): query the actual API, run the CLI, read the real config/source. Never assume runtime state.
- Documented behavior of libraries/SDKs/APIs/CLIs (WorkOS, Slack, Homebrew, etc.): use Context7.
- Niche/self-hosted tools Context7 won't have (go2rtc, HA integrations): WebSearch/WebFetch, or read the tool's own source.
- Provide links when posting, e.g. Jira Service Management, so Users can see the data, logs, code, documentation, etc.
Show the source you verified against before proposing a fix.
External memory hub
A private hub repository per identity, built from the external-memory/ pattern in this repo, holds the current state of every live initiative. The rules files the hub ships name its path and ritual: a SessionStart hook pulls it and loads INDEX.md, durable facts are written with memq as they come up: what clearly matters is saved at once without asking (memq add --sure, undone with memq undo), the agent asks in the turn only when unsure, and only changes the user could not answer at the time wait for /memq or the session's exit. The work identity has its own hub and the two never mix.
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
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.

