chore: add shared Claude rules via native .claude/rules/ path#22473
Draft
chore: add shared Claude rules via native .claude/rules/ path#22473
Conversation
…nalysis, deduplicate
1225120 to
aa283be
Compare
fc1876c to
d92d6f6
Compare
- Move .claude/aztec-rules/ → .claude/rules/ (auto-loaded by Claude Code) - Remove redundant "Aztec Rules" blocks from 9 subdirectory CLAUDE.md files (root CLAUDE.md propagates to all subdirs automatically) - Remove root CLAUDE.md "read aztec-rules" instruction (unnecessary with native path) - Drop session-analysis.md (assumes local Claude Code, not suitable as universal rule) - Fix common-mistakes.md: specify `cargo fmt` for Rust, fix trailing whitespace
ClaudeBox sessions also have access to local session JSONL files, so this rule is useful across both local and containerized environments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds cross-cutting Claude Code guidance that applies to all components in the monorepo, using the native
.claude/rules/directory that Claude Code auto-loads.Changes
.claude/rules/— 5 rule files (attribution, common-mistakes, git-workflow, monorepo, red-green-testing) that Claude Code loads automatically from the project root for all subdirectoriesCLAUDE.md— minimal, just identifies the project (no manual "read rules" instruction needed)Why
.claude/rules/instead of.claude/aztec-rules/Claude Code natively auto-loads all
.mdfiles from.claude/rules/at the project root. This means:yarn-project/.claude/rules/already does)Test plan
claudefrom repo root sees the rules (check with "what rules do you have?")claudefrombarretenberg/cpp/also sees root rulesyarn-project/.claude/rules/still works independently