Skip to content

Commit 1a91afb

Browse files
GiggleLiuclaude
andcommitted
docs: add Philosophy section to CLAUDE.md
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a784239 commit 1a91afb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.claude/CLAUDE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
## Project Overview
44
Rust library for NP-hard problem reductions. Implements computational problems with reduction rules for transforming between equivalent formulations.
55

6+
## Philosophy
7+
- **Simple logic, maximum reuse.** Prefer straightforward code with fewer branches (less if-else).
8+
Try best to reuse existing logic rather than adding ad hoc special cases.
9+
- **Root-cause fixes over patches.** When a bug surfaces, trace it to its origin.
10+
A fix that prevents a class of bugs is better than one that handles a single case.
11+
- **Tests over implementation.** Spend more time designing tests than implementing code.
12+
Well-designed tests catch bugs early and document intended behavior.
13+
614
## Agent Preferences
715
- For tasks with complex logic (implementing reductions, fixing CI, issue-to-pr, check-issue, etc.), prefer invoking the `codex` CLI (if installed) with the latest model: `codex exec -c model="gpt-5.4" "<prompt>"`.
816

0 commit comments

Comments
 (0)