Skip to content

Wiki: split the monolith, and cut CLAUDE.md to steering and rules - #30

Merged
damusix merged 1 commit into
mainfrom
retro/wiki-split
Aug 9, 2026
Merged

Wiki: split the monolith, and cut CLAUDE.md to steering and rules#30
damusix merged 1 commit into
mainfrom
retro/wiki-split

Conversation

@damusix

@damusix damusix commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Single squashed commit. Supersedes #29 — identical tree, same content.

docs/wiki/index.md was 133,893 chars in a single file and @-ref'd as auto-loaded, so all of it entered every session; ## Domain detail alone was 101,856 of that. It is now a 9,427-char router, with the twelve domains in their own files that load only when read. CLAUDE.md had the same shape — 23,353 chars, 20,222 of it one lookup table, now at docs/wiki/feature-map.md.

Both drifted for the same reason: docs/wiki/CLAUDE.md was still the NestJS/pnpm scaffold and had never been filled in, so every refresh re-derived domains and build commands from placeholder examples.

Two fixes from the refreshed scan were worth doing rather than filing. The modeling skill restated linter rules, key derivation, and the ignatius.yml schema while citing none of them — and the mechanism its design prescribed was itself broken, because npx skills add copies only skills/, so every repo path written inside it is a dead link on a user's machine. Eight such citations are gone, four of which predated this branch, and a check now fails the build on any repo path under skills/. Separately, /api/flow returned a different shape when a model had no flows/ directory, so a consumer reading entityModel broke only on those models.

CLAUDE.md also drops its Testing and Frontend sections: bun test finds 0 files and exits 1 here, and docs/wiki/index.md already documented the real harness correctly.

docs/wiki/index.md was 133,893 chars in one file and @-ref'd as
auto-loaded, so all of it entered every session — 101,856 of that was
`## Domain detail` alone. It is now a 9,427-char router with the twelve
domains in their own lazily-read files. CLAUDE.md had the same shape:
23,353 chars, 20,222 of it one lookup table, now at
docs/wiki/feature-map.md.

Both drifted because docs/wiki/CLAUDE.md was still the NestJS/pnpm
scaffold and had never been filled in, so every refresh re-derived
domains and build commands from placeholder examples.

Also fixes what the refreshed scan surfaced. The modeling skill cited
none of the four canonical docs its design requires, so a rule change
had nothing to update against — and the design's prescribed fix was
itself broken, since `npx skills add` copies only skills/, making every
repo path inside it a dead link on a user's machine. Eight such
citations removed, with a check that now fails the build on any repo
path in skills/. /api/flow also returned a different shape for models
with no flows/ dir, breaking any consumer reading entityModel.
@damusix
damusix merged commit 4269254 into main Aug 9, 2026
2 checks passed
@damusix
damusix deleted the retro/wiki-split branch August 9, 2026 05:51
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.

1 participant