Answer architecture round 1: give the rules/ design its own decision with its premise, move where a choice goes into the comment rules, let each rule file's paths frontmatter be the one map and check every rule file named exists, pass the judge its rules folder, and file two findings outside the chunk
This commit is contained in:
@@ -49,12 +49,12 @@ Everything written — chat, commit messages, comments, docs, code — is in **E
|
||||
|
||||
## Topic rules
|
||||
|
||||
Claude Code loads each rule file below when a session reads or writes a file that matches its line. After a write it loads only once the write is done, so read the rule file before you create a matching file.
|
||||
Claude Code loads a rule file when a session reads or writes a file its `paths:` frontmatter matches, and after a write only once the write is done. Read a rule file before you create a file it covers.
|
||||
|
||||
- Comments, and what earns a place in a doc: `~/.claude/rules/comments.md` loads with any file.
|
||||
- Decisions: `~/.claude/rules/decisions.md` loads with `AGENTS.md` or `docs/decisions.md`.
|
||||
- README goals and audience, and what a README or a package's README holds: `~/.claude/rules/readme.md` loads with `README.md`.
|
||||
- `todo.md` items, their scores and Exempt reasons: `~/.claude/rules/todo-items.md` loads with `todo.md`.
|
||||
- Comments, where a choice goes, and what earns a place in a doc: `~/.claude/rules/comments.md`.
|
||||
- The decision log: `~/.claude/rules/decisions.md`.
|
||||
- README goals and audience, and what a README or a package's README holds: `~/.claude/rules/readme.md`.
|
||||
- `todo.md` items, their scores and Exempt reasons: `~/.claude/rules/todo-items.md`.
|
||||
|
||||
## Working with the codebase
|
||||
- Always start a new git worktree when doing something in a codebase, and clean it up when done. Unless told otherwise, branch it off a freshly-updated default branch (`git fetch origin`, then base on `origin/main`), not whatever happens to be checked out.
|
||||
|
||||
Reference in New Issue
Block a user