.agents
AGENTS.md18 starsChanged 3 months agoApache-2.0View on GitHub
Centralized configuration repository for AI coding agents. Manages shared and agent-specific configs for Claude Code, Pi, and Codex via symlinks. bin/sync creates symlinks from this repo into each agent's config directory: Core links: - _claude.md → ~/.claude/CLAUDE.md - Each discovered skill directory under skills/ → ~/.claude/skills/ (flattened; Pi reads shared skills recursively from ~/.agents/skills) - Each discovered skill directory under skills/ → ~/.codex/skills/; conflicting non-symlink Codex skills are backed up first Claude Code (~/.claude/): - claude/settings.json → settings (permissions, hooks,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,691 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository55 other files it gives its agents.
- skills/on-demand/vercel-composition-patterns/AGENTS.mdAGENTS.md
- skills/on-demand/vercel-react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adr-writingSkill
- codebase-designSkill
- code-reviewSkill
- crwlSkill
- dev-browserSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- frontend-designSkill
- git-commitSkill
- githubSkill
- grillingSkill
- i-have-adhdSkill
- librarianSkill
- liteparseSkill
- ponytailSkill
- prototypeSkill
- researchSkill
- simple-englishSkill
- tddSkill
- tmuxSkill
- agents-mdSkill
- brandkitSkill
- broSkill
- cavemanSkill
- code-simplifierSkill
- deep-researchSkill
- design-taste-frontendSkill
- fable-orchestratorSkill
- fable-safe-promptSkill
- grill-meSkill
- handoffSkill
- high-end-visual-designSkill
- humanizerSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- image-to-codeSkill
- implementSkill
- marpSkill
- minimalist-uiSkill
- oss-repo-reviewSkill
- redesign-existing-projectsSkill
- sentrySkill
- setup-matt-pocock-skillsSkill
- summarizeSkill
- teachSkill
- to-specSkill
- to-ticketsSkill
- vercel-composition-patternsSkill
- vercel-react-best-practicesSkill
- wayfinderSkill
- web-design-guidelinesSkill
- writing-great-skillsSkill
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 1 is common, 1 is distinctive, and 8 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 72
Private/company commands: do not belong here — use a separate private repo
- Very specific: line 73
After adding or moving files, run bin/sync to update symlinks
- Very specific: line 77
GitHub content: Always use gh CLI for github.com — never crawl/scrape GitHub URLs.
- Very specific: line 82
Verify sync state: ls -la ~/.claude/CLAUDE.md (should point to this repo)
- Very specific: line 87
Run bin/sync --dry-run before bin/sync to preview changes
- Very specific: line 88
Keep pi/APPEND_SYSTEM.md concise — every line is appended to every Pi session's system prompt
- Common: line 96
Commit secrets or API keys
- Very specific: line 102
Never add/remove package-provided skills by editing pi/settings.json skills arrays
- Very specific: line 104
Add a skill: copy/author it into the right bucket, then run bin/add-skill <name> and bin/sync
- Very specific: line 105
Update vendored skills: follow the update workflow in skills/VENDORED.md
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.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
.agents — Project Knowledge Base
Centralized configuration repository for AI coding agents. Manages shared and agent-specific configs for Claude Code, Pi, and Codex via symlinks.
Structure
AGENTS.md # Project knowledge base → ./CLAUDE.md context
_claude.md # Claude Code instructions → ~/.claude/CLAUDE.md
bin/sync # Symlink manager (creates all links below)
bin/add-skill # Validate a local skill before syncing
bin/link-skill # Link a scoped skill into one project
skills/ # Shared skills; auto/ (model-invocable) + on-demand/ (manual)
skills/VENDORED.md # Registry of copied upstream skills + their sources
claude/ # Claude Code: settings, commands, scripts
pi/ # Pi: settings, extensions, skills
codex/ # Codex: config.toml, hooksCommands
| Action | Command |
| Sync configs | bin/sync |
| Preview sync | bin/sync --dry-run |
| Sync + install plugins | bin/sync --bootstrap |
| Remove stale links | bin/sync --prune |
| Validate local skill | bin/add-skill skill-name |
| Enable scoped skill in a project | bin/link-skill skill-name [project-dir] |
| Disable scoped skill in a project | bin/link-skill --remove skill-name [project-dir] |
| Add vendored skill | Copy upstream skill into skills/auto/ or skills/on-demand/, add a row to skills/VENDORED.md |
| Update vendored skills | Ask an AI agent to follow the update workflow in skills/VENDORED.md |
| Update vendored Pi extensions | Ask an AI agent to follow the update workflow in pi/extensions/VENDORED.md |
How Syncing Works
bin/sync creates symlinks from this repo into each agent's config directory:
Core links:
_claude.md→~/.claude/CLAUDE.md- Each discovered skill directory under
skills/→~/.claude/skills/(flattened; Pi reads shared skills recursively from~/.agents/skills) - Each discovered skill directory under
skills/→~/.codex/skills/; conflicting non-symlink Codex skills are backed up first
Claude Code (~/.claude/):
claude/settings.json→ settings (permissions, hooks, plugins, model config)claude/commands/→ slash commands (e.g./day-summary)claude/scripts/→ automation scripts (sleep management)claude/statusline-command.sh→ status bar display
Pi (~/.pi/agent/):
pi/APPEND_SYSTEM.md→ behavioral instructions appended to Pi's system prompt (Pi only; not loaded by Claude/Codex)pi/settings.json→ model config, packagespi/extensions/→ per-extension symlinkspi/skills/→ Pi-only skills
Codex (~/.codex/):
codex/config.toml→ model, approvals, permission profile, pluginscodex/hooks.json→ Codex lifecycle hooksskills/→ shared skills, backing up conflicting non-symlink Codex skills
The sync script backs up existing non-symlink files as .bak before replacing them. It's idempotent — safe to run repeatedly.
Conventions
- Shared config goes at root or in
skills/— all agents get it - Agent-specific config goes in
claude/,pi/, orcodex/— only that agent gets it - Skills are bucketed by invocation:
skills/auto/<name>/= model may auto-invoke (nodisable-model-invocation);skills/on-demand/<name>/= manual-only (disable-model-invocation: true).bin/syncflattens the bucket folders away, so skill folder names must be globally unique and the folder must match the flag. - Project-scoped skills live in
~/.agents-private/skills-scoped/<name>/(outsideskills/, so they are never synced globally). Enable per project withbin/link-skill <name> <project-dir>, which symlinks into the project's.claude/skills/and.pi/skills/and ignores the links via.git/info/exclude. They auto-invoke only where linked — zero context cost elsewhere.bin/link-skillalso picks up a localskills-scoped/in this repo if one exists. - Vendored skills are copied from upstream into a bucket and recorded in
skills/VENDORED.md(source + pinned ref). We own the copies and may customize them; update them via the workflow in that file. - Vendored Pi extensions are copied from upstream repos into
pi/extensions/and recorded inpi/extensions/VENDORED.md(source + pinned ref + update workflow). - Private/company commands do not belong here — use a separate private repo
- After adding or moving files, run
bin/syncto update symlinks
Web Content & Research
- GitHub content: Always use
ghCLI for github.com — never crawl/scrape GitHub URLs. Usegh api,gh repo view,gh pr view,gh issue view, etc.
Validation
- Preview symlink changes:
bin/sync --dry-run - Verify sync state:
ls -la ~/.claude/CLAUDE.md(should point to this repo)
Boundaries
Always
- Run
bin/sync --dry-runbeforebin/syncto preview changes - Keep
pi/APPEND_SYSTEM.mdconcise — every line is appended to every Pi session's system prompt
Ask First
- Running
bin/sync --prune(deletes stale symlinks) - Modifying
claude/settings.json(affects permissions across all projects) - Editing
pi/APPEND_SYSTEM.md(appended to the system prompt of every Pi session)
Never
- Commit secrets or API keys
- Edit symlink targets directly — edit source files in this repo instead
Plugins & Skills
- Some plugins are disabled globally — enable per-project in
.claude/settings.jsonunderenabledPlugins - Never add/remove package-provided skills by editing
pi/settings.jsonskillsarrays - Skills live in
skills/auto/orskills/on-demand/; vendored copies are tracked inskills/VENDORED.md - Add a skill: copy/author it into the right bucket, then run
bin/add-skill <name>andbin/sync - Update vendored skills: follow the update workflow in
skills/VENDORED.md
Key Files
claude/settings.json— permissions (allow/deny/ask), hooks, plugins, model defaults. This is the most complex file; changes affect what Claude Code can do across all projects.claude/install-plugins.sh— declarative plugin installation from multiple marketplaces. Run viabin/sync --bootstrap.codex/config.toml— Codex model, permission profile, network allowlist, plugins, and trusted projects.codex/hooks.json— Codex lifecycle hooks.pi/APPEND_SYSTEM.md— Pi-only behavioral instructions, appended to Pi's system prompt via~/.pi/agent/APPEND_SYSTEM.md. Keep concise — every line applies to all Pi sessions.AGENTS.md— repository knowledge for this config repo.
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.

