Skip to content

perf(skills): report skill file sizes and split the largest theme references - #181

Merged
kazo0 merged 5 commits into
mainfrom
perf/skill-size-budget
Oct 9, 2026
Merged

kazo0 merged 5 commits into
mainfrom
perf/skill-size-budget

Conversation

@kazo0

@kazo0 kazo0 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): #161 (partial; the issue stays open)

PR Type

  • Build or CI related changes
  • Documentation content changes

What is the current behavior?

Nothing reports the size of skill files. 16 reference files are over 6,000 characters (about 1,500 tokens), 58 of them repeat the same 277-character Docs lookup note, and uno-themes/references/simple.md (11.3k), the largest reference read in the FieldCheck run, is a single file.

What is the new behavior?

  • Size report (Test-Plugin.ps1): lists every file under skills/ with its character count and estimated tokens (4 characters per token, not yet calibrated against the tokenizer), in the job log and the step summary. Line endings are counted as LF, so a Windows checkout reports what CI reports.
  • Reference budget: references over 6,000 characters are reported as warnings until the remaining ones are split; then they become errors. The three shell-*-template.md files and semantic-colors-brushes.md are exempt (complete templates, lookup table) and must have a table of contents in their first 30 lines. They now do.
  • Shared boilerplate: the repeated Docs lookup note is removed from 58 references. Their hubs (uno-mvux, uno-navigation, uno-themes, uno-toolkit) already state the rule once.
  • simple.md (11.3k) becomes simple.md (setup and customization, 6.0k) plus simple-styles.md (Simple-only style keys and utility brushes, 3.8k).
  • material.md (10.6k) becomes material.md (installation, control styles, control extensions, C# Markup, 4.4k) plus material-customization.md (palette, brush and font overrides, migration, 2.7k). Its copies of the palette keys, brush opacity table and type scale are dropped; semantic-colors-brushes.md has them, and the hub already routes those questions there.

The splits follow the hub's existing topic-map rows, so uno-themes/SKILL.md gains no rows. Every code-formatted term from the old files was checked against the new files, the hub and semantic-colors-brushes.md. Deliberately dropped: rules the hub already states (unprefixed typography keys, {ThemeResource} for brushes), and the hand-built docs page paths (the docs searches stay, per the hub rule to fetch by a search result's sourcePath).

Warnings: 15 at the start of this PR, 9 now.

PR Checklist

  • Documentation has been added/updated
  • Associated with an issue (GitHub or internal)

Additional Information

Still over budget: uno-testing/references/ui.md, VISUAL-TREE-GUIDE.md, assertions.md, INTERACTION-PATTERNS.md; uno-toolkit/references/flexpanel.md, card.md; uno-build-app/references/architecture-baseline.md, new-app.md, design.md. The FieldCheck re-run (third acceptance criterion) and the token ratio calibration are left for after the remaining splits.

Verified locally: Test-Plugin.ps1 passes; claude plugin validate . --strict and claude plugin validate plugins/uno-platform-studio --strict pass. agentskills validate was not run locally (no frontmatter changed).

🤖 Generated with Claude Code

https://claude.ai/code/session_0174z2Vobf7pXT4VUMUZxczA

kazo0 and others added 5 commits October 7, 2026 11:08
List every skill file with its character count and an estimated token
count (4 characters per token) in the job log and the step summary.
References over 6,000 characters are reported as warnings until the
existing ones are split; complete templates and lookup tables are exempt
but need a table of contents.

Refs #161

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0174z2Vobf7pXT4VUMUZxczA
The same 277-character note was repeated in 58 reference files. Each of
their hubs (uno-mvux, uno-navigation, uno-themes, uno-toolkit) already
states the docs search rule once.

Refs #161

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0174z2Vobf7pXT4VUMUZxczA
…e size budget

The three shell templates and the semantic colors lookup table stay whole,
so an agent needs a contents list to read only the section it wants.

Refs #161

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0174z2Vobf7pXT4VUMUZxczA
simple.md (11.3k characters) was the largest reference read in the
FieldCheck run. It now covers SimpleTheme setup and customization
(6.0k); the Simple-only style keys and utility brushes move to
simple-styles.md (3.8k), which the hub routes to directly.

Facts stated twice in the file are stated once, the rule on unprefixed
typography keys is left to the hub's critical rules, and the docs
section keeps the searches but drops the hand-built page paths.

Refs #161

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0174z2Vobf7pXT4VUMUZxczA
…on references

material.md (10.6k characters) repeated the palette keys, the brush
opacity table and the type scale from semantic-colors-brushes.md, where
the hub already routes those questions; those sections now point there.
Installation, control styles, control extensions and C# Markup stay in
material.md (4.4k); palette, brush and font customization and version
migration move to material-customization.md (2.7k), matching the hub's
existing topic map rows.

Refs #161

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0174z2Vobf7pXT4VUMUZxczA
@kazo0
kazo0 force-pushed the perf/skill-size-budget branch from 3b124a4 to 88b5827 Compare October 8, 2026 18:23
@kazo0
kazo0 enabled auto-merge (squash) October 9, 2026 15:58
@kazo0
kazo0 disabled auto-merge October 9, 2026 15:58
@kazo0
kazo0 merged commit cd584b1 into main Oct 9, 2026
4 checks passed
@kazo0
kazo0 deleted the perf/skill-size-budget branch October 9, 2026 15:58
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