From da9bf374173df055254eef56e70c7fbfd4fb4d23 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 16 Jun 2026 06:16:29 +0000 Subject: [PATCH 1/2] CLAUDE.md: add ~100-line source file length convention Adds a File Structure guideline to keep source files under ~100 lines and split longer files into named subfiles, matching the decomposition practice requested in review and applied in PR #843. Kept as its own dedicated PR per the CLAUDE.md rule that meta/infra changes don't mix with book-content PRs. https://claude.ai/code/session_01NQSLJmjMN22RpwpgJ6Lw6u --- CLAUDE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CLAUDE.md b/CLAUDE.md index 7282744f2..66069ed05 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -36,6 +36,7 @@ Before committing any `.qmd`, `.R`, or config file change: ### File Structure - Subfiles (`_subfiles/`) must NOT begin with a section heading — place headings in the parent `.qmd` - Link to `.qmd` source files, not rendered `.html` files +- Aim to keep source files under ~100 lines; split longer files into named subfiles - `_extensions/` is vendored third-party code — do not review or modify it ### Quarto From 29ceaa03ace3587bca284cffd846eb86832a55bf Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 16 Jun 2026 06:18:52 +0000 Subject: [PATCH 2/2] CLAUDE.md: scope file-length convention to .qmd and name _subfiles/ Address review on #910: qualify 'source files' as '.qmd' (a 100-line cap is too tight for R package code in R/), and name the established _subfiles/ directory as the split target. https://claude.ai/code/session_01NQSLJmjMN22RpwpgJ6Lw6u --- CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 66069ed05..b099e21cf 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -36,7 +36,7 @@ Before committing any `.qmd`, `.R`, or config file change: ### File Structure - Subfiles (`_subfiles/`) must NOT begin with a section heading — place headings in the parent `.qmd` - Link to `.qmd` source files, not rendered `.html` files -- Aim to keep source files under ~100 lines; split longer files into named subfiles +- Aim to keep `.qmd` source files under ~100 lines; split longer files into named subfiles in `_subfiles/` - `_extensions/` is vendored third-party code — do not review or modify it ### Quarto