|
| 1 | +# Claude Code End-of-Day Sequence |
| 2 | + |
| 3 | +## Copy & Paste This Into Any Claude Session |
| 4 | + |
| 5 | +``` |
| 6 | +Please perform the end-of-day sequence: |
| 7 | +
|
| 8 | +1. **Summarize Today's Work** |
| 9 | + - List key accomplishments |
| 10 | + - Note any unfinished tasks |
| 11 | + - Document important decisions made |
| 12 | +
|
| 13 | +2. **Update CLAUDE.md** |
| 14 | + - Add today's work to the development log |
| 15 | + - Update any changed configurations or decisions |
| 16 | + - Note any warnings for future sessions |
| 17 | +
|
| 18 | +3. **Check Git Status** |
| 19 | + - Run: git status |
| 20 | + - List any uncommitted changes |
| 21 | + - Note which files should NOT be committed (like claude-sync) |
| 22 | +
|
| 23 | +4. **Sync Claude State** (if claude-sync exists) |
| 24 | + - Run: /usr/bin/python3 scripts/claude-sync --message "eod: End of day sync - [brief description]" |
| 25 | + - Confirm sync successful |
| 26 | + - Note: This is standalone, doesn't affect project git |
| 27 | +
|
| 28 | +5. **Create Session Handover Notes** |
| 29 | + - Current state of the project |
| 30 | + - Next steps to tackle |
| 31 | + - Any blockers or issues |
| 32 | + - Environment state (venv, dependencies, etc.) |
| 33 | +
|
| 34 | +6. **Final Checks** |
| 35 | + - Ensure no sensitive data in logs |
| 36 | + - Verify CI/CD still works if changes were made |
| 37 | + - Check that .gitignore still excludes Claude files |
| 38 | +
|
| 39 | +Please provide the output in a format I can save for the next session. |
| 40 | +``` |
| 41 | + |
| 42 | +## Standard End-of-Day Report Template |
| 43 | + |
| 44 | +When Claude executes the above, it should produce something like: |
| 45 | + |
| 46 | +```markdown |
| 47 | +# End of Day Report - [DATE] |
| 48 | + |
| 49 | +## Today's Accomplishments |
| 50 | +- ✅ [Task 1 completed] |
| 51 | +- ✅ [Task 2 completed] |
| 52 | +- 🔄 [Task 3 in progress] |
| 53 | +- ⏸️ [Task 4 not started] |
| 54 | + |
| 55 | +## Key Decisions/Changes |
| 56 | +- [Important decision 1] |
| 57 | +- [Configuration change 2] |
| 58 | +- [Architecture decision 3] |
| 59 | + |
| 60 | +## Git Status |
| 61 | +**Modified files (to commit):** |
| 62 | +- file1.py - [reason for change] |
| 63 | +- file2.md - [reason for change] |
| 64 | + |
| 65 | +**Files to exclude from commit:** |
| 66 | +- CLAUDE.md - Claude documentation |
| 67 | +- scripts/claude-sync - Standalone utility |
| 68 | +- .claude/ - Claude settings |
| 69 | + |
| 70 | +## Claude State Sync |
| 71 | +✅ Successfully synced to https://github.com/[user]/claude-state/[project]/ |
| 72 | +- Sync message: "eod: [description]" |
| 73 | +- Files synced: 9 items |
| 74 | +- No interference with project git confirmed |
| 75 | + |
| 76 | +## Handover Notes for Next Session |
| 77 | + |
| 78 | +### Current State |
| 79 | +- Project version: X.X.X |
| 80 | +- Branch: main |
| 81 | +- Tests: ✅ All passing |
| 82 | +- Build: ✅ Successful |
| 83 | +- CI/CD: ✅ Functional |
| 84 | + |
| 85 | +### Next Steps |
| 86 | +1. [Priority task 1] |
| 87 | +2. [Priority task 2] |
| 88 | +3. [Priority task 3] |
| 89 | + |
| 90 | +### Blockers/Issues |
| 91 | +- [Any blocking issues] |
| 92 | +- [Dependencies needed] |
| 93 | +- [Questions for user] |
| 94 | + |
| 95 | +### Environment Notes |
| 96 | +- Python: 3.12 |
| 97 | +- Virtual env: .venv (active) |
| 98 | +- Key dependencies: [list any added today] |
| 99 | + |
| 100 | +## Important Reminders for Next Session |
| 101 | +- ⚠️ [Warning 1] |
| 102 | +- ⚠️ [Warning 2] |
| 103 | +- 📝 [Note 1] |
| 104 | + |
| 105 | +## Session Metadata |
| 106 | +- Session duration: [X hours] |
| 107 | +- Lines of code changed: ~[X] |
| 108 | +- Files modified: [X] |
| 109 | +- Tests added/modified: [X] |
| 110 | +``` |
| 111 | + |
| 112 | +## Quick Commands Reference |
| 113 | + |
| 114 | +For easy copy-paste during end-of-day: |
| 115 | + |
| 116 | +```bash |
| 117 | +# Check git status |
| 118 | +git status --short |
| 119 | + |
| 120 | +# Check what would be synced (dry run) |
| 121 | +/usr/bin/python3 scripts/claude-sync --dry-run |
| 122 | + |
| 123 | +# Perform actual sync |
| 124 | +/usr/bin/python3 scripts/claude-sync --message "eod: Summary of today's work" |
| 125 | + |
| 126 | +# Verify tests still pass |
| 127 | +scripts/pdev test-unit |
| 128 | + |
| 129 | +# Check version consistency |
| 130 | +scripts/pdev version-check |
| 131 | + |
| 132 | +# See recent commits |
| 133 | +git log --oneline -5 |
| 134 | +``` |
| 135 | + |
| 136 | +## Customization Notes |
| 137 | + |
| 138 | +You can customize this sequence for different projects by: |
| 139 | + |
| 140 | +1. **Project-Specific Checks**: Add project-specific validation |
| 141 | +2. **Different Sync Repos**: Adjust the claude-sync repo URL |
| 142 | +3. **Team Handovers**: Add team-specific notes if sharing |
| 143 | +4. **Time Zones**: Include timezone in timestamps |
| 144 | +5. **Metrics**: Add productivity metrics if desired |
| 145 | + |
| 146 | +## Usage Instructions |
| 147 | + |
| 148 | +1. **At End of Session**: Copy the first code block and paste into Claude |
| 149 | +2. **Save the Report**: Copy Claude's response to a file or notes |
| 150 | +3. **Next Session Start**: Reference the saved report to continue work |
| 151 | +4. **Weekly Reviews**: Collect daily reports for weekly summaries |
| 152 | + |
| 153 | +## Example End-of-Day Message |
| 154 | + |
| 155 | +``` |
| 156 | +Please perform the end-of-day sequence: |
| 157 | +
|
| 158 | +1. Summarize today's work on the LogReducer project |
| 159 | +2. Update CLAUDE.md with today's accomplishments |
| 160 | +3. Check git status and list uncommitted changes |
| 161 | +4. Run claude-sync to backup Claude state |
| 162 | +5. Create handover notes for tomorrow's session |
| 163 | +6. Verify CI/CD and tests are still working |
| 164 | +
|
| 165 | +Today we worked on making claude-sync completely standalone and tested the CI/CD pipeline. |
| 166 | +``` |
| 167 | + |
| 168 | +## Benefits |
| 169 | + |
| 170 | +- **Consistency**: Same process across all projects |
| 171 | +- **Continuity**: Smooth handover between sessions |
| 172 | +- **Safety**: Ensures Claude files don't interfere with project |
| 173 | +- **Documentation**: Builds a development history |
| 174 | +- **Recovery**: Can restore context if session is lost |
| 175 | + |
| 176 | +--- |
| 177 | + |
| 178 | +*This template is designed to work across any project. Keep it in your notes for quick access at the end of each Claude Code session.* |
0 commit comments