/wrap-up Command
End your Claude Code session with intention. The/wrap-up command runs a comprehensive checklist to audit changes, verify quality, capture learnings, and prepare for the next session.
Syntax
The
/wrap-up command is a ritual, not just a checklist. Make it habitual at the end of every session.The 5-Step Checklist
Changes Audit
Review all modified files:Questions:
- What files were modified?
- Any uncommitted changes?
- Any TODOs left in code?
- Commit or stash uncommitted work
- Remove or ticket TODOs
Quality Check
Run full quality gates:Action:
- Fix any failures before ending
- Don’t leave broken tests
Learning Capture
Identify corrections and patterns:Questions:
- What corrections did you make this session?
- Any new patterns learned?
- Any mistakes to avoid next time?
- Format learnings as:
[LEARN] Category: Rule - Save to database with
/learn-rule
Session Summary
Document what was accomplished:Action:
- Save summary to notes or project log
- Create handoff doc if handing off to someone else
Example Flow
Configuration
Wrap-up behavior is configurable inconfig.json:
Options
| Option | Default | Description |
|---|---|---|
check_uncommitted | true | Check for uncommitted changes |
verify_tests | true | Run quality gates |
update_claude_md | true | Suggest CLAUDE.md updates |
create_summary | true | Generate session summary |
When to Use /wrap-up
- Always
- Especially After
- Before
End of every session:
- Before closing Claude Code
- After completing a feature
- Before switching to different work
- At the end of the workday
Integration with Hooks
Wrap-up integrates with the hook system:SessionEnd Hook
Auto-run wrap-up when closing Claude Code:PreToolUse Hook
Remind about wrap-up before git push:Best Practices
Make It Habitual
Run
/wrap-up at the end of every session, no exceptions. Rituals compound over time.Capture All Learnings
Don’t skip learning capture. Every correction is a future improvement.
Fix Before Closing
Don’t leave broken tests or failing quality gates. Fix before wrap-up completes.
Document Next Steps
Always note what’s next. Future you (or your teammate) will thank you.
Troubleshooting
Quality gates fail during wrap-up
Quality gates fail during wrap-up
If quality gates fail:
-
Fix the failures before ending:
-
If hotfix needed, skip gates:
-
Create TODO to fix later:
Context usage is high
Context usage is high
If context >70% during wrap-up:
-
Run compact:
-
Or start fresh session:
- Save handoff doc first
- Close and restart Claude Code
- Resume from handoff
No learnings to capture
No learnings to capture
If no corrections were made:
- That’s fine! Not every session has learnings
- Focus on documenting what was completed
- Note patterns observed for future reference
Related Commands
/learn-rule
Capture specific learning rule
/handoff
Generate detailed handoff document
/insights
View session analytics
Wrap-Up Skill
Deep dive on wrap-up patterns
Next Steps
- Learn about Learning System
- Set up Auto Wrap-Up Hook
- Configure Quality Gates