Skip to content

Commit 60aa20e

Browse files
committed
Add batch commits strategy to CLAUDE.md
1 parent 70aa8da commit 60aa20e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CLAUDE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,18 @@ Parsing and constructing package URLs, compiled to CommonJS for deployment.
164164
- **Important**: Even when using `--no-verify`, you MUST still run `pnpm fix` and `pnpm check` manually first
165165
- **Rationale**: Pre-commit hooks run linting and type-checking which are critical for library code but less critical for non-published files
166166

167+
### Batch Commits Strategy
168+
- **When making many changes**: Break large changesets into small, logical commits
169+
- **First commit with tests**: Run full test suite (hooks) for the first commit only
170+
- **Subsequent commits with --no-verify**: Use `--no-verify` for follow-up commits
171+
- **Example workflow**:
172+
1. Make all changes and ensure `pnpm fix && pnpm check` passes
173+
2. Stage and commit core changes with hooks: `git commit -m "message"`
174+
3. Stage and commit related changes: `git commit --no-verify -m "message"`
175+
4. Stage and commit cleanup: `git commit --no-verify -m "message"`
176+
5. Stage and commit docs: `git commit --no-verify -m "message"`
177+
- **Rationale**: Reduces commit time while maintaining code quality through initial validation
178+
167179
## 🔍 DEBUGGING
168180

169181
### Performance Testing

0 commit comments

Comments
 (0)