Skip to content

Commit 4e6adae

Browse files
committed
docs(claudemd): add bash-editing rule, expand baseline testing
1 parent 907c502 commit 4e6adae

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.claude/CLAUDE.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
2. Generalize. Never hardcode or manually copy. Every solution must be programmatically coherent, even "quick tests".
77
3. Fix root causes only. Never modify tests to pass, twist configs to fake success, or dismiss failures as pre-existing. Own every error.
88
4. Keep it plain. No overcomplicating, decorative comments, emojis, bold, editorializing, or Co-Authored-By watermarks.
9-
5. No manual migrations. Use `docker compose up -d` exclusively.
10-
6. Max 400 SLOC per file. Conventional Commits: feat, fix, docs, refactor, test, chore.
9+
5. Never use manual bash commands for editing files to avoid corruption and side effects.
10+
6. No manual migrations. Use `docker compose up -d` exclusively.
11+
7. Max 400 SLOC per file. Conventional Commits: feat, fix, docs, refactor, test, chore.
1112

1213
## Tool Hierarchy
1314

@@ -20,7 +21,7 @@
2021
## Testing
2122

2223
- TDD: Write failing test first, minimal code to pass, refactor.
23-
- Baseline first: Run all unit tests before implementing. Fix any existing failures.
24+
- Baseline first: Before implementing with TDD, run all the tests and coverage and benchmark first to establish the baseline, so that regression become apparent. Fix any existing failures.
2425
- Unit tests for: input/output pairs, edge cases, error paths.
2526
- Property-based tests for: invariants, commutativity, idempotency, round-trip serialization.
2627
- No skipped tests. Detect and re-enable. Investigate root causes.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
---
99

10+
## [5.16.0] - 2026-05-13
11+
12+
### Changed
13+
14+
- `CLAUDE.md`: added rule prohibiting manual bash commands for file editing (use built-in Edit/Write tools) to prevent corruption and side effects
15+
- `CLAUDE.md`: expanded baseline-first testing rule to require running all tests, coverage, and benchmarks before TDD implementation to establish a regression baseline
16+
17+
---
18+
1019
## [5.15.0] - 2026-04-22
1120

1221
### Fixed

0 commit comments

Comments
 (0)