flurdy/agent-skills/wrap-up
Claude Code and agent skill by flurdy/agent-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Summarise session activity, artifact-hygiene coverage, and working-copy risks, then save a resume handoff. Reports tracker/settings drift without repairing it; new files auto-save, overwrites need confirmation. Run before leaving the client.
Install
npx vskill@latest install flurdy/agent-skills/wrap-upSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as flurdy/agent-skills/wrap-up.
Wrap-up — End-of-session handoff
Produce a tidy end-of-day snapshot so the next session can resume from a paste, even if this one was mostly admin/planning and the worktree is about to be discarded. Pair with /landscape (which orients at the start of a session) — /wrap-up is its bookend.
When to use
- Before ending the current client session, especially in worktree sessions.
- After a planning- or discussion-only session that produced no code but valuable context (Jira refinement, bead triage, design exchanges).
- Before pruning a worktree where you might otherwise lose the thread.
What it does
- Activity roundup for today (commits, PRs created/merged, beads closed).
- Working-copy hygiene — flag uncommitted, unpushed, worktree-only state, and artifact-hygiene risks.
- Settings/tracker drift — report risks and name their separate review workflow; do not repair them.
- Paste-ready Resume block capturing topic, decisions, open threads, and where to pick up.
- Atomically save and read-back verify the resume block at
~/.agents/handoffs/YYYY-MM-DD-{slug}.md; prompt only on collision/overwrite or when choosing a different name. - Optionally point to
/handoffs-tidyfor a separately requested archive review; do not invoke it. - Reminder to leave the client manually with its own command — the skill cannot exit for you.
Important — client-specific commands
Follow /name-session's client-selection convention. Read name-session for detection only; do not invoke its scope lookup during wrap-up.
- Pi: use
/quit. Never recommend/exitin Pi. - Claude Code: use
/exit. - Unknown client: label both commands — Pi:
/quit; Claude Code:/exit— rather than guessing.
The skill cannot execute either client's built-in exit command. After the summary renders, the user exits manually.
It also cannot rename the session for you. Only you typing the command triggers a rename. Step 4 prints /name {slug} for Pi or /rename {slug} for Claude Code, but the handoff file remains the durable artifact you grep for tomorrow.
Instructions
MUST re-fetch on every invocation. Each run executes the helper scripts from scratch. Never reuse output from a prior run; state has changed since.MUST use the dedicated helper scripts. Never construct ad-hocgit/gh/bdpipelines inline — those bypass the per-script permission allowlist and produce noisy permission prompts. Specifically: §0 must go through~/.agents/skills/wrap-up/scripts/header.sh, §1 must go through~/.agents/skills/wrap-up/scripts/activity.sh, §3 must go through~/.agents/skills/landscape/scripts/working-copy.sh(reused — landscape and wrap-up share the same hygiene probe), and §3b must go through~/.agents/skills/wrap-up/scripts/multirepo.sh.
Render the sections below in order. The helper scripts in §0, §1, §3, §3b, and §3d can run in parallel.
0. Header
It emits delimited sections:
---DATE---—date '+%A %Y-%m-%d %H:%M'output.---CWD---—pwd.---BRANCH---— current branch (empty if not in a git repo).---GIT-COMMON-DIR---/---GIT-DIR---— used for worktree detection (see below).---REPO-ROOT---— canonical repo root (parent of the realpath of--git-common-dir); empty if not in a git repo.---DEFAULT-BRANCH---— short name of the repo's default branch (main/master), empty if undetermined.---WORKTREES---— one{path}|{branch}line per worktree of this repo (branch(detached)when applicable). §4 uses it to map a feature branch back to the worktree that holds it.---SETTINGS-DRIFT---— one{worktree}|{file}|{count}line per worktree settings file holding permission entries the canonical (main-worktree) copy lacks (parse-errorinstead of a count when the file isn't valid JSON). §3c renders these.
If ---GIT-COMMON-DIR--- and ---GIT-DIR--- differ, the cwd is a linked worktree (not the main checkout). Note this — it affects the warnings in §3. (String inequality is sufficient: the main checkout returns the same value for both — typically .git — while a linked worktree returns /path/to/main/.git for common-dir vs /path/to/main/.git/worktrees/{name} for git-dir.)
Capture ---REPO-ROOT--- as {repo-root} for the resume block in §4. It's the stable identity /handoffs uses to group sessions per project — independent of which worktree wrote the handoff, and resilient to the worktree being pruned later.
Default to the current cwd/branch, including trunk-based repositories with retained worktrees. Other worktrees do not prove this session belongs elsewhere. §4 considers an alternative only when this conversation identifies unfinished work there; a completed temporary branch is not a resume target.
Render:
{worktree-suffix} is _(linked worktree)_ when applicable, else empty.
1. 🧾 Today's activity
Run the helper:
It emits delimited sections:
---STATUS---—OKorNO_GIT. IfNO_GIT, skip the Commits sub-section.---DATE---— today'sYYYY-MM-DD(the script's window).---WINDOW-START---/---WINDOW-END---— the local, exclusive-end interval bounding activity.---AUTHOR---—git config user.emailfor the commit filter.---COMMITS---— one pipe-delimited line per commit:{worktree_basename}|{branch}|{sha}|{subject}|{when}. Empty if no commits today.---GH-STATUS---—OK,UNAVAILABLE(gh missing or not authenticated), orERROR(one or more searches failed).---GH-DIAGNOSTICS---— bounded names of failed PR searches; empty forOKandUNAVAILABLE.---PRS-CREATED---/---PRS-MERGED---/---PRS-CLOSED-UNMERGED---— JSON arrays (always[]when empty) fromgh search prs --author=@me.---BEADS-STATUS---—OK/NO_BD/NO_BEADS_IN_REPO.---BEADS-IN-PROGRESS---— output ofbd list --status=in_progress(state being left for tomorrow).---BEADS-STALE-DAYS---— the idle grace period in days (WRAP_UP_STALE_DAYS, default 7). §3a names it in the prompt.---BEADS-STALE-CANDIDATES---— aged tracker claims selected by the helper's update-time cutoff.
These are §3a's report-only candidates, not proof of inactivity; session activity is unverified.
---BEADS-CREATED-TODAY---— open Beads created inside the emitted local window; the helper queries with equivalent UTC bounds and excludes closed-same-day rows so they appear only inBEADS-CLOSED.---BEADS-CLOSED---— closed Beads whose closure timestamp falls inside the same UTC-normalized window.
activity.sh --workspace is the reusable, read-only catch-up contract used by /today. It preserves this default no-argument contract, resolves members through multirepo.sh --members-only, and repository-qualifies commits and JSON Beads lists. Workspace mode also emits the generic BEADS-CREATED marker with every issue created in the window, including issues now closed; the compatibility BEADS-CREATED-TODAY marker retains the existing open-only behavior. --workspace --previous-workday selects Friday on Monday and the preceding calendar day otherwise for /yesterday. Explicit --workspace --date YYYY-MM-DD or --workspace --since YYYY-MM-DD [--until YYYY-MM-DD] selects up to 31 inclusive local days; omitted --until means today. Future, inverted and conflicting selectors fail before collection. Workspace output adds DATE-END, weekday-labelled DATE-LABEL, and COMMIT-DIAGNOSTICS. Its activity-commits.py helper scans local branches, worktree HEADs and cached default refs, matching exact local/GitHub author emails, deduplicating SHAs and reporting absolute committer times. The no-argument wrap-up commit schema/selection is unchanged. See today for recap identity, cached-history and rendering rules. The helper converts the emitted local WINDOW-START/WINDOW-END interval to UTC for timestamp filtering and requires Python 3.10+ (standard library only), Bash 4+ and, for workspace commit collection, Git 2.37+. Do not parse workspace configuration or reproduce date-window logic in consumers.
Commits
Render as a table only if ---COMMITS--- is non-empty:
- Truncate Subject to ~50 chars.
If empty: _No commits today._ (Still useful — confirms admin-only session.)
PRs created / merged / closed today
If ---GH-STATUS--- is UNAVAILABLE, render _GitHub CLI not authenticated — PR roundup skipped._ and skip the sub-section. If it is ERROR, retain rows from successful searches and render _GitHub query failed — PR roundup may be incomplete._ plus the bounded ---GH-DIAGNOSTICS--- entries.
For OK or ERROR, parse the three JSON arrays. De-duplicate (a PR may appear in created + merged on the same day — merged wins). Render a single table if anything remains:
- Event: 🆕 created / 🚀 merged / 🚫 closed-unmerged / 📝 draft (created and still draft).
- PR: markdown link
[#{number}]({url}).
Skip the section entirely if all three arrays are empty.
Jira tickets you touched today
Query for tickets the current user updated since midnight (status transitions, comments, edits):
Render as a table only if non-empty:
- Key: markdown link to the issue (
[KEY](https://.../browse/KEY)). - Truncate Summary to ~50 chars.
Skip the section entirely if the result is empty. If the Jira MCP errors or isn't configured, render _Jira unavailable — skipped._ and move on (do not fail the skill).
Note: updatedBy catches the obvious cases (status changes, comments, field edits). It won't catch tickets you only read during the session — that's intentional. The conversation chat in §2 captures what you thought about but didn't change.
Beads — in-progress, created today, closed today
If ---BEADS-STATUS--- is NO_BD or NO_BEADS_IN_REPO, skip the whole sub-section silently.
Render each of the three lists only when non-empty. Combine into compact tables (the same column shape works for all three):
Notes:
- The default
bd listoutput already filters out closed beads, soBEADS-CREATED-TODAYnaturally excludes ones that were closed the same day. Those appear under "Closed today" instead — no de-duplication needed. - In-progress is the most load-bearing for resume — it's the answer to "what was I in the middle of?" Always render it first when non-empty.
- Epic context. Include already-verified parent/dependency context from this session if useful;
do not start a new tracker investigation to complete the handoff. Mark unknown progress unknown.
- If all three are empty, skip the whole
### 🎯 Beadsheading. If only some are non-empty, render just the populated tables and skip the empty ones (don't show_No created today._placeholders — silence is shorter).
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/wrap-up/SKILL.md
Popularity
- Repository stars
- 9
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/flurdy/agent-skills/wrap-up)