Create a subagent
Declare a subagent under `metadata.subagents`: the five fields read at runtime — `name`, `description`, `system_prompt`, `skills`, `prompt_stack` — what each one changes, and how to call it from the SKILL.md body.
In brief
A subagent is declared under metadata.subagents in the SKILL.md frontmatter, with five fields: name, description, system_prompt, skills, and prompt_stack. The skill body then calls it by its name, at the step where it comes in.
What a subagent buys and what it costs is covered elsewhere: Understanding subagents. This page documents the format — where the declaration lives, which fields are read, and what each one changes at runtime.
Where a subagent is declared
Under metadata.subagents, in the SKILL.md frontmatter, one list entry per subagent.
metadata:
subagents:
- name: researcher
description: "…"
system_prompt: |
…`subagents` must stay under `metadata`
The rest of the frontmatter is read by an in-house flat parser, which accepts a field written at the root or under metadata: indifferently. subagents is the exception: its nested structure is re-read by a real YAML parser, which looks for it under metadata: and nowhere else.
Entry order matters in one case only: for a private skill, the first declared subagent is the carrier — the one that receives the SKILL.md body as its system prompt, and the only route to the skill. Everywhere else, order is free.
The fields
| Field | Type | What it changes at runtime |
|---|---|---|
name | string | The name the main agent delegates under. It is the name the SKILL.md body cites at the relevant step (researcher, reviewer). Required. |
description | string | When and why to delegate to this subagent. This is what the main agent reads to decide whether to call it: a vague description yields a delegation that never happens, or happens at the wrong moment. Required. |
system_prompt | string | The subagent's mission, appended after the prompt stack (see prompt_stack). Written as a YAML block (`system_prompt: |
skills | list | The skills this subagent may load to do its job ([copy-editing, humanizer]), named by their folder. Optional: without this field, the subagent loads none. |
prompt_stack | string | The prompt stack applied before the mission. Optional: without this field — or with an unknown value — subagent_default applies. |
These five fields are the ones Brume reads; any other field written in an entry is silently ignored.
Tool inheritance is not a field
A subagent declared in a SKILL.md always inherits the main agent's tooling — what that tooling contains is not adjustable from the frontmatter. Only skill-editor and development, mounted by the product, start from their own tooling.
prompt_stack and its fallback
The system_prompt you write is not the subagent's entire prompt: Brume first composes a stack of shared layers — behavior, safety, tone, files — then appends your mission to it. prompt_stack picks which one.
The default value is subagent_default, and it is also the fallback when the value is unknown: a misspelled prompt_stack does not fail the load, it silently falls back to the default stack. So do not count on an error to flag the typo.
The available stacks live in the code and may evolve; this page does not freeze them. With no specific need, omit the field.
What makes a good system_prompt
The subagent does not see the conversation. Everything it needs fits in its mission, and a prompt that says neither how to work nor what to return produces a result the main agent cannot use.
So name three things:
- The mission: what the subagent receives and what it must produce. "You are an expert editorial researcher. You receive an article topic."
- The method: the steps, in order, with their count when it matters. "Run 3-5 targeted web searches: 1. … 2. … 3. …"
- The output format: the exact structure of the expected report, section by section. This is what the main agent will receive, and therefore what it will build on.
Hollow `system_prompt`
A subagent whose system_prompt specifies neither method nor output format yields an unusable result. Detail the steps and the structure of the expected report, as researcher does in the example below.
Complete example
The system skill blog-writing declares two subagents, one per stage of its process:
metadata:
version: 1.0.0
subagents:
- name: researcher # first subagent: editorial research
description: "Deep web research on the article topic: data, sources,
competitor angles, common questions. Use before structuring."
system_prompt: | # the subagent's full prompt (YAML block)
You are an expert editorial researcher. You receive an article topic.
Run 3-5 targeted web searches:
1. Competing articles already ranking for this topic
2. Common questions (People Also Ask, forums)
3. Recent data/stats on the topic
Synthesize your findings into a structured report.
- name: reviewer # second subagent: review
description: "Reviews the article with fresh eyes: editorial charter,
humanizer, on-page SEO, readability."
system_prompt: |
You are an editorial reviewer. Run three passes, in order:
1. Editorial charter (tone, voice, vocabulary, style)
2. Humanizer (AI patterns, banned phrases)
3. On-page SEO (title, meta, H2/H3, internal links)
skills: # skills this subagent may load
- copy-editing
- humanizerNeither declares prompt_stack, so both run on subagent_default.
Calling the subagent from the body
Declaring a subagent does not put it to work. The Markdown body of the SKILL.md is what mobilizes it, by naming it at its step:
## 2. Research
Delegate to the `researcher` subagent. Wait for its report before proposing an outline.The body of blog-writing runs its process this way — brand context, brief, research delegated to researcher, validated outline, writing, review delegated to reviewer, delivery — each subagent called by name where it comes in.
A multi-stage process thus entrusts each stage to a dedicated agent, with its own instructions and its own skills.
Going further
Understanding subagents
What the separate context buys, what it costs, and the three built-in subagents.
Create a skill
The complete SKILL.md format, field by field, then upload and activation.
A private skill
The carrier subagent: the skill body becomes its system prompt.
Skill examples
Four complete, commented SKILL.md files to copy and adapt.
Understanding subagents
What a subagent buys you — a separate context, a fresh pair of eyes, a side task where only the deliverable matters — and the three subagents mounted in every workspace by default.
Create a skill
The complete format of a SKILL.md, field by field: frontmatter, trigger description, reference files, then filing and activation by workspace.