Skip to content

docs: optimize skill files — dedup prose, add TOCs, sync SPEC mirrors#440

Merged
sahil-noon merged 1 commit into
mainfrom
jade-wren
Jun 20, 2026
Merged

docs: optimize skill files — dedup prose, add TOCs, sync SPEC mirrors#440
sahil-noon merged 1 commit into
mainfrom
jade-wren

Conversation

@sahil-noon

Copy link
Copy Markdown
Collaborator

Summary

Batch /internal-skill-optimize pass over src/kit/skills/ — condenses skill files by removing prose that re-explains concepts already owned by the shared _*.md partials, adds table-of-contents blocks to long files, and keeps every docs/specs/skills/SPEC-*.md mirror in sync per the constitution's SPEC-mirror rule. All edits are behavior-preserving: every behavioral step, error case, command invocation, and STOP string survives — fewer words for the same logic.

Changes

  • Content trims (16 skills ≥80 lines): replaced re-explanation of partial-owned concepts (SRAD, subagent dispatch, per-stage model resolution, intake/plan generation, review dispatch, pipeline bracket) with brief references; collapsed duplicated restatements to one canonical statement; deduped redundant error-table and argument rows; consolidated repeated output blocks while preserving every literal message string. The 7 lean skills (<80 lines) were left untouched.
  • Table-of-contents (33 files): added a ## Contents block to every skill and partial over 100 lines (placement: H1 → _preamble blockquote → ## Contents → first section; headings listed verbatim). Includes git-branch and the single-section _intake per the mechanical >100-line rule. All 33 TOCs verified (fence-aware) to match their real ## headings.
  • SPEC mirrors (23 files, verify-then-touch): each edited skill's SPEC-*.md received a dated (260620-skop) prose-optimization annotation; the 5 SPEC files over 100 lines also received ## Contents blocks. No SPEC behavior sections (Summary/Flow/Tools/Sub-agents) changed — the edits are behavior-preserving.

Notes

  • src/kit/skills/_cli-fab.md and _cli-external.md have no SPEC mirror (SPEC-_cli-fab.md / SPEC-_cli-external.md don't exist). TOCs were added to those two partials with no SPEC to update — a pre-existing gap, not introduced here.
  • Most files grew in line count: the mandatory TOCs (8–23 lines each) outweigh the prose trims, though word counts dropped across the board.

🤖 Generated with Claude Code

Batch /internal-skill-optimize pass over src/kit/skills/:
- Content trims on 16 skills (>=80 lines): replace re-explanation of
  partial-owned concepts with references, collapse duplicated
  restatements, dedup error/arg rows. Behavior-preserving.
- Add ## Contents TOC to all 23 skill files + 8 partials over 100 lines
  (incl. git-branch and single-section _intake per the mechanical rule).
- SPEC mirrors (verify-then-touch): dated (260620-skop) prose-optimization
  annotation on each edited skill's SPEC; TOCs added to the 5 SPEC files
  over 100 lines. No behavioral SPEC sections changed.
@sahil-noon sahil-noon marked this pull request as ready for review June 20, 2026 13:55
@sahil-noon sahil-noon merged commit 2698b53 into main Jun 20, 2026
3 checks passed
@sahil-noon sahil-noon deleted the jade-wren branch June 20, 2026 13:55
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.

2 participants