/sunstack:hirefrom sunstack
Add an agent to this project's Sunstack team from a short description, after checking whether an existing agent, another session of it, or a small role change covers the work, by hiring from a template, copying a teammate's role, or drafting a new role for the user to approve. Use for "sunstack hire", "/sunstack:hire", "recruit an agent", "hire a Sunstack agent that ...", "add another researcher". Offers sunstack init when there is no team.
Ships in sunstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Command: sunstack hire (also library). Skill: /sunstack:hire in Claude Code, $sunstack:hire in Codex.
Turn the user's description into a new agent. A new agent's AGENT.md is its prompt, so the
user approves it before it exists.
Every agent's ID is <title>.<name>: the title is the role (researcher), the name is this
one agent (macro). A role can have many agents, each with its own prompt copy, pillars and
context.
sunstack command on its own, with nothing chained after it.pm agent; none: ask the user), as <team>/<id> or <host>:<team>/<id>,
and stop. Hiring, firing, spawning, dismissing or directing in a different team yourself
needs the user's explicit yes first.sunstack is not found, tell the user to install it
(curl -fsSL https://raw.githubusercontent.com/Lucklyric/sunstack/main/install.sh | sh,
then sunstack install) and stop. If there is no team here (no sunstack/PROTOCOL.md in this folder or above), offer sunstack init
(it sets up the current folder).sunstack library
sunstack team
sunstack hr
Run this whenever a hire comes up: the user asked for one, or you or another skill think one
is needed. It is not a routine team review (that is the hr skill). An agent can run several
sessions at once, each on its own task, kept apart on its board by
(by: <session>@<host>). So hire last. Read the candidate's own AGENT.md and pillars, not
only its line in sunstack team, before you judge:
AGENT.md lines that would
extend it, instead of a new agent. Run sunstack snapshot "<id>" AGENT.md, write the whole
file with its frontmatter unchanged as a new file directly in the candidate_dir it prints,
show its ID and the exact before and after, and on the user's yes
run sunstack amend "<id>" AGENT.md "<candidate>" "<checksum>" --summary "<one line>" with
that unchanged candidate. On a mismatch, snapshot again and show the change again. Do not
work as that agent for this. Then send its live sessions an fyi with --nudge to reread it (send
skill; this approval covers it), and stop here.While you look, name agents that seem no longer needed as candidates for the fire skill: no board entries and no sessions for weeks, or a role another agent covers with the same pillars and no need to stay independent (a verifier and the builder it checks stay apart). Never fire here. Show this judgment to the user before step 2; go on only if they still want a new agent.
You need four things: the role (what the agent is for), a name for this agent, how it works (what it must and must not do), and what it should remember in this project. Take what the user already said; ask only for what is missing or too vague to write down.
macro, equities, swing), not people's names unless the user wants.
Never suggest a CLI name (codex, claude): any agent can run in either CLI. If the user
picks one, say so once and offer a name for its work instead; sunstack hire prints the
same note.sunstack team lists it): another
session of that agent comes first (step 1). Propose another agent of the same role only when
the user wants it kept apart. sunstack hire <title> <name> copies the role from a
template if one exists, otherwise from that colleague (--from <id> picks which one). Show
the AGENT.md it will copy and the new ID, and ask (approve / draft a different role /
cancel).sunstack library): propose it, show it
(sunstack library show "<title>") with the new ID, and ask the same way.Only after an explicit approve, go to step 5.
Pick a title ([a-z][a-z0-9-], 2 to 32 characters, not review, not starting with _).
Write the draft to a new file for this hire only, for example
sunstack/_local/tmp/_recruit/<title>-<time>.md, in English and in this shape:
---
title: <title>
---
## Role
<one line: what this agent is for>
## How I work
- <how it works, what it must and must not do>
## Context policy
Remember:
- <what it should remember in this project>
Do not record:
- <what it should not record>
Keep it short and specific to what the user described. Only title goes in the frontmatter;
sunstack hire adds name, hired and from.
Show the whole draft and the ID <title>.<name>. Options: approve / edit / cancel. Then end
your turn and wait. On edit, write a new draft file and show it again. A description from the
user is not approval of your draft, and the command's own permission prompt is not enough on
its own: Codex may route it to an automatic reviewer.
sunstack hire "<title>" "<name>" --file "<the draft file you showed>"
Leave out --file when hiring from a template or a colleague (add --from "<id>" if the user
chose a specific colleague). Use exactly the file the user approved, unchanged; a draft under
sunstack/_local/tmp/ is deleted once it is hired. Claude Code and Codex may also ask for
approval of the command itself; that prompt is expected.
/sunstack:as <id> in Claude
Code, $sunstack:as <id> in Codex).missing_arguments: name: ask for a name.exists: the ID is taken; propose another name.For a reviewer, suggest the CLI opposite to the builders' (tool: codex when they work in
Claude Code, and the other way round), so reviews come from a different model. On yes, the
line goes into the new AGENT.md frontmatter before step 5 creates it, or through the save
skill's approval step afterwards. spawn then starts that agent on its own tool.
Suggest one to three first key results for the new agent, each tagged with a team objective
from sunstack board. They are written by the agent's first session (/sunstack:as <id>,
then save), not by you.
If the user also wants rules only for this agent, propose them as pillars and follow the save
skill's approval step (sunstack amend "<id>" pillars.md ...).
For a new role, ask whether to keep it as a personal template for other projects. On yes:
sunstack library save "<id>"
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lucklyric/sunstack --plugin sunstack21 skills in this plugin
/asTake on a Sunstack agent identity (for example builder.alice) in this project, alone or alongside sessions already working as it, or recover the identity this session already holds. Use for "sunstack as", "/sunstack:as", "take on the builder agent", "which Sunstack agent should I be", "sunstack whoami", "which agent am I", or after compaction or /clear lost the session state. Only in projects with a Sunstack team (sunstack/PROTOCOL.md)./boardShow and align the Sunstack team's objectives and key results across the user and every agent, with dependencies, stale or overdue entries and unfollowed directives. Use for "sunstack board", "/sunstack:board", "the team's OKRs", "the team's dependencies", "align the team". Not the ranked to-do list (next skill)./Other plugins' skills for the same job