Overview
Wrap-Up is an end-of-session ritual that ensures you leave your codebase in a clean state and capture learnings for future sessions. It’s different from session-handoff — Wrap-Up is a checklist for you, while handoff is a document for the next session.Trigger
Use when:- Ending a coding session
- Saying “wrap up”, “done for now”, “finish coding”
- Before closing the editor
- After completing a feature or task
Workflow
The Wrap-Up ritual follows a 5-step checklist:Changes Audit
What files were modified? Anything uncommitted? TODOs left in code?Output:
- List of modified files
- Uncommitted changes highlighted
- Any new untracked files
Quality Check
Run lint, typecheck, and tests. All passing? Any warnings?Output:
- Pass/fail status for each gate
- Error count and first few errors if any
- Warning count
Learning Capture
What mistakes were made? What patterns worked well?Format as
[LEARN] Category: RuleCategories:- Navigation, Editing, Testing, Git, Quality, Context, Architecture, Performance
Next Session Context
What’s the next logical task? Any blockers? Context to preserve?Output:
- Next task description
- Known blockers or dependencies
- Files to review next session
Learning Categories
Wrap-Up captures learnings in these categories:Navigation
Navigation
Editing
Editing
Code changes, patterns, wrong approachExamples:
[LEARN] Editing: Use early returns instead of nested if statements[LEARN] Editing: Always use async/await, not .then() chains
Testing
Testing
Test approaches, coverage gaps, flaky testsExamples:
[LEARN] Testing: Mock external APIs in auth tests to prevent flakiness[LEARN] Testing: Run tests before commit, not after
Git
Git
Commits, branches, merge issuesExamples:
[LEARN] Git: Always pull before creating new feature branches[LEARN] Git: Use conventional commit format for consistency
Quality
Quality
Lint, types, style violationsExamples:
[LEARN] Quality: Run typecheck after adding new interfaces[LEARN] Quality: Fix lint warnings immediately, don't accumulate
Context
Context
When to clarify, missing requirementsExamples:
[LEARN] Context: Ask about error handling strategy before implementing[LEARN] Context: Clarify scope before touching >5 files
Architecture
Architecture
Design decisions, wrong abstractionsExamples:
[LEARN] Architecture: Keep business logic out of React components[LEARN] Architecture: Prefer composition over inheritance
Performance
Performance
Optimization, O(n^2) loops, memoryExamples:
[LEARN] Performance: Use indexes for frequently queried fields[LEARN] Performance: Debounce search input, don't query on every keystroke
Guardrails
No Skipping Steps
Every checklist item must be completed. If tests are failing, flag before ending session.
Uncommitted Changes
If uncommitted changes exist, ask whether to commit or stash. Never leave in ambiguous state.
Learning Format
Always use
[LEARN] Category: Rule format. Keep rules to one line, specific and actionable.Quality Gate Failures
If lint/typecheck/tests fail, document why and create TODO for next session.
Output
Wrap-Up provides a comprehensive session report:Examples
Example 1: Clean Session
Example 2: Uncommitted Changes
Example 3: Quality Gate Failure
Integration with Pro Workflow
Smart Commit
Wrap-Up calls Smart Commit if uncommitted changes exist
Session Handoff
Run handoff after wrap-up to generate resume context
Learn Rule
Learnings captured during wrap-up use learn-rule format
Insights
Wrap-Up data feeds into session analytics
Configuration
Custom Quality Commands
Override default commands in CLAUDE.md:Skip Specific Checks
Temporarily skip checks (use sparingly):Best Practices
Run Wrap-Up Every Session
Run Wrap-Up Every Session
Make it a habit. Even 5-minute sessions benefit from wrap-up discipline.
Capture Mistakes Immediately
Capture Mistakes Immediately
Fresh context makes better learnings. Don’t wait until later.
Leave Clean State
Leave Clean State
All changes committed, tests passing, no surprises for next session.
Document Blockers
Document Blockers
If ending with issues, clearly document what’s blocking and why.
Troubleshooting
Wrap-Up Takes Too Long
No Learnings to Capture
That’s fine! Not every session has mistakes. But consider:- What worked well that should be repeated?
- What was faster than expected?
- What was slower and why?
Quality Gates Always Failing
If quality gates consistently fail:- Fix technical debt before new features
- Add pre-commit hooks to catch earlier
- Adjust thresholds if too strict
Next Steps
Try Session Handoff
Generate resume context for smooth session continuity
Master Learn Rule
Turn corrections into permanent memory
View Insights
Analyze patterns from wrap-up data
Explore All Skills
See the complete skill system