/memex-claude:wrap-things-upfrom memex-claude
End-of-session workflow: extract learnings, create handoff, persist project-scoped assets. Run after code work is done, right before exiting.
Ships in memex-claude. 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.
Orchestrate end-of-session housekeeping: extract learnings, create a handoff, then persist project-scoped generated assets.
Precondition: Code work is done (PR merged or no code changes this session). This runs right before exiting Claude.
Announce at start: "Wrapping up this session."
/reflect runs FIRST, alone, and must be thorough. Do not run it in parallel with /handoff — reflection requires reviewing the full conversation and producing concrete artifacts (rules, skills, memories). Rushing it in parallel leads to skimming and "nothing to save" conclusions that waste the session's learnings.
Before concluding that existing entries cover a learning, verify:
Scan for each of these explicitly — don't rely on "I'll notice them as I go":
Then invoke /reflect with the results of that scan.
Invoke /handoff to create a continuation plan for the next session.
Optional — if claude-gatekeeper is installed: Also invoke /claude-gatekeeper:learn-approvals in parallel with /handoff to promote manually-approved commands to gatekeeper rules. To detect availability, check whether claude-gatekeeper:learn-approvals appears in the available skills list in the system prompt. If it does not appear, skip it silently — do not error or warn.
Wait for all invoked skills to complete before proceeding to Phase 2.
After phase 1 completes:
Check for a memory describing the user's preferred persistence method for session assets (e.g., "commit to branch and PR", "commit to current branch", "leave uncommitted", etc.).
Run git status --short to see what was generated during this session.
Use your judgment about what belongs in a commit — session artifacts like handoffs, rules, skills, plans, and specs that live inside the repo are fair game. Respect .gitignore — if a file is ignored, do not stage it. Skip global files that live outside the repo (e.g., ~/.claude/ entries) since those are already persisted on disk.
If there are no project-scoped files to persist, report "No project assets to commit" and stop.
Follow the user's persistence method from step 1. If creating a PR, use a descriptive title and body summarizing what was generated. Do not merge the PR.
Report what was persisted (or that nothing needed persisting). Do not merge PRs. Do not remove worktrees.
/reflect should not block /handoff.gh pr create auth error), report the error and leave files on disk.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jim80net/memex-claude --plugin memex-claude9 skills in this plugin
/deep-sleepExtract learnings from past session transcripts and create appropriately-typed skills. Processes unreviewed sessions to find user preferences, recurring patterns, and troublesome workflows./doctorDiagnose and fix memex installation, setup, or runtime problems. Run checks on the binary, config, hooks, cache, model, and scan paths./handoffCreate a comprehensive continuation plan so a fresh session can pick up exactly where this one left off — with full operational detail, not summaries./helpShow how to use memex: what it does, how to create skills/rules/memories, available commands, current status, and troubleshooting.