Repository navigation
Move oversized README sections to their own docs pages - #18
Conversation
Technical reportCode review (inline, pre-PR) — two Moderate findings, both fixed in the commits they belong to:
One Minor finding fixed: the gate's behaviour in audit mode (report only, write nothing) is now stated. Final state: 0 Critical, 0 Moderate. Security review — 0 Critical, 0 Moderate. The new write path is bounded: the slug allows only ASCII letters, digits and Checks — |
Code ReviewStatus: needs-fix Findings🟠 Moderate 1. README and changelog claim that every section past 60 lines moves
🟠 Moderate 2. Scenario 11 does not make the
|
Code ReviewStatus: clean Summary: 0 Critical · 0 Moderate · 0 Minor · 0 Refactoring · assignment conformance: conformant · reviewer comments: none · posted summary to issue #16 |
Scenario 1 still expected installation and usage to delegate to the docs link, which contradicts the rule that Installation always shows the main install command and Quick start the first example.
ec6f818 to
60451ee
Compare
Code ReviewStatus: clean Summary: 0 Critical · 0 Moderate · 0 Minor · 0 Refactoring · assignment conformance: conformant · reviewer comments: none · posted summary to issue #16 |
What this changes
The skill now runs every composed README section through a size-and-complexity gate. A section outside the install path that trips it moves to
docs/<slug>.mdas a restructured page, and the README keeps a two- to four-line summary with the scale and a link.Closes #16
Why
On a repository with a large surface — a skill catalog, a rule set — one section grows into a table of dozens of rows and buries everything after it (#16: 150 of 443 lines in
ai-olympus). The generator had no rule to move it out, and its scope rules forbade writing anything butREADME.md.Changes
docs/layout, never overwrite, rerun without diffP1 and 1 cherry-pick onto
masteron their own; 2–6 build on 1.Defaults and their justification (in
references/section-split.md): more than 60 non-blank lines, or a table/list past 15 entries, three or more subsections with tables or lists, or nesting two levels deep. The install path (Requirements,Installation,Configuration,Quick start), the header,License, and prose with no repeating structure never move.Pre-existing fixes
ae40650— scenario 1 still required installation and usage to delegate to the docs link, contradicting the rule (merged in Align the README rules and this README with the shared README standard #17) thatInstallationalways shows the main install command.Checks
node --test tests/repository.test.mjspasses — on every commit (git rebase --exec)node --test tests/evals/*.test.mjspasses — on every commitCHANGELOG.mdupdated under the current unreleased headingSKILL.mdis changed everywhere it appears inreferences/— the write scope changed inSKILL.md,evidence-policy.md, and the cross-cutting invariants oftests/scenarios.mdClaims this adds to the documentation
docs/and never overwrites an existing page. Evidence:references/section-split.md. Not yet exercised in a recorded run.How to test
tests/scenarios.md: the catalogue lands indocs/<slug>.mdwith one#, an intro, a group index with counts; the README keeps a 2–4 line summary; short sections are unchanged; an existingdocs/rules.mdis not overwritten.TODO
tests/evals/run.mjs) copies onlyREADME.mdout of the workspace, and the scorer resolves links against the original fixture — a moved page would score as a broken link. No current fixture trips the gate, but a fixture for scenario 11 needs the harness to keep the writtendocs/pages.