Repository navigation
perf(skills): report skill file sizes and split the largest theme references - #181
Merged
Merged
Conversation
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
force-pushed
the
perf/skill-size-budget
branch
from
October 8, 2026 18:23
3b124a4 to
88b5827
Compare
kazo0
enabled auto-merge (squash)
October 9, 2026 15:58
kazo0
disabled auto-merge
October 9, 2026 15:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue (If applicable): #161 (partial; the issue stays open)
PR Type
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 lookupnote, anduno-themes/references/simple.md(11.3k), the largest reference read in the FieldCheck run, is a single file.What is the new behavior?
Test-Plugin.ps1): lists every file underskills/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.shell-*-template.mdfiles andsemantic-colors-brushes.mdare exempt (complete templates, lookup table) and must have a table of contents in their first 30 lines. They now do.Docs lookupnote is removed from 58 references. Their hubs (uno-mvux,uno-navigation,uno-themes,uno-toolkit) already state the rule once.simple.md(11.3k) becomessimple.md(setup and customization, 6.0k) plussimple-styles.md(Simple-only style keys and utility brushes, 3.8k).material.md(10.6k) becomesmaterial.md(installation, control styles, control extensions, C# Markup, 4.4k) plusmaterial-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.mdhas them, and the hub already routes those questions there.The splits follow the hub's existing topic-map rows, so
uno-themes/SKILL.mdgains no rows. Every code-formatted term from the old files was checked against the new files, the hub andsemantic-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'ssourcePath).Warnings: 15 at the start of this PR, 9 now.
PR Checklist
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.ps1passes;claude plugin validate . --strictandclaude plugin validate plugins/uno-platform-studio --strictpass.agentskills validatewas not run locally (no frontmatter changed).🤖 Generated with Claude Code
https://claude.ai/code/session_0174z2Vobf7pXT4VUMUZxczA