This skill wraps up a session by coordinating code and docs updates, git operations, and roadmap planning across repo types.
npx playbooks add skill vishalsachdev/claude-skills --skill wrap-up-session
Wrap up a work session. Execute these steps directly (do NOT spawn a subagent — you have the session context, a subagent does not).
Check CLAUDE.md for ## Session Wrap-up, ## Deployment, or similar sections. If the project has specific wrap-up steps (sync commands, restart commands, deploy scripts), note them — you'll run them in Step 4.
git status --short
git diff --stat
git log --oneline -5
If there are uncommitted changes, ask the user what to do:
git stash push -m "WIP: [description]" — for work-in-progress not ready to commit. /start-session will surface this next time.Push: After committing, push to the remote branch. Ask the user if unsure which branch.
Update roadmap sections — skip if CLAUDE.md lacks these sections:
## Session Log — Keep only the 1 most recent entry in CLAUDE.md. Replace (don't append) the existing session log content with today's entry:
### YYYY-MM-DD
- Completed: [infer from git commits + conversation context]
- Next: [ask user if unclear]
Move any older entries to docs/session-archive.md. Create the archive file if it doesn't exist. claude-mem already stores full session history — the session log exists only so /start-session can show "last time + next steps."
## Roadmap — Check off completed items (- [ ] → - [x]). Infer completions from commits made during the session.
## Current Focus — Update to the next incomplete roadmap item, or ask the user.
Commit and push the CLAUDE.md update.
Before writing anything to auto memory (~/.claude/projects/*/memory/), check:
If you spot existing auto memory files that duplicate CLAUDE.md content, note them in the session summary so the user can clean up (or run node ~/.claude/scripts/memory-audit.js).
Ask the user a single question: "Any surprising or non-obvious learnings from this session worth lifting into memory?"
~/.claude/scripts/spaced-rep.sh add "Title" "1-3 sentence reminder". Check spaced-rep.sh list first to avoid duplicates./promote-memory — that skill mines claude-mem for recurring patterns, "searched twice" items, and cross-project themes. This step only handles fresh learnings from the current session.Keep this lightweight — don't query claude-mem here. Most sessions will answer "no" and that's fine.
If the repo uses git worktrees (git worktree list 2>/dev/null shows more than one entry), run a hygiene pass per the worktree-pr skill:
herdr agent list for live agents whose cwd is inside one).gh pr view <branch> --json state), remove the worktree and delete the branch (local + remote) — the "Finish" steps in worktree-pr.git fetch --prune, then delete local branches whose PRs merged.main (git rev-list --count <branch>..origin/main); recommend a rebase if behind and its files overlap recent merges.Flag any background processes started during this session (nohup jobs, pm2 processes, screen sessions, drip campaigns, dev servers). Note any that are still running so the user knows what's active after the session ends.
For @code projects that are user-facing (deployed to Vercel/Cloudflare/VPS, real users can hit them), check whether Sentry is wired up:
grep -q '"@sentry' package.json 2>/dev/null && echo "sentry: yes" || echo "sentry: no"
If absent and the project is user-facing, mention it once in the session summary — don't nag every session. Phrase as: "This project doesn't have Sentry; setup runbook at ~/admin/agent-infra/sentry-setup.md if you want errors visible without SQL forensics."
Skip for: local-only tools, CLI scripts, scratch projects, anything not deployed publicly. Skip for non-@code repos entirely.
Run whatever sync or deploy commands are documented in the project's CLAUDE.md (found in Step 0). Common examples: rsync to VPS, deploy scripts, pm2 restart. If nothing is documented, skip this step.
If the repo has a GitHub remote and gh is available, list what's still open so the next session (and the ## Session Log "Next:" line) reflects it:
git remote get-url origin 2>/dev/null | grep -q github.com && gh auth status >/dev/null 2>&1 && {
echo "=== OPEN ISSUES ==="; gh issue list --state open --limit 30
echo "=== OPEN PRs ==="; gh pr list --state open --limit 30
}
## Session Log "Next:" line so /start-session resurfaces them.gh isn't authenticated.Provide a brief summary: what was done, what's next, any background processes still running, any uncommitted carry-forward files.
Generate a concise session title (3-8 words) that captures the main accomplishment. Format: [verb] [what] (e.g., "Deploy Copilot Studio channel", "Fix timezone bug in cron", "Build document extraction pipeline").
IMPORTANT: /rename is a built-in CLI command that only the user can execute — you cannot invoke it. Output the suggested title and ask the user to run it:
Suggested session name: **<title>**
Run: `/rename <title>`
Check CLAUDE.md for type: declaration or infer from contents.
/start-session which reads these same roadmap sectionsWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.