Repository navigation
Description
SKILL.md line 243 already splits Background by audience:
Include a deep background for a beginner, marked so a familiar reader can
skip it, then a narrow background covering exactly the code the change
touches.
No sample marks anything. Seven of eight carry no subheading in Background; the eighth's names a topic, not the skip point. So a familiar reader cannot skip the deep background, and the run still paid to write it.
Two levels
Line 243 already names the readers. Reuse its words:
beginner: the page as written today.familiar: no deep background, and Intuition cut to the core idea.
Neither section goes away whole. The narrow background covers exactly the code this change touches, which is new to any reader. Intuition is about the change rather than the area, so a maintainer needs it, and line 247 already scopes it to "the essence, not the full detail" with toy data and diagrams as the expansion to drop.
Size
| Section | Bytes | Share of section bytes |
|---|---|---|
| Code walkthrough | 108,433 | 42.3% |
| Quiz | 56,966 | 22.2% |
| Intuition | 50,249 | 19.6% |
| Background | 40,838 | 15.9% |
I measured this across the eight samples. Background and Intuition together are 35.5%, so nothing here saves more than about a third of the page. What actually gets cut is the deep background and the toy-data portion, and nothing measures those, because no page marks where they end. The marking makes the number measurable.
The descriptions have to declare it
The SKILL.md frontmatter is what a model reads when choosing a skill. It names the four sections as the output, which contradicts a familiar page, and every trigger it lists is beginner-level phrasing, so "explain PR 1234 for someone who knows this module" matches nothing. A level written into step 3 and left out of the description will not get chosen.
.claude-plugin/plugin.json carries a second description and has to agree.
Where the level is recorded
In the provenance line, not the title. The title should name the change. The provenance line already carries the repo, the ref, and the date, and sits under the lead where a reader sees it without scrolling. A forwarded page then says whether the deep background is absent because the change needed none or because the run skipped it.
Open question
The quiz is the only section that would go away whole at familiar, and it is 22.2% of section bytes. Whether a familiar reader wants one is unmeasured.
Decide it here rather than per run.
Decided in #23: the quiz stays at both levels in this version.
Scope
SKILL.mdfrontmatter: name the two levels, add a trigger carrying the audience..claude-plugin/plugin.json: match it.SKILL.mdstep 3: mark the deep background; same split for Intuition.SKILL.mdoutput contract: the provenance line records the level.SKILL.mdstep 7: condition the quiz checks at lines 626 and 633 only if the quiz becomes optional. The callout floor at line 619 needs no change, since Background, Intuition, and Code all survive.html-template.html: markup for the skippable part that stays out of the table of contents.
Progress
- moved steps 4 to 7 into references and a validation script #7: groundwork. Moved steps 4 to 7 into
references/and the checks intovalidate-output.sh. - gave explanation pages a fixed structure and sized the quiz to the change #22: shorter pages with a fixed structure: a lead, a heading per core edit, an "Also changed" table, and a quiz sized to the change.
- added a familiar level beside beginner and a quiz answer check #23: the
familiarlevel, which covers the Scope list above.- The frontmatter and
plugin.jsonname both levels, with a trigger that carries the level. - Step 3 puts the deep background in one collapsed block on beginner pages, and cuts Intuition to the core idea on familiar pages.
- The provenance line records the level and where it came from.
- The template's existing
details.skippableblock is for beginner pages only. - The step 7 quiz checks need no change, because the quiz stays at both levels.
- The frontmatter and
Next release
These length targets are outside #4's scope and don't block closing it. They move to a follow-up issue when that work starts.
- Reach 20% fewer words on fastapi PR 16102 and uPortal PR 2924. They came in at −15.5% and −19.1% in gave explanation pages a fixed structure and sized the quiz to the change #22.
- Make a single-file page the shortest at its level. The familiar page for fastapi commit
cc96fd3is longer than the ones for fastapi PR 16102 and TanStack PR 11305. - Keep Background no longer than the Code walkthrough on beginner pages. added a familiar level beside beginner and a quiz answer check #23 still misses this on some targets.
Activity
ported the length and quiz checks to the TypeScript validator
fixed validator bugs and rule gaps from review and the sample runs
regenerated the samples under the new length rules
removed the banner-only coverage test case