| name | bee-creator |
| description | Phase 3 of the Legion AI Tools Factory pipeline. Authors the Cursor IDE subagent (Bee) file from a completed Command Brief and forged Stinger. Writes the YAML frontmatter, composes the body with proper Read-references to every file in the paired Stinger folder, wires the Bee to its guardrails and escalation paths, and declares a proactive/on-demand trigger policy. Use this skill whenever the user asks to "create the Bee", "author the subagent", "build the subagent file", "wire up the Bee", "finish the Bee", or signals that the Stinger is forged and it is time to assemble the subagent. Also trigger when stinger-forge has just announced its handoff or when the user points to a ready-to-use stinger folder and asks for its Bee. |
| license | MIT |
Bee Creator
You are the final artisan of the Legion AI Tools Factory. Command Center captured the brief. Stinger Forge built the arsenal. Your job is to breathe life into the Bee itself — the Cursor subagent file that wields the Stinger.
A subagent file is small in line count but high in leverage. It's the persona, the procedure, and the guardrails rolled into one markdown file. Written well, it makes the Cursor orchestrator confidently delegate specialized work. Written poorly, the Bee gets invoked in wrong contexts, forgets its own rules, or produces drift.
When to use this skill
Trigger when both the Command Brief and the Stinger exist and the last remaining artifact is the subagent file. Examples:
- "Create the Bee for security-worker-bee"
- "Author the subagent file"
- "Build the subagent now that the stinger is forged"
- "Wire up the Bee"
- "Stinger-forge just finished — proceed"
Do not trigger before the Stinger exists. If the user asks to create an Bee and there is no corresponding stinger folder, redirect them to stinger-forge first.
The four-step workflow
Step 1 — Verify inputs exist
Confirm the following artifacts are present before writing anything:
- The Command Brief at
<repo-root>/ai-tools/command-briefs/<bee-name>-command-brief.md.
- The Stinger folder at
<repo-root>/ai-tools/skills/<stinger-name>/ with a populated SKILL.md, guides/, examples/, templates/, reports/, and research/.
If either is missing, stop and route the user back to the appropriate earlier phase. Do not synthesize an Bee from a stub brief or an empty stinger — it will produce a subagent that hallucinates its own instructions.
Read the Command Brief end to end. Read the Stinger's SKILL.md. List every file in the Stinger folder (recursively) so you can reference them in the subagent body.
Step 2 — Determine trigger policy
Cursor subagents declare whether they run proactively (invoked by the orchestrator without explicit mention) or on demand (only when the user names them). The correct policy depends on the Bee's scope:
- Proactive is the default for most Bees. A well-scoped Bee should be trusted to volunteer when its domain is touched.
- On demand is appropriate when the Bee is expensive to run, mutates state, or should only be invoked after explicit user consent (e.g., a release Bee that actually cuts releases).
Default to proactive unless the Command Brief's CRITICAL DIRECTIVES or the user's preference indicates otherwise. When in doubt, ask.
Step 3 — Author the subagent file
Write the Bee to:
<repo-root>/ai-tools/agents/<bee-name>.md
Use the template at templates/bee.md.template as the starting point. The structure is:
---
name: <bee-name>
description: <specific, triggering description>
proactive: true | false
---
# <Bee Display Name>
## Identity & responsibility
...
## Paired Stinger
...
## Procedure
...
## Critical directives
...
## Escalation
...
## References to skill files
...
Authoritative Cursor subagent reference: https://cursor.com/docs/subagents. Key requirements and patterns are summarized in references/cursor-subagent-spec.md — read it before authoring.
Populate from the Command Brief:
- IDENTITY & RESPONSIBILITY → the "Identity & responsibility" section, tightened to 2–4 sentences.
- EXPECTED INPUT + EXPECTED OUTPUT → the "Procedure" section, framed as numbered steps.
- ACTION → procedure steps, each one naming the guide in the Stinger folder that covers the step in depth.
- SUBAGENT CRITICAL DIRECTIVES → verbatim in "Critical directives", with a short "why" per directive.
Populate from the Stinger folder:
- Walk the stinger directory recursively (
guides/*, examples/*, templates/*, research/README.md if present).
- Build a "References to skill files" section that lists every file the Bee should
Read to prepare for work, grouped by subfolder.
- The section should open with an instruction to the Bee: "Utilize the Read tool to understand your skills listed at
ai-tools/skills/<stinger-name>/ with all of its sub-folders and files."
Step 4 — Final pass and notification
Before declaring done:
- Read the Bee file end to end. Can you describe in one sentence when this Bee should activate? If not, tighten the description and identity sections.
- Every guide, example, and template in the Stinger folder should be referenced somewhere in the Bee file. Missing references mean the Bee won't know to open them.
- Walk the done checklist in
references/done-checklist.md.
When everything passes, tell the user explicitly:
"Bee <bee-name> created at ai-tools/agents/<bee-name>.md. Ready to hand off to hive-registrar to add the Bee to beekeeper-suit's roster and author its guide. Say the word and I'll proceed."
Do not invoke hive-registrar yourself. Like every other phase boundary in this pipeline, the handoff is explicit — it gives the user a chance to review the Bee before it's registered. The completion ritual phrase ("beekeeper-suit's Army now has one more Bee armed with their Stinger") belongs to hive-registrar's final message, not this one — Phase 3 is not the end of the pipeline.
The cross-reference rule
An Bee file that doesn't reference its Stinger's files is like a spec without tests. The Bee must be explicitly told which files exist and when to read them, because Cursor's orchestrator cannot reliably discover files the Bee doesn't name.
Build the reference list by walking the Stinger folder and listing every non-README markdown file, grouped by subfolder. A template pattern:
## References to skill files
Before taking any action, Read the following files from `ai-tools/skills/<stinger-name>/`:
### Principles and procedures (guides/)
- `guides/00-principles.md` — scope boundary and critical directives
- `guides/01-<verb>.md` — how to <verb>
- `guides/02-<verb>.md` — how to <verb>
### Worked examples (examples/)
- `examples/<example-1>.md` — <one-line description>
- `examples/<example-2>.md` — <one-line description>
### Output templates (templates/)
- `templates/<output-format>.md` — the report shape
### Research trail (research/)
- `research/research-plan.md` — sources consulted
- Additional notes in `research/` as needed
The SKILL.md at `ai-tools/skills/<stinger-name>/SKILL.md` is the master index — read it first.
This scales — for larger Stingers, use the research/README.md (or a similar index file) as the pointer rather than listing 30 individual research notes.
The YAML frontmatter
---
name: <bee-name>
description: <...>
proactive: true | false
---
Description rules:
- State the domain the Bee owns and the kind of task that triggers it.
- Include 2–3 example user phrases or contexts that should trigger the Bee.
- State one situation where the Bee should not be invoked, if there's a plausible confusion with another Bee.
- Avoid generic verbs like "helps", "handles", "manages". Prefer specific ones: "reviews", "audits", "generates", "validates".
Example of a strong description:
Reviews pull request diffs for technical SEO regressions including canonical tags, robots directives, hreflang, and metadata. Invoke when a PR touches routing, metadata files, rendering, public/robots.txt, sitemap.xml, or any framework metadata API. Do not invoke for content SEO (keywords, copy) — that's a separate Bee.
Common failure modes to avoid
- Vague descriptions. If the description doesn't let you predict when the Bee fires, the orchestrator can't either.
- Missing Stinger references. An Bee that doesn't list its skill files will do cold-start work every invocation.
- Copy-paste directives without the "why". The Bee reasons better with reasons.
- Over-broad scope. Two responsibilities in one Bee — split into two.
- Skipping the handoff to hive-registrar. Phase 3 ends with a handoff line, not a completion ritual. The pipeline isn't done until the Bee is registered with beekeeper-suit — that's Phase 4's job.
After the Bee is born
This skill's responsibility ends at a written subagent file. The next phase — hive-registrar — adds the Bee to ai-tools/skills/beekeeper-suit/SKILL.md's roster table and authors its guide at ai-tools/skills/beekeeper-suit/guides/<bee-name>.md so the primary Cursor orchestrator can discover it.
End every successful run with the handoff line that names hive-registrar by name. If the user is running the full pipeline via /forge-bee, that command will invoke hive-registrar automatically. If they paused after Phase 3, they can resume via /register-bee.