Skip to content

Commit df0c5bf

Browse files
committed
Add batch commits strategy to CLAUDE.md
1 parent 9a4f051 commit df0c5bf

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,18 @@ All code elements MUST be sorted:
193193
- **Important**: Even when using `--no-verify`, you MUST still run linting/checking commands manually first
194194
- **Rationale**: Pre-commit hooks run linting and type-checking which are critical for SDK source code but less critical for non-published files
195195

196+
### Batch Commits Strategy
197+
- **When making many changes**: Break large changesets into small, logical commits
198+
- **First commit with tests**: Run full test suite (hooks) for the first commit only
199+
- **Subsequent commits with --no-verify**: Use `--no-verify` for follow-up commits
200+
- **Example workflow**:
201+
1. Make all changes and ensure `pnpm run fix && pnpm run check` passes
202+
2. Stage and commit core changes with hooks: `git commit -m "message"`
203+
3. Stage and commit related changes: `git commit --no-verify -m "message"`
204+
4. Stage and commit cleanup: `git commit --no-verify -m "message"`
205+
5. Stage and commit docs: `git commit --no-verify -m "message"`
206+
- **Rationale**: Reduces commit time while maintaining code quality through initial validation
207+
196208
### Changelog Management
197209
- **🚨 MANDATORY**: When creating changelog entries for version bumps:
198210
- **Check OpenAPI definition updates**: Always analyze `types/api.d.ts` changes

0 commit comments

Comments
 (0)