crocotaste-plugin
AGENTS.md1 starsChanged 18 days agoMITView on GitHub
This repo is a Claude Code plugin that helps a team make its brand, design guidelines and mockups with their coding agent. It then hands the result to Crocotaste, the app that keeps every pull request on-system. For contributors and coding agents working on the plugin itself, not for people who use it. People who use it read README.md; the long form of these rules is CONTRIBUTING.md. npm test runs node --test checks/*.test.mjs scripts/test/*.test.mjs: the repo rules, then the command…
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 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.
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
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
- Very specific: line 35
No SessionStart hook and no .mcp.json.
- Distinctive: line 36
No prices and no dates about the Crocotaste offer anywhere in the plugin, and nothing about its internals.
- Very specific: line 37
Never overwrite a user's file silently: tokens merges, skills ask before writing a file that exists, ## Decisions is kept verbatim.
- Distinctive: line 39
No em dashes and no exclamation marks in prose: skills, templates, README, output copy.
- Distinctive: line 41
Never credit an AI tool as an author, in commits, pull requests or files.
- Very specific: line 47
Run npm run check and read the result.
- Very specific: line 48
Commit with a conventional message (feat(scripts): ..., fix(skills): ..., docs: ...) and no trailer.
- Very specific: line 66
No edit hook formats files here.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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.md
This repo is a Claude Code plugin that helps a team make its brand, design guidelines and mockups with their coding agent. It then hands the result to Crocotaste, the app that keeps every pull request on-system.
For contributors and coding agents working on the plugin itself, not for people who use it. People who use it read README.md; the long form of these rules is CONTRIBUTING.md.
Map
| Path | What |
.claude-plugin/ | plugin.json and marketplace.json; the icon is icon.png at the root |
skills/ | the six skills, one folder each with a SKILL.md, references, templates |
scripts/ | crocotaste.mjs, the command line tool the skills call, and its tests |
checks/ | tests for the repo's own rules (manifests, skills, copy, guards) |
evals/ | eval cases for the skills, written here and run by hand |
examples/ | two products made with the skills, published on GitHub Pages |
.githooks/ | the commit hooks that run the guards |
.github/ | CI, the Pages workflow, the pull request and issue templates |
Commands
npm install # install; also switches on the Git hooks
npm run check # format:check, then the tests
npm run format # Prettier
npm run validate # claude plugin validate --strict
node scripts/crocotaste.mjs help # check, tokens, sync, serve, fontsnpm test runs node --test checks/*.test.mjs scripts/test/*.test.mjs: the repo rules, then the command line tool. The evals (evals/README.md) call the model and cost money; CI never runs them.
Constraints
- Zero runtime dependencies. Prettier is the only devDependency. Node 20 or newer, ES modules,
node --test. - No SessionStart hook and no
.mcp.json. The plugin is skills and one script. - No prices and no dates about the Crocotaste offer anywhere in the plugin, and nothing about its internals.
- Never overwrite a user's file silently:
tokensmerges, skills ask before writing a file that exists,## Decisionsis kept verbatim. - The plugin writes only its own files in a user's repo:
BRAND.html,DESIGN.md,docs/design/, one block inCLAUDE.mdorAGENTS.md, two lines in.gitattributes. - No em dashes and no exclamation marks in prose: skills, templates, README, output copy.
- Nothing personal and nothing secret in the repo: no keys, no home-folder paths, no emails of people.
- Never credit an AI tool as an author, in commits, pull requests or files.
How to work
- Branch from an up-to-date
main(feat/...,fix/...,docs/...,chore/...). - Make the change, with its test first.
- Run
npm run checkand read the result; runnpm run validatewhen a manifest or skill changed. - Commit with a conventional message (
feat(scripts): ...,fix(skills): ...,docs: ...) and no trailer. - Open a pull request against
mainwith the template. Never push tomain, never force-push, never--no-verify. - Docs are part of the change: fix the README, this file,
CONTRIBUTING.mdor a skill in the same pull request.
Writing a skill
- One folder,
skills/<name>/, with aSKILL.md; the name is one plain word. - Frontmatter keys:
name,description,when_to_use, andargument-hintwhen it takes an argument. - Under 500 lines. Detail goes into
references/, files to copy intotemplates/. - A test in
checks/, and the folder added tochecks/manifest.test.mjs. - Plain words, one question at a time, neutral "we" when the plugin speaks of itself. End by naming the next skill.
- A skill calls the script as
node "${CLAUDE_PLUGIN_ROOT}/scripts/crocotaste.mjs" <command>, never by a relative path: it runs from the user's repo, not this one. - Inside a
<style>, a block marker is wrapped in a CSS comment,/* <!-- tokens:start --> */, so the next rule stays valid CSS; the script reads both the bare and the wrapped shape. - The examples are regenerated by running the skills and the script on them (
tokens --write,sync), never edited by hand.
Claude Code
- Claude Code reads this file directly (Claude Code 2.1.277 or later); there is no
CLAUDE.mdhere, becauseclaude plugin validate --strictflags one at a plugin's root. - No edit hook formats files here. Run
npm run formatbefore you commit. .claude/settings.jsondenies skipping the Git hooks (--no-verify,-n), changingcore.hooksPath, editing.githooks/and editingchecks/guards.mjs. Every agent follows the same rule: the hooks and the guards are protected files, changed only by a person in a pull request of their own.
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.

