Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bitbonsai avatar

Wrap

  • 6 installs
  • 1 repo stars
  • Updated July 30, 2026
  • bitbonsai/wrap

wrap is a skill that runs an end-of-session wrap-up to save learnings to memory and prepare a handover prompt for context reset.

About

Wrap is an end-of-session skill that reviews the conversation for gotchas, wrong assumptions, and user preferences, then saves them to project memory. It updates MEMORY.md and optional project files and generates a self-contained handover prompt for the next agent. A developer uses it to preserve learnings before clearing context.

  • End-of-session wrap-up that extracts gotchas and saves learnings to project memory
  • Generates a self-contained handover prompt for a fresh agent after context reset
  • Updates MEMORY.md and optional project files, then copies the handover to clipboard

Wrap by the numbers

  • 6 all-time installs (skills.sh)
  • Ranked #2,291 of 3,282 Productivity & Planning skills by installs in the Skillselion catalog
  • Data as of Jul 31, 2026 (Skillselion catalog sync)
At a glance

wrap capabilities & compatibility

Use cases
documentation · memory · planning
Pricing
Free
From the docs

What wrap says it does

End-of-session wrap-up. Primary goal: improve future agent performance.
SKILL.md
This is the most important step. Memory persists across all future sessions.
SKILL.md
Build a continuation prompt that a fresh agent can use to pick up where this session left off.
SKILL.md
npx skills add https://github.com/bitbonsai/wrap --skill wrap

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs6
repo stars1
Last updatedJuly 30, 2026
Repositorybitbonsai/wrap

What it does

Wrap up a work session by saving gotchas to memory and generating a handover prompt before context reset.

Who is it for?

Developers closing out a Claude Code session and preserving learnings

Skip if: Recording shipped features, timelines, or anything already in git or code

When should I use this skill?

The user says wrap, wrap up, save learnings, end of session, or is about to run /clear

What you get

Updated project memory plus a copy-pasteable handover prompt for the next session.

  • Updated MEMORY.md entries
  • A self-contained handover prompt

By the numbers

  • 5-step wrap workflow

Files

SKILL.mdMarkdownGitHub ↗

Wrap

End-of-session wrap-up. Primary goal: improve future agent performance.

Step 1: Extract gotchas

Review this conversation for GOTCHAS ONLY. A gotcha is:

1. Something that broke -- caused a bug, wasted time, or required a fix 2. A wrong assumption -- had to be corrected mid-session 3. Counterintuitive behavior -- an API, tool, or system that doesn't work how you'd expect

Do NOT record:

  • What was shipped or deployed (git log has this)
  • Feature descriptions (agents.md has this)
  • Rollout timelines or monitoring results
  • UI polish details
  • Anything derivable from reading the code

Format: one line per gotcha. Code example only if the fix is non-obvious.

Step 2: Save to project memory (PRIMARY)

Update auto-memory MEMORY.md (~/.claude/projects/<current-project>/memory/):

Add new entries:

  • Gotchas and corrections discovered this session
  • User preferences or workflow corrections ("don't do X", "I prefer Y", "stop doing Z"). These go in feedback type memory files. Include WHY the user wants it that way
  • Non-obvious project context learned this session

Clean stale entries:

  • Scan MEMORY.md for bugs/gotchas that were FIXED this session. Remove or mark resolved
  • Update entries that are now inaccurate based on work done this session
  • Check if any "Active Projects" items were completed

Keep entries concise (1-2 lines each). Do NOT duplicate what's already there.

This is the most important step. Memory persists across all future sessions.

Step 3: Update project files (if they exist)

Check for these files and update if present. Skip silently if missing.

agent-learnings.md: Append new gotchas under the right section (Code traps, Deploy flow, Infrastructure, Testing). Skip duplicates.

globalcontext.md: Update version + recent releases table if version was bumped. Update "Active work" if work was completed. Update "Known issues" if new issues found or old ones resolved.

.plans/next-steps.md: Update "Current state" header if version was bumped. Update "Known issues" if issues resolved or new ones found.

.plans/INDEX.md: Move completed plans to "Recently shipped". Add new plans if created during session. Keep "Recently shipped" to last ~5 entries.

Step 4: Generate handover prompt

Build a continuation prompt that a fresh agent can use to pick up where this session left off. The prompt must be self-contained (the next agent has zero context).

Structure:

Branch: {branch} (PR #{number} if applicable)

What shipped this session: {brief list of changes, with filenames}

Status: {built locally / pushed / deployed}. {test results if run}. {typecheck status}.

What still needs doing:
1. {next step}
2. {next step}
...

Known gaps / follow-up:
- {anything deferred or incomplete}

Rules:

  • Include file paths for anything created or significantly changed
  • State the git status (committed? uncommitted? pushed?)
  • If there's a plan file, reference it
  • Keep it factual, no fluff. The prompt should be copy-pasteable
  • If nothing is in progress (pure Q&A session), skip this step

Step 5: Confirm and prompt reset

1. Show brief summary of what was saved (or "nothing new" if nothing qualified) 2. Display the handover prompt in a fenced code block so user can copy it 3. Try to copy the handover prompt to clipboard: echo '...' | pbcopy 4. Tell user: "Handover prompt copied to clipboard. Paste it after /clear to continue."

  • If pbcopy fails: "Copy the prompt above, then run /clear to reset context."

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.