Agent skill
meta-wrap-up
End-of-session checklist that reviews deliverables, updates daily memory, distills learnings, checks for documentation gaps, and optionally commits work. Use when the user says "wrap up", "close session", "end session", "wrap things up", "we're done", "that's it for today", "session done", or invokes /meta-wrap-up. Run at the end of any working session or after completing a major deliverable. Does NOT trigger for regular development work.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/meta-wrap-up
SKILL.md
Wrap-Up — Session End
Execute all steps. Present findings to the user before committing anything.
Step 1: Review Deliverables
Scan what happened this session:
- Run
git statusandgit diff --statto see all changes - List every file created or modified, grouped by location:
context/— context files updated.claude/skills/— skills created or modified- Source code — implementation work
- Docs repo — documentation created/updated (if workflow-enabled)
- Other locations — flag for review
- File placement check: Verify outputs follow naming conventions:
- Skills use
{category}-{function}naming - Daily memory uses
YYYY-MM-DD.mdformat (main sessions) orYYYY-MM-DD_{session-name}.md(sandbox sessions) - If anything is in the wrong place, flag it
- Skills use
Step 2: Detect Sandbox Environment
- Check if you're running inside an agentsandbox:
- Check if the
AGENTSANDBOX_SESSIONenv var is set - OR check if
/workspace/CLAUDE.mdexists (container indicator) - OR check if the current branch starts with
asb/(git symbolic-ref --short HEAD) - If any is true, you are in a sandbox session
- Check if the
- If in a sandbox session, determine the session name:
- From
$AGENTSANDBOX_SESSIONenv var (preferred) - Or from hostname: strip
asb-prefix from$HOSTNAME - Or from branch name: strip
asb/{source}-prefix
- From
Step 3: Update Daily Memory
- Choose the correct filename:
- Main session:
context/memory/{YYYY-MM-DD}.md - Sandbox session:
context/memory/{YYYY-MM-DD}_{session-name}.md- Example:
context/memory/2026-03-21_ux-study-test.md
- Example:
- This keeps sandbox memory separate from main — no merge conflicts
- Main session:
- For full history context in a sandbox, read from
.context-main/memory/(read-only mount of main's context) - Update the session section with:
- Goal: What the user wanted to accomplish
- Work Done: Bullet points of what was accomplished
- Decisions: Key decisions made and why
- Learnings: Things discovered about the codebase, tools, or patterns
- Open Items: Unfinished work, blockers, things to pick up next
Step 4: Documentation Check (if workflow-enabled)
- Read
workflow.jsonto check if this is a workflow-enabled project - If yes, review the session for documentation gaps:
Decisions → ADRs:
- Were any architectural or technical decisions made this session?
- If yes, does an ADR already exist for this decision?
- If no ADR exists, suggest: "Decision about [topic] — want me to create an ADR?"
New features → PRDs/Design Docs:
- Was a new feature discussed or started?
- Does it have a PRD or design doc?
- If not, suggest: "New feature [name] — want a PRD or design doc?"
Architecture changes → C4 Diagrams:
- Were new components, services, or integrations added?
- Do the C4 diagrams in the docs repo reflect these changes?
- If not, suggest: "Architecture changed — C4 diagrams may need updating"
Incidents → Post-Mortems:
- Was a production incident investigated or resolved?
- If yes, suggest a post-mortem
Research → Spike Reports:
- Was research or option comparison done?
- If yes, suggest capturing it as a spike report
Present documentation suggestions as a checklist — the user picks what to do:
### Documentation Suggestions
- [ ] Create ADR for [decision about X]
- [ ] Update C4 container diagram (new service added)
- [ ] Create spike report for [research topic]
Step 5: Distill to Long-Term Memory
- Review today's session notes. Ask yourself:
- Any lessons learned that future-me should know?
- Any decisions that affect how we work going forward?
- Any user preferences discovered?
- If yes, update
context/MEMORY.mdwith the distilled insight - If any context files (SOUL.md, USER.md) should be updated based on what you learned, suggest the changes to the user
Step 6: Collect Feedback (Optional)
- Ask the user briefly:
- "Anything I should do differently next time?"
- "Any preferences to remember?"
- If they provide feedback, update the relevant context file
Step 7: Commit (If Requested)
- Only if the user asks to commit:
- Stage relevant files
- Draft a clean commit message (no AI mentions, no Co-Authored-By)
- Show the message for approval before committing
- If changes span multiple repos (project + docs), handle each repo separately
Step 8: Cost Summary
- Check if
~/.claude/metrics/costs.jsonlexists. If it does, calculate today's total spend:bashjq -s '[.[] | select(.timestamp | startswith("'"$(date -u +%Y-%m-%d)"'"))] | {total_eur: (map(.estimated_cost_eur) | add), input_tokens: (map(.input_tokens) | add), output_tokens: (map(.output_tokens) | add), responses: length}' ~/.claude/metrics/costs.jsonl - Present the cost summary to the user:
### Today's Usage - Responses: N - Tokens: Xk input / Yk output - Estimated cost: €X.XX
Step 9: Summary
- Present a brief session summary:
- What was accomplished
- What's left for next time
- Any context files that were updated
- Any documentation suggestions that were deferred (so we remember next session)
- Today's cost (from step 16)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?