Skip to content

docs: split CLAUDE.md into a short index and one file per rule - #325

Merged
manhpham90vn merged 2 commits into
mainfrom
docs/claude-md-context
Nov 23, 2026
Merged

manhpham90vn merged 2 commits into
mainfrom
docs/claude-md-context

Conversation

@manhpham90vn

@manhpham90vn manhpham90vn commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Why

CLAUDE.md asked every session to read docs/SPEC.md, docs/DESIGN.md and docs/TESTING.md in full: about 520 KB together, which fills a large part of the context before any work starts. Long sessions that cover a whole milestone are then summarised several times, and items of an issue's definition of done get lost. CLAUDE.md itself also held every rule in one long file.

What changes (documentation only)

  • CLAUDE.md is now a short index (about 3 KB, from 14 KB): the nine principles by name, what is always asked, the conventions, and a table saying which file under docs/rules/ is read before which kind of work.
  • docs/rules/principles.md and 1-… to 5-…: the principles and rules 1 to 5, moved with the text they have on main and their numbers kept, so "rule 2" and "principle 8" elsewhere in the repository and in the issues still point at the same thing. The only change inside them is rule 5's new ## Read item.
  • docs/rules/6-sessions.md, new rule 6 "How a session goes":
    • at the start, only README.md in full; of the three long docs, the headings and then the sections the issue names;
    • one group of issues per session, with what the next session needs written into the issues;
    • before an issue is closed, a subagent given only the issue number and the commits checks each item of the definition of done.

No code, test or build file is touched. Existing issues do not have a ## Read list yet; it can be added as each one is picked up.

https://claude.ai/code/session_01Ryb4bKp5meYCqrb5rfy3dB


Generated by Claude Code

…before closing

CLAUDE.md asked every session to read SPEC.md, DESIGN.md and TESTING.md
in full (about 520 KB), which filled much of the context before any work.

- Read first: headings only, then the sections the issue names.
- Rule 2: one group of issues per session; state is written to issues.
- Rule 4: a subagent checks each item of the definition of done before
  an issue is closed.
- Rule 5: issues carry a '## Read' list.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ryb4bKp5meYCqrb5rfy3dB
CLAUDE.md keeps what always holds (the principles by name, what is
always asked, the conventions) and a table saying which file under
docs/rules/ is read before which kind of work. Rules 1 to 5 and the
principles are moved as they were on main, with their numbers kept;
the three additions of this branch are gathered in a new rule 6,
'How a session goes', instead of being spread over rules 2 and 4.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ryb4bKp5meYCqrb5rfy3dB
@manhpham90vn manhpham90vn changed the title docs: read docs by section, one group per session, independent check before closing docs: split CLAUDE.md into a short index and one file per rule Nov 23, 2026
@manhpham90vn
manhpham90vn merged commit 582e745 into main Nov 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants