Skip to content

Commit e25a336

Browse files
devfreddyclaude
andcommitted
Update wrap command to commit code changes first
Add explicit step to review and commit code changes before documentation. This prevents the issue of only committing docs while leaving code uncommitted. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0fe1d16 commit e25a336

1 file changed

Lines changed: 34 additions & 3 deletions

File tree

.claude/commands/wrap.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,52 @@ Read and update the wrap-up document at `docs/sessions/YYYY-MM-DD/wrap-up.md` (t
5555
- Add workarounds discovered
5656
- Update existing entries if better solutions found
5757

58-
## 3. Review Git Status
58+
## 3. Review and Commit Code Changes
59+
60+
**IMPORTANT: Commit code changes BEFORE documentation**
5961

6062
Check what files were modified:
6163
```bash
6264
git status
6365
git diff --stat
6466
```
6567

66-
Identify any uncommitted changes that should be committed before wrap-up.
68+
### If there are uncommitted code changes:
69+
70+
1. **Review the changes:**
71+
```bash
72+
git diff
73+
```
74+
75+
2. **Stage and commit code changes with a descriptive message:**
76+
```bash
77+
git add <modified-code-files>
78+
git commit -m "<Descriptive title of what was accomplished>
79+
80+
- Feature/fix 1 description
81+
- Feature/fix 2 description
82+
- Bug fix description
83+
84+
🤖 Generated with [Claude Code](https://claude.com/claude-code)
85+
86+
Co-Authored-By: Claude <noreply@anthropic.com>"
87+
```
88+
89+
**Examples of good commit messages:**
90+
- "Improve mobile navigation and fix date parsing"
91+
- "Add user authentication with OAuth"
92+
- "Fix performance issues in particle background"
93+
94+
3. **Push code changes:**
95+
```bash
96+
git push origin main
97+
```
6798

6899
## 4. Commit Session Documentation
69100

70101
Stage and commit all documentation updates:
71102
```bash
72-
git add docs/
103+
git add docs/ .claude/
73104
git commit -m "Session wrap-up: YYYY-MM-DD
74105
75106
Updated session documentation and project docs

0 commit comments

Comments
 (0)