Agent skill · 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.

What it needs

About 6k tokens when loaded.

What this skill does

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. Branch Trigger Go to -------- --------- ------- Create "make a subagent that…", "I need an agent for X", no file exists yet Creating 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 file Improving 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: 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. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills luongnv89/subagent-creator

View the source on GitHub

Browse the @skills marketplace