KERNEL

GIT COMMITS

Commit early, commit small.

Before every experiment or big change, commit. It becomes a checkpoint you can revert to painlessly.

Direct messages: fix, feat, chore, refactor. No process narration in the body. The diff tells the story.

When Claude is iterating fast on a feature, commit at every green step. If the next attempt breaks, you run git restore with confidence.

In practice

# Before every experiment:
git add -A && git commit -m "checkpoint: pre-refactor"

# Iterating fast:
git add src/feature.tsx
git commit -m "feat: add foo step 1"
# ... next green step
git commit -m "feat: foo step 2"

# Something broke? Roll back painlessly:
git restore src/feature.tsx

This practice is part of Claude Code OS, the full blueprint of the practices that separate following a tutorial from actually working with Claude. Ler em português.