/sunstack:asfrom sunstack
Take 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).
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 as (also whoami, doing). Skill: /sunstack:as in Claude Code, $sunstack:as in Codex.
Claim a Sunstack agent ID for this session and load its identity. Several sessions may work
as the same agent, like one person on several tasks; each has its own claim and token. The
sunstack command does the claiming; you decide what to ask the user and how to act after.
sunstack/PROTOCOL.md in this folder or above), say so in one line and stop; the health skill sets one up.sunstack command on its own, with nothing chained after it (no ; echo ...),
so the user's permission rule for sunstack matches. The tool reports the exit code.sunstack issue "<what happened, at which step>", never message or brief text. Failed commands are already recorded.sunstack is not found, tell the user to install it and stop:
curl -fsSL https://raw.githubusercontent.com/Lucklyric/sunstack/main/install.sh | sh,
then sunstack install.If the user named an ID or a title, use it. If not (a bare /sunstack:as, "be whoever fits",
"take on an agent"), run sunstack as with no argument: it exits 2 and lists every agent as
<id> <free|active:N> <role line>. Then choose from the conversation:
This is a question, not a decision: end your turn and wait for the choice.
Give this session a short label for what it will work on: lowercase letters, digits and -,
at most 20 characters (auth, kr2-tests, docs). Take it from the user's request; if
there is nothing to go on, leave it out. The session is then named <id>_<task>, and titled
<project>/<id>:<task> so it reads the same in any list.
When the session later moves to different work (a new task taken from the inbox, the user
switching topic), give it a label for that work: sunstack name <new-label>. Pass the
/rename <title> step it prints on to the user, in one line; only they can retitle this
session in its CLI.
sunstack as "<id-or-title>" --task "<task>"
Run it from the project directory, or add --root "<dir>". Add --token "<t>" only to resume
a claim this session already holds: after compaction when the token is still in the
conversation, or when this session was started by sunstack spawn and its first prompt gave
the token.
verified: line records. Read all of it: protocol, team pillars, the team
BOARD.md, AGENT.md, agent pillars, your board.md, context, threads, inbox. From now on
act as this agent, within the pillars and toward the objectives. Keep the session state
values (root, id, token, task) in the conversation; every later save or release needs them.
If protocol is not 2, tell the user to run sunstack update.
Then, in this order:
rename
block, this session's title in Claude Code or Codex differs from the one Sunstack gives
it: pass its /rename step on to the user in one line, since you cannot rename the
session yourself. With no rename block, say nothing about naming.aligned:). If a directive conflicts with a pillar or another directive, ask.## Proposals, tell the user how many and offer
to review them now with the save skill's approval step.migration section, the team was made by an older
Sunstack. The done: lines already ran; tell the user which files changed so they commit
them. For needs the user's OK: lines, ask once (apply / later); on apply run the command
given there, then show the git diff.sunstack doing --root "<root>" "<id>" "<what, in under 120 characters>" --token "<token>".missing_arguments: the first line names what is missing and the rest are the
choices (for a title with several agents, only that title's). Rank them as in "Pick the
agent" and ask the user: with AskUserQuestion if you have it, otherwise as numbered options
in the conversation, and wait for the reply. Then run the command again with the answer. No
answer, a cancel, or the user moving on is not a choice: stop.usage: show the error (for example a task label that is too long), then fix the
arguments or ask the user. Do not loop.active: other sessions are working as this agent; the output lists them with their
tasks. Ask the user: join them as another session, or pick another agent. On join, rerun
with --join.task_taken: another session of this agent already uses that task label; pick a
different --task (ask the user if unsure) and rerun.occupied_same_pane: this same tmux pane holds a claim, most likely this session
before compaction or /clear. Tell the user in one line and ask for a quick yes. On yes,
rerun with --takeover --expect "<claim>", using the claim= value from the output.occupied after a takeover: the claim you tried to replace is gone or changed. Show
the current claim lines and ask again.token: the token you passed is no longer valid (released or taken over). Do not retry
with a guessed token; tell the user and ask whether to claim again.empty_team: nobody is hired yet; offer the hire skill.sunstack/ folder). Do not
work around it.Take over another session's claim (--takeover --expect) only when the user confirms that
session is gone, for example its pane closed. Never invent, guess, or reuse a token you did not
get from sunstack as in this session.
When the session state (root, id, token) is lost, after compaction or /clear, or the user
asks which agent this session is:
sunstack whoami
Add --root <dir> if the project is not the current folder. Run it on its own.
session state. Keep it in the conversation; save,
check and release need it. To reload the identity files, rerun sunstack as with that id and
--token; it resumes the claim and makes no new one. If it says the tmux pane matched a
different CLI session (for example before /clear), confirm with the user in one line first.not_found: this session holds no identity here. Say so; offer to take one on.no_root: no Sunstack team in this folder or above.Never guess or invent a token.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lucklyric/sunstack --plugin sunstack21 skills in this plugin
/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)./checkHandle the Sunstack messages waiting for this session: read, take, act, reply and ack. Use when a prompt starts with "/sunstack:check" or "$sunstack:check", when a Sunstack hook says messages wait, or for "sunstack check". Only when Sunstack is installed./cleanClose the Sunstack team's unused sessions and leftover panes in one go (agent and free sessions at their prompt over 24h with nothing unfinished, spawned sessions that released their agent, panes whose Claude or Codex exited, and claims whose pane is closed), after one confirmation. Use for "sunstack clean", "/sunstack:clean", "clean up", "clean up sessions", "clean up panes", "close idle sessions", "close unused sessions", "close finished sessions", "close exited panes", "too many sessions", "sunstack kill --idle". Closing one named session is the spawn skill. Only in projects with a Sunstack team (sunstack/PROTOCOL.md).Other plugins' skills for the same job