Commit ac858db
docs: slim CLAUDE.md to a spine + topical pointer table
CLAUDE.md was 688L / 40KB and was injected into every session — most
of its bulk was topical pitfalls only relevant when working on a
specific subsystem (Prefab UI, typed cache, OpenAPI spec, API
helpers). Every session paid that context tax even for topics never
touched.
This commit completes the refactor started in the previous commit:
- Replace the ~293-line Known Pitfalls section with a short
Cross-cutting list (5 genuinely repo-wide rules — null SKUs,
generated files, raw list mocks, kwargs, worktree safety) plus a
6-row Topical pointer table. Each row lists the most-greppable
keywords inside (DataTable, archive, ListResponse, uv.lock,
HEAD:refs/heads, …) so an agent grepping CLAUDE.md lands on the
right pointer with enough context to follow the link.
- Delete the 65-line "API Response Handling Best Practices"
section; the content lives in
katana_public_api_client/docs/guide.md and is reachable via the
topical table.
- Extend the Detailed Documentation table with rows for the three
new subsystem docs added in the previous commit.
Final size: 381L / 22KB — a 45% reduction.
Also update stale section pointers in three harness files that
referenced sections that moved:
- .claude/agents/domain-advisor.md (4 citations now pointing at
guide.md / spec-authoring.md / prefab/README.md).
- .claude/skills/techdebt/SKILL.md and
.claude/skills/pre-commit/SKILL.md (anti-pattern source
citations).
The "rebase before PR" rule that previously lived in CLAUDE.md is
already enforced by /open-pr and /review-pr CRITICAL sections, so
the topical table delegates to the skills rather than duplicating
the rule.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 2434876 commit ac858db
4 files changed
Lines changed: 66 additions & 371 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments