creating-agents
Skill14 starsChanged 2 months agoMITView on GitHub
Teaches how to create new agents in the agents/ directory — isolated agentic loops with their own model, tool whitelist, and AGENT.md instructions.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Artesiana/agent2their own version, first seen Apr 30, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Artesiana/agent2★ 36same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository95 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ask-mattSkill
- brainstormingSkill
- cavecrewSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-helpSkill
- caveman-reviewSkill
- cavemanSkill
- caveman-statsSkill
- codebase-designSkill
- code-reviewSkill
- design-an-interfaceSkill
- diagnosing-bugsSkill
- dispatching-parallel-agentsSkill
- domain-modelingSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- git-guardrails-claude-codeSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- loop-meSkill
- prototypeSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- researchSkill
- resolving-merge-conflictsSkill
- setup-matt-pocock-skillsSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- tddSkill
- teachSkill
- test-driven-developmentSkill
- to-questionnaireSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- wait-whatSkill
- wayfinderSkill
- wizardSkill
- writing-for-agentsSkill
- writing-great-skillsSkill
- writing-plansSkill
- writing-skillsSkill
- brainstormingSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- playwright-cliSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- subagent-driven-developmentSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 101
Check agents/ for current agents.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
Creating Agents
Agents are isolated agentic mini-loops with their own model, tool whitelist, and instruction file (AGENT.md). Use agents when you need to delegate a self-contained task to a separate LLM context — typically work that benefits from a different model, a restricted tool set, or clean isolation from the main conversation.
Skill vs Agent — When to Use Which
Use a skill (skills/) | Use an agent (agents/) |
| Instruction to load into the main context | Isolated task with its own model |
| No tool calls needed, or shares main tool set | Needs a restricted tool whitelist |
| Workflow guidance or persona adjustment | Sub-task that returns a single result |
Lives in skills/<name>/SKILL.md | Lives in agents/<name>/AGENT.md |
Agent File Format
---
name: agent-name # lowercase letters, numbers, hyphens only
description: One sentence — when to invoke this agent and what it returns.
model: provider/model-id # optional: omit to inherit Active (ADR-0033); sticky when set
tools: [tool1, tool2] # required: exact tool names the agent may call
max_iterations: 5 # optional: default is global max (25)
tags: [tag1, tag2] # optional
---
# Agent Name
(Instructions the agent follows. Starts with what it should do on first call.)
## Protocol
1. Step one
2. Step two
3. Return final answerTool Names
Tools must be the exact runtime names visible to the agent:
| Category | Name format | Example |
| Built-in | plain name | read_file, write_file, execute_command |
| Skill tools | plain name | read_skill_file, write_skill_file, reload_skills |
| Agent tools | plain name | read_agent_file, write_agent_file, reload_agents |
| MCP tools | mcp_{server}_{tool} | mcp_google-workspace_query_gmail_emails |
read_skill_file and read_agent_file are always available to every agent — no need to list them.
Step-by-Step: Create a New Agent
- Design — What model? What tools? What does it return?
- Write the
AGENT.mdusingwrite_agent_file:write_agent_file(agent_name="my-agent", relative_path="AGENT.md", content="...") - Reload to activate immediately:
reload_agents() - Test by invoking:
invoke_agent(agent="my-agent", prompt="<test task>")
Calling Agents
invoke_agent(agent="agent-name", prompt="Task description here")Optional overrides for one-off invocations:
invoke_agent(agent="agent-name", prompt="...", model="anthropic/claude-sonnet-4-6", tools=["read_agent_file", "mcp_threads_post"])Example: Minimal Agent
---
name: summariser
description: Summarises a block of text into 3 bullet points. Invoke when the user asks for a summary.
model: qwen/qwen3-235b-a22b
tools: []
max_iterations: 2
---
# Summariser
Read your instructions (already loaded), then summarise the text in the prompt into exactly 3 bullet points. Return only the bullets — no preamble.Existing Agents
Check agents/ for current agents. Use reload_agents after any changes to activate them.
Backward Compatibility
Skills with a model: field in skills/ still work via invoke_agent — the agent registry is checked first, then the skills registry. New agents should go in agents/.
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.

