docs: Add git commit policy to CLAUDE.md

Instructs Claude to commit frequently and evaluate after each tool call
whether changes should be committed. Includes commit message format
and guidelines for immediate vs batched commits.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-07 22:18:42 -05:00
parent b9f73eb1c7
commit 7b78c474f5

View File

@@ -2,6 +2,35 @@
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## Git Commit Policy - IMPORTANT
**You MUST commit and push changes frequently.** Evaluate after each tool call whether a commit makes sense:
### Commit immediately after:
- Any Edit or Write to documentation files (docs/*.md, CLAUDE.md)
- Creating or modifying Traefik configs
- Adding new services to infrastructure
- Completing a discrete task or fix
### Commit in batches for:
- Multiple related file edits (e.g., updating INFRASTRUCTURE.md + CHANGELOG.md together)
- Exploratory changes that may be reverted
### Commit message format:
```
<type>: <short description>
<optional body>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
```
Types: `add`, `update`, `fix`, `docs`, `config`
**Remote**: `origin` → http://10.4.2.7:3000/kavren/proxmox-infra.git
## Repository Purpose
Infrastructure documentation and management repository for the **KavCorp** Proxmox cluster - a 5-node homelab cluster running self-hosted services. This repository supports migration from Docker containers to Proxmox LXCs where appropriate.