/sunstack:healthfrom sunstack
Check this project's Sunstack setup and health, set it up or migrate it, and fix what is off (install, cleanup, pending rule changes). Use for "sunstack health", "/sunstack:health", "sunstack checkup", "set up sunstack", "migrate sunstack", "upgrade sunstack", "update sunstack", or whether Sunstack works. Not for what to work on next (next skill).
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 health (also init, update, migrate, rename). Skill: /sunstack:health in Claude Code, $sunstack:health in Codex.
Find out where this project stands and walk the user through the next steps, one at a time.
sunstack command on its own, with nothing chained after it, from the folder the
user is working in. Sunstack uses the current folder, never the git repository root.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.When the user asks only to upgrade or update Sunstack, skip the full health pass:
sunstack update. It updates the CLI and the Claude Code and Codex rules, and runs the
[auto] steps. The user may need to run it in a terminal.sunstack migrate --host lists the [ask ] steps for every team on this machine. Show
them; on yes run sunstack migrate --host --apply all, then show git diff --stat of the
changed sunstack/ folders.sunstack health and show that no migrate lines are left. Suggest committing the
changed files and reloading the session to pick up the new skills.Each other machine of the user (sunstack org --by host lists them) runs the same steps there.
sunstack health
Exit 1 only means a check failed; read the output either way. sunstack version gives the CLI
and protocol versions if the user asks. If there is a project, also run:
sunstack team
Give the user a short summary: whether there is a project here, who is on the team and who is
claimed, and the fail and warn checks that health printed with their fixes, failures
first. Add one line of plain explanation per step where the fix text is not
self-explanatory. Then add the session fit (step 3). If no check failed or warned and the
session fit has nothing to suggest, say so and stop.
Suggest what this session should be, from what the user has been doing in this conversation
(the files, the task, the questions so far) and each agent's role in sunstack team:
session state block from sunstack as is in the
conversation): say which, and whether the current work still fits its role. If it does not,
suggest the agent that fits (save and release first, then take it on)./sunstack:as <id> (Codex: $sunstack:as <id>),
with one line on why.sunstack team shows them and their
task labels) and suggest joining it for a different key result: one agent runs several
sessions at once.Setup and migration come first, here. For the team's work beyond setup (asks, blocked work, board drift, idle sessions and exited panes), hand over to the next skill, which ranks everything in one list. Closing idle sessions is the clean skill.
Offer the first step, or let the user pick one (options: do it / skip / stop). Do one step per
answer, then run sunstack health again and offer the next.
Migration first. Checks in the migrate area mean the project, or the install, was set up
by an older Sunstack. Group them as one "migrate to this version" step: list each change, then
do them in this order, one approval for the batch unless a change needs its own input:
sunstack update when the Claude Code or Codex rules are from an older version (the user
may need to run it in a terminal; the rest continues after).sunstack migrate shows what this team needs, each step marked [auto] (only adds files:
TEAM, BOARD.md, the .gitignore line, the host index) or [ask ] (rewrites files the
agents read: PROTOCOL.md, README.md, the AGENTS.md block). update and as already
run the [auto] steps. Show the [ask ] steps; on yes run sunstack migrate --apply all,
then show git diff of sunstack/ and AGENTS.md. For every team on this machine at once:
sunstack migrate --host (add --scan <folder> to find teams not indexed yet).board.md: sunstack tidy --all creates them. Tell the user that each
agent fills its board at its next save, and that the team objectives come from the user
(the board skill helps set them). Older context.md files may still have Current state
and Threads sections; the agent moves that content to its board at its next save.<title>.<name>. For each one, suggest a name from its
role and context (researcher → researcher.lead), ask the user to confirm or type their
own, then sunstack rename <id> <title>.<name>. A claimed agent must be released first;
skip it and say so.sunstack health again and show that the migrate lines are gone; suggest committing
sunstack/.Old IDs keep working until they are renamed, so the user may skip migration.
How to do each kind of step:
pwd): sunstack init creates sunstack/,
an AGENTS.md block and a .gitignore line right here. On yes, run sunstack init.sunstack init --refresh, then show the
git diff of what changed.sunstack init adds it. It gives the
team one ID on every host; commit it.sunstack install or sunstack update, as health
says. They may ask their own questions in the terminal; if so, give the user the command to
run themselves.ls -la), then remove only that path on yes. Never remove a lock
while a sunstack command may be running.sunstack release <id_task> --stale first, which drops
claims whose tmux pane is confirmed closed. Otherwise offer /sunstack:as <id> (Codex:
$sunstack:as <id>) with takeover, or leave it.git status --short sunstack/ and the diff;
commit only if the user asks.sunstack library, ask what the user needs, then follow the
hire skill (/sunstack:hire, Codex: $sunstack:hire)./sunstack:as <id>, Codex: $sunstack:as <id>); its save step asks about each proposal.When the user wants a live view instead, point them to sunstack tui in a terminal. For every
team and session on this machine, hand over to the org skill.
Only if the user asks to remove Sunstack from Claude Code or Codex: sunstack uninstall
removes the plugin and its permission rules (it asks in the terminal, or needs --yes). It
leaves every sunstack/ folder alone.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
21 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)./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)./directGive the Sunstack team, a role or an agent a dated directive from the user (a priority, focus or constraint), or pause the team (halt). Use for "sunstack direct", "/sunstack:direct", "from now on every agent should ...", "pause the team". One piece of work for one agent goes through the send skill./driveHand a prompt to another Claude Code or Codex session in a tmux pane, wait for its turn to end and read its reply: a co-worker session beside this one that the user can watch. Works in any session, with or without a Sunstack team. Use whenever the user names Codex as the one to do something, whatever the verb ("use codex", "using codex", "ask codex", "run codex", "call codex", "have codex review this", "let codex fix it", "tell codex", "get codex to", "delegate this to codex", "with codex", "via codex", "codex cli", a prompt that starts with "codex," or a bare "codex review my changes", "have codex review this PR, branch or diff", "continue with codex", "resume the codex session"), asks to hand work to the OpenAI or GPT reasoning model ("have GPT review this", "ask the high-reasoning model"), or asks for a second Claude Code as a co-worker ("spawn a claude pane", "a second claude", "another claude for this", "a claude worker beside you", "drive claude in a pane", "have claude review it in its pane", a claude implementer with a codex reviewer). Also for "sunstack drive", "/sunstack:drive", "drive a session", "send a prompt to that pane and wait", sending prompts to several co-worker panes in parallel, and telling whether a driven session is idle, busy or blocked. Not for a session that works as a Sunstack agent (that is the send skill), not when Codex or Claude is only the topic, and not when "claude" means this session itself.npx claudepluginhub lucklyric/sunstack --plugin sunstack