flurdy/agent-skills/wrap-up

Claude Code and agent skill by flurdy/agent-skills

Trust tier 2
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
LLM review pending
Source check pending

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-up

Semi-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

  1. Activity roundup for today (commits, PRs created/merged, beads closed).
  2. Working-copy hygiene — flag uncommitted, unpushed, worktree-only state, and artifact-hygiene risks.
  3. Settings/tracker drift — report risks and name their separate review workflow; do not repair them.
  4. Paste-ready Resume block capturing topic, decisions, open threads, and where to pick up.
  5. 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.
  6. Optionally point to /handoffs-tidy for a separately requested archive review; do not invoke it.
  7. 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 /exit in 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-hoc git/gh/bd pipelines 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
bash
~/.agents/skills/wrap-up/scripts/header.sh

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-error instead 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:

markdown
## Wrap-up — {Weekday} {YYYY-MM-DD} {HH:MM}
**Where:** `{pwd}` on `{branch}`{worktree-suffix}

{worktree-suffix} is _(linked worktree)_ when applicable, else empty.

1. 🧾 Today's activity

Run the helper:

bash
~/.agents/skills/wrap-up/scripts/activity.sh

It emits delimited sections:

  • ---STATUS--- — OK or NO_GIT. If NO_GIT, skip the Commits sub-section.
  • ---DATE--- — today's YYYY-MM-DD (the script's window).
  • ---WINDOW-START--- / ---WINDOW-END--- — the local, exclusive-end interval bounding activity.
  • ---AUTHOR--- — git config user.email for 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), or ERROR (one or more searches failed).
  • ---GH-DIAGNOSTICS--- — bounded names of failed PR searches; empty for OK and UNAVAILABLE.
  • ---PRS-CREATED--- / ---PRS-MERGED--- / ---PRS-CLOSED-UNMERGED--- — JSON arrays (always [] when empty) from gh search prs --author=@me.
  • ---BEADS-STATUS--- — OK / NO_BD / NO_BEADS_IN_REPO.
  • ---BEADS-IN-PROGRESS--- — output of bd 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 in BEADS-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:

markdown
### 🧾 Commits today
| Worktree | Branch | SHA | Subject | When |
|----------|--------|-----|---------|------|
  • 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:

markdown
### 🔀 PRs today
| Event | PR | Repo | Title |
|-------|----|------|-------|
  • 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):

mcp__jira__jira_get
path: /rest/api/3/search/jql
queryParams:
jql: updatedBy = currentUser() AND updated >= startOfDay() ORDER BY updated DESC
fields: summary,status,issuetype,updated
maxResults: 20
jq: issues[*].{key: key, summary: fields.summary, status: fields.status.name, type: fields.issuetype.name, updated: fields.updated}

Render as a table only if non-empty:

markdown
### 📋 Jira touched today
| Key | Type | Status | Summary |
|-----|------|--------|---------|
  • 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):

markdown
### 🎯 Beads
**In progress ({count})**
| ID | Type | Pri | Title |
|----|------|-----|-------|
**Created today ({count})**
| ID | Type | Pri | Title |
|----|------|-----|-------|
**Closed today ({count})**
| ID | Type | Pri | Title |
|----|------|-----|-------|

Notes:

  • The default bd list output already filters out closed beads, so BEADS-CREATED-TODAY naturally 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 ### 🎯 Beads heading. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/flurdy/agent-skills/wrap-up/badge)](https://verified-skill.com/skills/flurdy/agent-skills/wrap-up)

Something wrong with this skill or its page? Tell us.