wrap-up
Skill0 starsChanged 19 days agoMITView on GitHub
Bring the current Claude Code session to a clean stop so the user can /exit safely — inventory uncommitted and unpushed work, run the repo's checks, settle each loose change with the user (commit, WIP commit, leave, or discard with typed confirmation), list loose ends, propose next steps, and end with a summary block in the chat. Use for "/wrap-up", "wrap up", "wrap this up", "let's finish here", "close out the session", "get me to a point where I can exit", "is it safe to exit", "end of day".
- Deletes or force-pushes
72 other projects use a version of this.
Adopted by
Most recently taken up by
- HamedMP/matrix-ostheir own version, first seen Nov 30, 2026
- philippe-desplats/second-braintheir own version, first seen Nov 29, 2026
- Postmodum37/laimatheir own version, first seen Nov 29, 2026
- cortexa-consulting/aisletheir own version, first seen Nov 29, 2026
- thassung/skillstheir own version, first seen Nov 29, 2026
- codewithmukesh/dotnet-agent-kittheir own version, first seen Nov 29, 2026
Used with
Projects with it also use doctor, new-project and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkilldoctor
Diagnose an Amplifier CLI environment through the CLI doctor agent. USE WHEN a user requests CLI runtime, settings or missing-capability inspection. DO NOT USE for project bugs or other hosts.
Also in 6 projects that use this
zcagSkillnew-project
Guide users through creating a new software project from scratch — from raw idea to actionable tasks. Use this skill whenever someone says "new project", "start a project", "create a project", "scaffold a project", "I want to build X", "help me plan a project", "I have an idea for an app/tool/service", or mentions they're starting something new. Also trigger when someone asks for help with project planning, tech stack decisions, MVP scoping, feature planning, or figuring out what to build and how to break it down. When the user describes any project idea and wants to move forward on it, this skill should activate.
Also in 3 projects that use this
MicrosoftSkillmerge
Merge changes from the topic branch to the merge base branch. Use when the user wants to merge their session's work back to the base branch.
Also in 3 projects that use this
SentrySkillspec
Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.
Also in 6 projects that use this
austintgriffithSkillorchestration
Use when a Scaffold-ETH 2 build leaves localhost: planning the launch order, deploying and verifying contracts on a live network, standing up a fork of a real chain to rehearse a deploy, or fixing a contract bug that is already onchain. Not for running the app or a demo against that fork (`/frontend-playbook`).
Also in 3 projects that use this
nicolasestremSkillbrainstorm
Structured idea generation and solution exploration with systematic analysis.
Also in 6 projects that use this
- +2 more from microsoft
Other versions72 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 72
- rohitg00/pro-workflow★ 2.9ksame name
- anthropics/launch-your-agent★ 1ksame name
- codewithmukesh/dotnet-agent-kit★ 853same name
- codewithmukesh/dotnet-claude-kit★ 853same name
- ianlkl11234s/mini-taiwan-pulse★ 551same name
- aspi6246/Claude-Code-Skills-for-Academics★ 153same name
- PaulRBerg/agent-skills★ 108same name
- HamedMP/matrix-os★ 90same name
- KerberosClaw/kc_ai_skills★ 80same name
- jonathanmalkin/jules★ 65same name
62 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- browser-selectSkill
- claude-usageSkill
- diagram-styleSkill
- docs-sweepSkill
- mac-disk-cleanupSkill
- md-tocSkill
- pre-pr-reviewSkill
- session-exportSkill
- tracker-pageSkill
- whats-upSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 67 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Run this in the main conversation, never in a subagent: a subagent doesn't have the session's context, and that context is the whole point.
- Distinctive: line 17
Sending messages is out of scope: If a message is needed (a PR comment, a Slack note to the team), draft it in the summary for the user to …
- Distinctive: line 18
The repo's own rules win: If CLAUDE.md or AGENTS.md (repo or user level) sets wrap-up, pre-PR or commit rules, follow them as well.
- Distinctive: line 41
If the repo has no checks, or they take more than a few minutes, say so and skip them.
- Distinctive: line 50
Discard: Only after the confirmation in the safety rules.
- Distinctive: line 52
Use one multiple-choice question for all units where the tool allows it, rather than one round per file.
- Distinctive: line 59
Lessons: if the session taught something lasting (a gotcha, a project convention, a preference the user stated), propose it as a short diff …
- Distinctive: line 86
Use the timezone and time format the user prefers.
“Common” is measured: kept by at least 6 in 10 of the 67 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
wrap-up
Get the session to a point where /exit loses nothing the user cares about, and leave a summary in the chat that a later /whats-up (after claude --resume) can start from. Write no handoff file. The summary block at the end is the only record.
Run this in the main conversation, never in a subagent: a subagent doesn't have the session's context, and that context is the whole point.
Safety rules (these override everything below)
- Never discard work without a typed confirmation. Before any
git restore,git checkout -- …,git clean,git reset --hard, branch delete or file delete, list exactly what will be lost (files and line counts). Then wait for the user to type the worddiscard. "Yeah, get rid of it" is not enough. - No bare
git stash. The stash list is shared with other worktrees and other sessions. To set work aside, make a WIP commit:git commit -m "WIP: <what>". - No push, no PR, no
--force, no--no-verifyunless the user asks for that exact step in this wrap-up. "Wrap up" alone does not grant it. - Sending messages is out of scope. If a message is needed (a PR comment, a Slack note to the team), draft it in the summary for the user to send.
- The repo's own rules win. If
CLAUDE.mdorAGENTS.md(repo or user level) sets wrap-up, pre-PR or commit rules, follow them as well. Examples: a docs sweep, a changelog entry, a commit-message format.
1. Inventory (read only)
For each repo this session worked in:
git status --short --branch
git diff --stat # unstaged changes
git diff --cached --stat # staged changes
git log --oneline @{u}.. 2>/dev/null # unpushed (no upstream: compare with the base branch)
git worktree list # other worktrees with changes?Also check:
- Background work: background tasks, subagents, or dev servers and watchers this session started.
- TODOs added this session:
git diff -U0 <session start or base> | grep -nE '^\+.*\b(TODO|FIXME|XXX)\b'. - Scratch files this session created inside the repo that aren't meant to stay.
2. Checks
Run the repo's own fast checks on the working tree: tests, lint and type check, whichever the repo has (look at CLAUDE.md, the README, Makefile, package.json, pyproject.toml or CI config). Report failures before offering any commit. A commit that knowingly includes a failure has to say so in its message, and only if the user chooses that. Never call a failure "flaky" without evidence.
If the repo has no checks, or they take more than a few minutes, say so and skip them.
3. Settle each loose change
Group the uncommitted changes into logical units, such as one feature or one doc fix. For each unit, show the files and a one-line description, then ask which of these the user wants:
- Commit. You propose a message in the repo's style (read
git log --oneline -10). - WIP commit. Unfinished work, kept safe with a message starting
WIP:. - Leave as is. It stays uncommitted. The summary says so.
- Discard. Only after the confirmation in the safety rules.
Use one multiple-choice question for all units where the tool allows it, rather than one round per file. Then deal with:
- Unpushed commits: say they exist and offer to push. Push only after a yes.
- Background work: for each item, offer to stop it or leave it running. Say what leaving it means (for example, "the dev server on :3000 keeps running after you exit").
- Other worktrees with changes: report them. Don't touch them.
4. Lessons and next steps (offer, don't write)
- Lessons: if the session taught something lasting (a gotcha, a project convention, a preference the user stated), propose it as a short diff to the right memory file or
CLAUDE.md. Apply it only on a yes. Lasting facts belong there, not in the summary. - Next steps: list them in order. If a task or todo skill is installed, offer to file them there, one yes per item. Never file them unasked.
- Session name: suggest a 3–6 word name for
/rename. Only the user can run it.
5. Summary block
Finish with this block and nothing after it. Keep it short, because a later /whats-up or the user scrolling back reads it.
## Wrap-up — <goal in a few words> · <date and time>
**Verdict:** ✅ Safe to /exit | ⚠️ Safe to /exit, but <what stays loose> | ⛔ Not yet: <why>
**Shipped:** <commits with short SHAs, PRs, files made>, or "nothing committed"
**Stuck / dropped:** <what failed and why>, or "none"
**Left as is:** <uncommitted files, unpushed commits, processes still running>, or "nothing"
**Decided:** <decisions this session made>
**Open:** <questions still open>
**Next session, start here**
1. <first action, with the file or command>
2. <…>
Resume: `claude --resume <session id or name>` · suggested `/rename <name>`- ✅ only when the working tree is clean (or every leftover is one the user chose to leave), checks passed or were skipped on purpose, and nothing runs that the user didn't choose to keep.
- Use the timezone and time format the user prefers.
- The session id is the folder above your scratchpad (
…/<session-id>/scratchpad), or the newest*.jsonlin~/.claude/projects/<cwd with non-alphanumerics as '-'>/. If you can't tell, writeclaude --resume(it shows a picker).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

