agentleFS
krzysztofsurdykrzysztofsurdy/code-virtuoso/skills/tools/agent-creator/SKILL.md

agent-creator

Skill22 starsChanged 9 months agoMITView on GitHub

Interactive tool to design a well-scoped sub-agent definition - specialist, role, or team-lead - with the right frontmatter, tool permissions, isolation, memory, and system prompt. Use when the user asks to create a sub-agent, write an agent file, design a specialized worker, scaffold a role agent, bootstrap an agent team, or turn a repeated delegation pattern into a reusable agent. Runs a six-phase questionnaire and outputs a ready-to-commit agent markdown file plus marketplace registration.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use skill-creator.

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.
  • MicrosoftSkill

    skill-creator

    Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 2

    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:

    Before creating an agent, confirm it is the right primitive.

    line 27
  2. Very specific:

    If the answer is reference material, stop and use the skill-creator skill instead.

    line 36
  3. Very specific:

    If the user provided an archetype as an argument, use it.

    line 56
  4. Distinctive:

    Start by loading Phase 1: After the user confirms each phase, load the next.

    line 75

“Common” is measured: kept by at least 6 in 10 of the 15 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

Agent Creator

Create a sub-agent that earns its context window. Most agents fail not because the model is weak but because the definition is vague - unclear trigger, sprawling tool list, a body that mixes persona and procedure, and no output contract. This skill walks you through a six-phase design so the resulting agent is focused, least-privileged, and predictable.

Core Principles

PrincipleMeaning
One job, one agentAn agent that does two things does neither well. Split the responsibility before writing.
Least privilegeGrant the smallest tool set that lets the agent finish its job. Read-only by default.
Trigger-first descriptionThe description field is the only thing read before delegation. Pack it with keywords and "when to use".
Contract over conversationDefine explicit input, process, and output. Agents are not chat sessions.
Isolation when writingIf the agent edits files, run it in a worktree so the orchestrator can review before merging.
Portable body, platform frontmatterKeep the system prompt agent-agnostic. Adapt frontmatter fields per target platform.

Agent vs Skill - Quick Disambiguation

Before creating an agent, confirm it is the right primitive.

Use a SkillUse an Agent
Reference material (patterns, checklists, schemas)Work to perform (investigate, review, implement)
Loaded into an existing sessionRuns in its own context window
Passive knowledgeActive actor with tools and a workflow
"Where do I learn about X""Do X for me and return a result"

If the answer is reference material, stop and use the skill-creator skill instead. If the answer is work, continue.


Archetype Selection

Agents fall into three archetypes. Pick one before designing.

ArchetypeScopeMemoryModifies filesTypical examples
SpecialistSingle, repeatable task typeStatelessRarely (doc writer, implementer)Investigator, Reviewer, Refactor Scout, Dependency Auditor, Test Gap Analyzer
RoleEntire domain of responsibilityOften persistent (project-level)Dev roles yes, others noProduct Manager, Architect, Backend Dev, QA Engineer, Project Manager
Team-LeadCoordinates multiple workers in parallelShared task listNo (delegates)Orchestrator, release-train lead, review dispatcher

Decision tree

  1. Does the agent do one repeatable task type (review this PR, investigate this area, audit dependencies)? -> Specialist
  2. Does the agent own a domain across many task types and benefit from remembering context across sessions (requirements, architecture decisions, risk register)? -> Role
  3. Does the agent need to spawn and coordinate other agents working in parallel (research teams, multi-layer refactors)? -> Team-Lead

If the user provided an archetype as an argument, use it. Otherwise present a selectable menu using AskUserQuestion (or the platform's equivalent interactive prompt) with the three options from the table above.

See references/archetypes.md for worked examples of each archetype and the anti-patterns to avoid.


Workflow

This skill uses guided phases - each phase is a separate file loaded one at a time. Every phase ends with a gate where you must wait for user confirmation before proceeding. Do not skip phases or merge them.

PhaseFileWhat it covers
1Purpose and TriggerWhat the agent does, when to delegate, out-of-scope, output shape, archetype
2Name and IdentityKebab-case name, collision check, user confirmation
3CapabilitiesTool permissions, isolation, memory, preloaded skills
4System PromptFive-section contract: Input, Process, Rules, Output
5Placement and ScopeWhere the file lives: project, personal, plugin, session
6Validate and WriteChecklist, file creation, marketplace registration

Start by loading Phase 1. After the user confirms each phase, load the next. Never load multiple phases at once. Never skip a phase.


Reference Files

ReferenceContents
archetypes.mdWorked examples of specialist, role, and team-lead agents, plus anti-patterns
frontmatter-fields.mdFull field reference, portable vs platform-specific, and examples
tool-selection.mdLeast-privilege tool allowlists, per-archetype defaults, and denylist patterns
system-prompts.mdSystem prompt patterns: role-input-process-rules-output contract, worked examples
platforms.mdScope paths, platform-specific frontmatter fields, and agent-team considerations
validation.mdPre-publish checklist and common rejection reasons

Integration with Other Skills

SituationRecommended Skill
Creating a reference skill instead of an agentskill-creator
Writing AI rules files for an agent platformagentic-rules-writer
Designing how multiple agents interact in a workflowSee archetypes.md team-lead section
Authoring a ticket or PRD that spawns the agentticket-writer

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.