/sunstack:wrapfrom sunstack
Before a compaction, /clear or the end of a session, write this session's progress back into the project's docs and leave a resume note, so the next session (or this one after compacting) gets the latest state back in a minute. Works in any Claude Code or Codex session, with or without a Sunstack team. Use for "sunstack wrap", "/sunstack:wrap", "wrap up before compacting", "before I compact", "prepare for compaction", "we are about to compact", "update the docs before compact", "save everything before compacting", "压缩前", "compact 之前更新文档". Not the save skill, which saves one Sunstack agent's board and context (wrap runs it when the session holds an agent).
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.
Skill only: /sunstack:wrap in Claude Code, $sunstack:wrap in Codex. It runs sunstack pickup.
Run it on purpose before /compact or /clear: a hook fires only once compaction has started,
too late for this. After the compaction, the SessionStart hook says a wrap note exists, and
sunstack pickup (or the pickup skill) prints it with the current state.
sunstack command on its own, with nothing chained after it.## Expected results section (verify skill).pickup command (an older binary): use sunstack checkpoint, its name in v0.19.9.
If that fails too, do steps 1 to 4 from git and the conversation,
then show the wrap note in the conversation instead of saving it, and say so.Do the pickup skill's step 1 (sunstack pickup and the reading). List what this
session did and left open: changes and commits, decisions, findings, open items with their next
step, background jobs and their output files, questions waiting on the user.
Without guessing:
AGENTS.md or CLAUDE.md names;An item with no home stays only in the wrap note.
Show a list of item → file (what will be written where), and ask: proceed / edit / cancel.
Update each file in its own style. Each open item says where it stands and the next step, so a fresh session can continue from the file alone. When the session holds an agent, run the save skill for its part.
Write the note to a file in this session's scratch or temporary folder, then:
sunstack pickup --save "<note file>"
It stores the note for this folder and session (host-local, replacing the last one) and stamps it with the time and each repo's commit. Keep it short:
Exit 2 no_session: this CLI gave no session ID. Show the note in the conversation instead.
One line per file updated, the note's path, what is left to commit, and: "Ready to compact.
After it, run sunstack pickup (or the pickup skill)."
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