Logo: Subagent Creator

Subagent Creator

Communautéit
luongnv89
subagent-creator

Create, evaluate, or improve Claude Code subagent files (.claude/agents/*.md) — the frontmatter + system prompt defining a delegatable specialist. Don't use for skills (skill-creator), CLAUDE.md/AGENTS.md (agent-config), or running an agent.

Iwwersiicht

Editeurluongnv89
Repositoryskills
Skill-Nummsubagent-creator
Stären
124
Forks
18
Matgeliwwert Dateien
5
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 5 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    luongnv89 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Subagent Creator an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/luongnv89/skills/tree/main/skills/subagent-creator
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/luongnv89/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/subagent-creator .claude/skills/subagent-creator
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Subagent Creator an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Subagent Creator automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Subagent Creator net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Subagent Creator

Create, evaluate, and improve Claude Code subagents — the .md files (in .claude/agents/ for a project or ~/.claude/agents/ for personal use) whose YAML frontmatter plus system prompt define a specialist the main agent can delegate to with an isolated context window and restricted tools.

This is not about skills (skill-creator owns those) or CLAUDE.md/AGENTS.md (agent-config owns those). A subagent is one file: frontmatter (name, description, tools, model, …) + a system-prompt body.

When to Use

Use when the user asks to create, review, or fix a Claude Code subagent definition file (.claude/agents/*.md or personal ~/.claude/agents/*.md). Do not use for skills or for editing CLAUDE.md/AGENTS.md.

Pick the branch first

Three branches. Identify which one the user is on before doing anything else — they don't share a starting step.

BranchTriggerGo to
Create"make a subagent that…", "I need an agent for X", no file exists yetCreating a subagent
Evaluate"review this agent", "is this subagent any good", "audit .claude/agents/foo.md"Evaluating a subagent
Improve"fix this agent", "this subagent isn't triggering / over-reaches", points at an existing fileImproving a subagent

If the request is ambiguous ("look at my agent"), assume Evaluate and confirm before editing anything.

Mandatory rules (all branches)

These apply on every write, regardless of branch.

Repo Sync Before Edits (when target is a project repo)

A subagent written to .claude/agents/ lives in a version-controlled repo. Before creating or editing a file there, sync to avoid clobbering remote work:

bash
branch="$(git rev-parse --abbrev-ref HEAD)"
git fetch origin
git pull --rebase origin "$branch"

If the working tree is dirty: stash → sync → pop. If origin is missing or a conflict occurs: stop and ask the user. Skip this section only when the target is ~/.claude/agents/ (personal, not a repo) — confirm the scope with the user before assuming.

Frontmatter safety + version

  • Subagent file name must be lowercase letters/digits/hyphens, no consecutive hyphens. Identity comes from name, not the filename — they need not match, but keeping name == filename stem (code-reviewer → code-reviewer.md) is a recommended convention.
  • Quote any frontmatter string value containing : # - < > | , & ? ! [ ] { } * to keep YAML valid. description almost always needs quotes.
  • This SKILL.md itself follows the catalog's own rule: bump metadata.version on every edit.

Scope check (one question, not an interview)

Confirm where the file goes — .claude/agents/<name>.md (project, team-shared, version-controlled) or ~/.claude/agents/<name>.md (personal, cross-project). This decides Repo Sync above and nothing else. The source guideline encodes the rest of the intent, so don't over-interview.


Creating a subagent

Goal: one well-formed <name>.md file that triggers reliably, stays in its lane, and holds only the tools it needs.

1. Capture the specialist in one sentence

A good subagent has a single responsibility. Force the purpose into one sentence: "A read-only security auditor that flags auth and data-exposure bugs in changed files." If you need "and" to join two unrelated jobs, that's two subagents. Read references/system-prompt-guide.md → Single responsibility if the scope feels fuzzy.

2. Choose frontmatter

Start from the minimal set and add only what the job demands. Read references/frontmatter-schema.md for every field, which are safe-and-common vs. advanced-and-rot-prone, and the tool-restriction syntax.

Minimal viable frontmatter:

yaml
---
name: <kebab-name>
description: "<when to invoke + what it does. Add 'Use PROACTIVELY' to encourage auto-delegation.>"
tools: Read, Grep, Bash   # omit entirely to inherit ALL tools
model: inherit            # inherit | sonnet | opus | haiku
---

Decisions, in order:

  • description — the primary trigger. Say when to invoke and what it does. Add Use PROACTIVELY (or MUST BE USED) when the agent should auto-delegate. This is the single highest-leverage field; see the description guidance in references/system-prompt-guide.md.
  • tools — least privilege. Prefer read-only (Read, Grep, Glob) for analysis/review agents; add Edit/Write only for agents that change code; scope Bash to patterns (Bash(npm:*), Bash(git:*)) when you can. Omitting tools inherits everything — only do that for general-purpose agents.
  • model — inherit is the safe default. Use haiku for fast/cheap search agents, opus for hard reasoning.
  • Anything beyond these (maxTurns, isolation, memory, context, hooks, …) → consult references/frontmatter-schema.md first; most subagents need none of them.

3. Write the system-prompt body

The body is the agent's system prompt. Use the proven structure — role → when invoked → process → output format → checklist. Read references/system-prompt-guide.md for the full template, the "be example-rich" guidance, and an annotated example. Start from a template in assets/templates/ (reviewer-agent.md for read-only analysis agents, worker-agent.md for agents that edit code) rather than a blank file.

4. Write the file and validate

Write to the path confirmed in the scope check. Then verify it parses and follows the design rules — run the evaluation rubric against your own draft (it's the same checklist; see Evaluating). At minimum confirm: frontmatter parses, name matches filename, tools is least-privilege, description has both a when and a what.

Emit a Step Completion Report:

◆ Create subagent (step 4 of 4 — <name>.md)
··································································
  Frontmatter parses:    √ pass
  name == filename:      √ pass
  Single responsibility: √ pass
  Tools least-privilege: √ pass (read-only: Read, Grep)
  Description: when+what: √ pass
  ____________________________
  Result:                PASS

Evaluating a subagent

Goal: a verdict on an existing subagent file against design best practices — a checklist audit, not an eval harness. No test runs, no benchmarks; the source guideline defines quality by design principles, so grade against those.

  1. Read the target file (frontmatter + body). Identify its claimed responsibility.
  2. Walk every item in references/evaluation-rubric.md — frontmatter validity, single responsibility, least-privilege tools, description quality (trigger clarity + proactive hint), system-prompt structure, and the anti-patterns list.
  3. Score each item √ pass / × fail / ~ partial with a one-line reason.
  4. Output findings as before/after suggestions. In Evaluate mode, do not silently edit the file — surface the fixes and let the user decide (or switch to Improve).

Emit a Step Completion Report with one check per rubric category and an overall PASS | FAIL | PARTIAL.


Improving a subagent

Goal: apply concrete fixes to an existing file and leave it measurably better.

  1. Run the Evaluate branch first (above) to get the findings list. Don't skip — fixing without auditing misses the systemic issues.

  2. Apply Repo Sync Before Edits if the file is in a project repo.

  3. Apply fixes, ordered by impact:

    • Triggering problems (under/over-firing) → rewrite description: sharpen when, add/adjust Use PROACTIVELY, name what it's not for. Highest leverage.
    • Over-reach (agent does too much) → split responsibilities or tighten the body's scope.
    • Over-provisioned tools → reduce to least privilege; prefer read-only.
    • Weak body → impose the role → when-invoked → process → output → checklist structure.

    See references/system-prompt-guide.md for the patterns behind each fix.

  4. Re-run the rubric to confirm the findings are resolved and nothing regressed.

  5. Emit a Step Completion Report showing each prior × fail now √ pass.


Acceptance Criteria

A successful run produces:

  • A subagent file with valid YAML frontmatter, name (kebab), description containing when+what + negative-trigger, and least-privilege tools.
  • Step Completion Report with per-rubric-item √/× and overall PASS|PARTIAL|FAIL.
  • For Improve: before/after rubric comparison showing net positive change.
  • No edits outside the confirmed target path (project .claude/agents/ or ~/.claude/agents/).

Expected output

For a Create on "a read-only PR diff reviewer":

◆ Create subagent (step 4 of 4 — pr-diff-reviewer.md)
  Frontmatter parses:    √ pass
  name == filename:      √ pass
  Single responsibility: √ pass
  Tools least-privilege: √ pass (read-only: Read, Grep, Glob)
  Description: when+what: √ pass
  ____________________________
  Result:                PASS

The file is written and ready for use.

Edge cases

  • User points at a file but the request is "make a new one for X": treat as Create after confirming path.
  • Ambiguous trigger language: default to Evaluate and ask for clarification.
  • Target path is inside a git repo with dirty tree: perform Repo Sync (stash / pull / pop) before write.
  • Subagent name would collide with skill or agent-config names: reject and suggest different name (see negative triggers in description).

Reference files

  • references/frontmatter-schema.md — every frontmatter field: required vs. optional, safe-and-common vs. advanced, tool-restriction syntax, file-location precedence. Read before choosing frontmatter.
  • references/system-prompt-guide.md — how to write the system-prompt body: single-responsibility test, the role→when→process→output→checklist template, description-writing, an annotated example, design Do/Don't.
  • references/evaluation-rubric.md — the pass/fail checklist for Evaluate and the self-check in Create. The anti-pattern list lives here.

Templates

  • assets/templates/reviewer-agent.md — read-only analysis/review agent (Read, Grep, Glob; no edits).
  • assets/templates/worker-agent.md — agent that edits code (Read, Edit, Bash, …).

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Subagent Creator?

Create, evaluate, or improve Claude Code subagent files (.claude/agents/*.md) — the frontmatter + system prompt defining a delegatable specialist. Don't use for skills (skill-creator), CLAUDE.md/AGENTS.md (agent-config), or running an agent.

Firwat Subagent Creator op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Subagent Creator besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Subagent Creator an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/luongnv89/skills/tree/main/skills/subagent-creator an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Subagent Creator benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Subagent Creator benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Subagent Creator domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Subagent Creator gratis?

Jo. luongnv89 huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇