agentleFS
KhaledSaeed18KhaledSaeed18/dotclaude/skills/engineering/create-agent/SKILL.md

create-agent

Skill5 starsChanged 5 months agoMITView on GitHub

Author a new subagent for this repository end to end by scaffolding it with pnpm new, curating its tool allowlist, setting model, color, and memory in frontmatter, then writing a focused system prompt and regenerating the registry. Use when creating, scaffolding, or reviewing an agent or subagent in this repo.

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use deploy-platform, eval-and-improve and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • agno-agiSkill

    deploy-platform

    Deploy this AgentOS to production with this template's deploy scripts — preflight the provider CLI and account, run the up.sh script, complete the JWT key step, verify the live platform on its public URL, then hand over the redeploy/logs/teardown instructions. Use this skill when the user asks to deploy, ship to production, go live, or take the platform to prod.

    Also in 3 projects that use this

  • agno-agiSkill

    eval-and-improve

    Run the eval suite (python -m evals), diagnose every failure, fix what's in scope, and loop until all cases pass. Use when evals are failing — including overnight run-evals schedule failures — or when the user wants to run, diagnose, or repair the eval suite. To author new coverage, use create-evals instead.

    Also in 3 projects that use this

  • tovrleafSkill

    create-evals

    Generate diverse evaluation scenarios that test whether an agent using a skill produces correct output, including happy-path cases, edge cases, and failure scenarios across varying complexity levels. Produces structured scenario directories containing task prompts, weighted scoring checklists, and optional input fixtures for each scenario. Use when the user says "create evals", "generate eval scenarios", "write evals", "test this skill", or before publishing a skill.

    Also in 3 projects that use this

  • subarnasaikiaSkill

    improve-agent

    Use when asked to improve, iterate, or build a better version of an existing Kaggle simulation/agent competition bot. Triggers on "improve the agent", "make a better version", "vN", "iterate on agent", "what should we try next", or any request to advance beyond the current best submission.

    Also in 3 projects that use this

  • 32103210Skill

    create-rule

    Create Cursor rules for persistent AI guidance. Use when you want to create a rule, add coding standards, set up project conventions, configure file-specific patterns, create RULE.md files, or asks about .cursor/rules/ or AGENTS.md.

    Also in 3 projects that use this

  • SentrySkill

    create-pr

    Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.

    Also in 3 projects that use this

  • +3 more from agno-agi

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a subagent that earns its own context window: one clear role, a tightly curated tool allowlist, and a system prompt focused enough …

    line 7
  2. Very specific:

    File layout: only AGENT.md: No companion files in an agent folder.

    line 15
  3. Distinctive:

    If the role is fuzzy or sounds like two jobs, sharpen or split it now.

    line 29
  4. Distinctive:

    Keep it focused. A subagent's prompt should be sharp, not a second copy of the whole repo's conventions.

    line 58
  5. Very specific:

    If pnpm validate flags the frontmatter or layout, fix the source AGENT.md and rerun.

    line 67

“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Create a subagent that earns its own context window: one clear role, a tightly curated tool allowlist, and a system prompt focused enough that the main agent knows exactly when to delegate to it. Then regenerate the derived files and validate.

Source layout is agents/<category>/<name>/AGENT.md. Agents are file-layout: the folder must contain only AGENT.md, because it installs as the single file .claude/agents/<name>.md. The category is the folder; the per-agent registry.json, the root registry.json, and the README catalog are all generated by pnpm gen. Never hand-edit generated files.

Hard rules: never break these

  • One agent, one role. A subagent exists to keep a side task out of the main context and return a tight result. If the role needs "and" to describe it, narrow it or split it.
  • Curate the tool allowlist ruthlessly. The whole point of a subagent is a constrained tool set. Grant only what the role genuinely needs; omit Bash unless it must run commands, omit write tools for a read-only reviewer. Inheriting everything defeats the purpose.
  • File layout: only AGENT.md. No companion files in an agent folder. pnpm gen rejects extra files because the agent installs as one file. Reference material for the agent goes in its system prompt, not a sidecar.
  • name is globally unique and equals the folder name, kebab-case. Agents install to a flat .claude/agents/<name>.md.
  • Never hand-write registry.json or the README catalog. They are derived; run pnpm gen.
  • No AI/co-author mentions anywhere in the agent or in what it produces.

Step 1: Define the agent

Pin down before writing a line:

  • The one role, in a sentence.
  • When the main agent should delegate to it. This is the most load-bearing decision; it drives the description.
  • The tools the role actually needs. List them; everything else stays off.
  • The model. opus for synthesis and hard judgment, haiku for cheap high-volume work, inherit (the default) when it should match the session.

If the role is fuzzy or sounds like two jobs, sharpen or split it now.

Step 2: Scaffold it

From the repo root, let the scaffolder create the folder, stub, and regenerate in one step:

pnpm new --type agent --category <category> --name <name> --description "<what it does. Use when ...>"

Current agent categories: academic, engineering, research, review, security (run ls agents for the live list). Reuse one unless a genuinely new family is justified. The scaffolder enforces kebab-case and global name uniqueness, so a bad name fails fast.

Step 3: Write the frontmatter

Required: name, description. The rest are optional but shape behavior, cost, and UI. Full field table and valid values: reference/frontmatter.md.

  • description is the delegation trigger. Third person, lead with the capability, end with an explicit "Use when …" clause naming the situations that should route to this agent. Vague descriptions never get delegated to (avoid a : in the value; it is YAML).
  • tools: the curated allowlist from Step 1.
  • model, and optionally color (UI accent) and memory (user / project / local for cross-session learning). pnpm validate rejects an invalid color, memory scope, or model, so typos fail in CI.

Step 4: Write the system prompt

The markdown body is the agent's system prompt. Address the agent in the second person, imperative. The shape that works:

  1. One or two lines establishing the role and the standard it's held to.
  2. Operating rules / hard constraints the agent must always follow.
  3. The procedure if the work is staged.
  4. The exact output it should return to the caller, since that result is all the main agent sees.

Keep it focused. A subagent's prompt should be sharp, not a second copy of the whole repo's conventions.

Step 5: Regenerate and validate

pnpm gen        # writes registry.json files and the README catalog
pnpm validate   # checks frontmatter values + layout, then shadcn registry validate

If pnpm validate flags the frontmatter or layout, fix the source AGENT.md and rerun; never patch generated output.

Step 6: Review against the bar

  • The description would actually get the agent delegated to on the intended situations, and not over-trigger.
  • The tool allowlist is the minimum the role needs, nothing more.
  • The folder contains only AGENT.md.
  • color/memory/model are valid and pnpm validate passes.
  • It reads like the existing agents in voice and structure.

Report the agent's path, category, its tools and model, and the validation result. Leave committing to the user.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.