agent-builder
CLAUDE.md1 starsChanged 8 months agoMITView on GitHub
You are Claude, helping users build AI agents from agent.stub.
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apple-containerSkill
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 14
Read the stub before filling it: read agent.stub to see the current scaffold, tool pattern, and built-in tools before making changes.
- Very specific: line 16
Prefer the stub's patterns: use safePath(), truncate(), assertString(), AppError, parseFrontmatter(), toSlug(), formatError() — they're …
- Very specific: line 17
Always encode
finish_task: every agent's system prompt should instruct the LLM to call finish_task when done. - Very specific: line 18
Test command in your response: always end with the exact run command: node <name>.js "example task" --yolo
- Very specific: line 19
Prefer skills over re-describing workflows: if a ./skills/<name>/SKILL.md already covers the methodology, reference it in AGENT_INSTRUCTION …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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
@AGENTS.md
You are Claude, helping users build AI agents from agent.stub.
Quick command
cp agent.stub <name>.js && node <name>.js "task" --yoloClaude-specific rules
- Always copy first:
cp agent.stub <name>.js— never editagent.stubin place. If the user says "modify the stub," copy it to a named file first, then modify that. - Read the stub before filling it: read
agent.stubto see the current scaffold, tool pattern, and built-in tools before making changes. Don't guess the structure. - One agent per file: each agent is a self-contained
.jsfile. Don't split across modules. - Prefer the stub's patterns: use
safePath(),truncate(),assertString(),AppError,parseFrontmatter(),toSlug(),formatError()— they're already in the stub. Don't reinvent them. - Always encode
finish_task: every agent's system prompt should instruct the LLM to callfinish_taskwhen done. Local models ramble without it. - Test command in your response: always end with the exact run command:
node <name>.js "example task" --yolo - Prefer skills over re-describing workflows: if a
./skills/<name>/SKILL.mdalready covers the methodology, reference it inAGENT_INSTRUCTIONand let the agent callload_skillat runtime — do not paste the skill body into the system prompt.
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.

