chore: add 17 operational rules and rule index

- Create .claude/rules/ with all 17 standard rule files (01-security through 17-document-imports)
- Add Operational Rules section with Rule Index to .claude/CLAUDE.md
This commit is contained in:
Hibryda 2026-03-05 23:14:34 +01:00
parent afc5a7f895
commit b659a6a6bd
18 changed files with 373 additions and 0 deletions

View file

@ -0,0 +1,15 @@
# Branch and Refactor Hygiene
## Branches
- Work on feature branches. Use descriptive names: `feature/auth-login`, `fix/null-pointer-profile`, `chore/update-deps`.
- Before creating a PR, ensure the branch is up to date with the base branch.
- After merge, delete the branch. First commit on `main` is acceptable for fresh repos.
- Keep feature branches short-lived: merge within 1-2 days. Use feature flags for incomplete work that lands on main.
## Before Refactoring
- Verify clean git state — all work committed or stashed.
- Run the full test suite to establish a passing baseline.
- Document the refactoring scope: what changes, what is preserved.
- Commit frequently during the refactor. Run tests after each step.