/my-plugins:wrapup [optional: paths or concern to gate behind a PR]from my-plugins
Routes uncommitted code to git and uncaptured context to memory, handoff docs, or CLAUDE.md when a session ends. Prevents knowledge debt from evaporating working context.
Ships in my-plugins. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A session holds its real state in volatile working memory. When the session ends, that context evaporates — and with it, the cheap answer to why this change, what was decided against, what is half-done. A session leaves two debts:
The recovery cost of both rises monotonically as context decays. The next session pays it at a higher rate, with less context, often by asking you to reconstruct what you already knew. So the entire job of wrapup is: while context is still cheap (now), route every open loop to a durable home. Anything left implicit is a debt deferred to a worse moment.
Wrapup does not reimplement those homes — it dispatches to them. Git is one home, not the whole job.
Don't jump to writing. The flow is always: survey → propose → confirm intent → execute.
1. What kind of state is it? → picks the durable home.
| State | Durable home |
|---|---|
| Working code / config / content | git — commit + push (or PR) |
| A rule Claude must follow ("always X", "never Y") | CLAUDE.md — or .claude/rules/ with paths: if it only applies to some files |
| A fact: state, decision, rationale, external reference | memory/ (see the memory system) |
| A rule that must hold every time, no exceptions | a hook or permission — CLAUDE.md is a request, not a guarantee |
| An unfinished thread a successor must resume | a handoff document |
| Deferred work you are choosing not to do now | an explicit park — TODO, issue, or a noted line. Never silent. |
2. Who must confirm before you write anything? → always the user.
Every write action — commits, memory writes, handoff docs, PR creation, branch deletion — requires the user to confirm intent first. The survey phase is read-only. After surveying, present a proposed routing plan and ask. Only execute after the user approves.
The only exception: purely mechanical read operations (git status, log, diff) that produce no side effects are always safe to run without asking.
3. Survey from queries, not from recall. A session's memory records what it attempted, not what landed — and the two diverge exactly where it matters, on the loop that failed to close quietly. Derive every state claim in the survey and in the report from the forge or the repo at survey time: what merged, what closed, what a durable home currently says. What cannot be derived is reported as recalled, not verified. A survey that silently mixes the two is worse than a short one.
The axis is instruction vs fact, and who maintains it. It is not stability, and it is not app-boundness. "It rarely changes" and "it belongs to one app" are both true of things in either home, so neither tells you where to put anything.
MEMORY.md and a repo-tracked index imported from CLAUDE.md are both in
use, and they have different size limits and failure modes. Read the repo's CLAUDE.md
for which one applies before writing anything.Consequences that are easy to get backwards:
memory/ is not a problem
worth solving; a bloated index is.CLAUDE.md says which; assuming the default where it does not hold routes facts
to the wrong home. Decision logs are the one constant: git already remembers why.Memory rots by appending without invalidating, not by growing. Three rules:
git show HEAD:<path>, not the working tree. A dirty tree may be
someone else's work in progress, and judging a memory "stale" against uncommitted edits
gets the verdict exactly backwards. If HEAD and the working tree disagree, that
disagreement is the finding — report it and hold the verdict.Not "tree is clean." That is necessary, not sufficient. The real test:
A zero-context successor could resume or verify the work without asking you.
Every change committed/pushed/PR'd; every decision worth keeping in memory; every unfinished thread either resume-ready (handoff) or explicitly parked. No open loop left implicit.
Survey both debts. git status + ahead/behind for code debt. Scan the
conversation for knowledge debt — decisions made, things ruled out, threads left
hanging — then settle each thread's actual state by query, per engine rule 3. If both
are empty (clean tree, on default branch, nothing unpushed, nothing undecided) →
"이미 정리됨, 할 일 없음" and stop.
Detect remote visibility once — ask the forge. PUBLIC → every commit message, PR body, and written artifact must be abstracted: no private, personal, or sensitive specifics. PRIVATE → detail is fine. This gate applies to memory and handoff content too, not just git.
Map out the open loops. Read the repo's CLAUDE.md first — it settles the
commit-prefix and grouping conventions, the branch policy, and which memory store is in
play. Group code by concern; never bundle unrelated concerns. Note which
files would go in which commit, which decisions are memory-worthy, and whether any
thread needs a handoff doc.
Propose and confirm before writing anything. Present the full routing plan to the user — what would go into each commit, what would land in memory, what would become a handoff, what would be parked. Ask which parts the user actually wants done and in what order. If it's a long list, ask one category at a time. Do not execute any write until the user confirms.
Execute what was approved. After each confirmed scope: commit atomically per
concern + push; write memory entries; produce handoff doc if needed. After committing,
run the project's post-work documentation rule from CLAUDE.md; fold any doc changes
into the same concern's commit. For review-worthy logic, branch off, move changes,
open the PR.
Report against the bar. State the end position: tree status, branch, what was committed/pushed, PRs opened, what landed in memory/handoff, what was parked and where. Done only when no open loop is implicit — except PRs intentionally awaiting review.
CLAUDE.md. Absent a stated rule, routine commits go to the default branch and a PR is for changes the user explicitly wants gated; where the repo forbids pushing to the default branch, every concern goes through a PR instead. Both still require step 4 confirmation.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub minhyeoky/dotfiles --plugin my-plugins3 skills in this plugin
/grill-meInterview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me"./retroRetrospective on a coding session: re-read the session's transcript, find where the agent struggled, and propose fixes to the agent's environment (pointers, checks, review rules, steering-file cuts, tooling, information access) so the next run goes better.