Repository navigation
perf(skills): cut the guidance every call carries: references lead with their answer, docs fetched by section - #194
Merged
Merged
Conversation
…ched by section Every Uno FieldCheck session fetched whole docs pages (2,000 to 6,400 tokens each) that then stayed in context for the 220 to 330 calls after: 54 of the 79 references opened with "Step 1: fetch the page", and the hubs told the agent to ground every detail in the docs. Each reference now puts its rules first and its docs pages last, as a fallback fetched by anchor, and the hubs say so. The questions four sessions in a row took to the docs are answered where the agent already looks: refreshing a feed with a Signal (feed-basics), commands running on a background thread (commands), the Android back button and Android 16's subscription rule (navigation code), and attaching a file with FileOpenPicker (the attach-file recipe). The TabBar reference names the sections of its 6,000-token page. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0139QbnmnkBmmnbb4nFTVMrx
…rence The uno_health codes, licensing tiers and Community fallbacks matter only when the tools are missing, so they move to references/availability.md. Step 2 keeps its rule without the App MCP 1.4 measurements, and the Studio UI and restart rules no longer repeat workflow step 8. SKILL.md goes from 19,027 to 16,388 characters. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0139QbnmnkBmmnbb4nFTVMrx
…s repeating the skill's rules uno-dev always loads uno-build-app first, so its copy of the skill's rules was in every call twice. New app mode had nothing to discover in an empty folder; new-app.md now carries the baseline step instead, refers to rule 10 for UseStudio, and drops the Uno.Templates 7.0.0-dev.77 version log. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0139QbnmnkBmmnbb4nFTVMrx
Measured from billed context: how much each reference grew the next call's input in the 2026-10 FieldCheck sessions. At 4 the report understated every file by about 40%. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0139QbnmnkBmmnbb4nFTVMrx
kazo0
force-pushed
the
dev/steve/skills-context-trim
branch
from
October 17, 2026 14:13
7204b6a to
24b2a2f
Compare
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): n/a (internal)
PR Type
What is the current behavior?
In every Uno FieldCheck session, guidance takes 65–89k tokens of each model call's context. Guidance means skill bodies, skill references, docs pages and the
uno_discover_toolsresult. MAUI takes 4–7k on the same benchmark (unoplatform/private#1201). Guidance stays in context from the call that loads it to the end of the session, so every token is paid on the 220–340 calls after it.The audit behind this PR found three main sources:
uno-testing'sSKILL.md:uno_healthcodes, licensing tiers and Community fallbacks, which matter only when the tools are missing.uno-devrepeatsuno-build-app's rules, which it always loads first. In new-app mode it also loadsdiscovery.md, though there is nothing to discover in an empty folder.What is the new behavior?
2eb5715, references lead with their answer. Each reference puts its rules first and its docs pages last, as a fallback fetched byanchor, and the four hubs say so. The questions sessions kept taking to the docs are now answered where the agent already looks:Signal(feed-basics);code.md);FileOpenPicker(a new build-app recipe).The TabBar reference names the sections of its 6,000-token page.
4dcdef5,uno-testingavailability detail moves toreferences/availability.md. Step 2 keeps its rule, and repeats of workflow step 8 are cut.SKILL.mdgoes from 19,027 to 16,388 characters.3fc3c1b,uno-devstops repeating the skill's rules. Applies to the agent and its Codex copy. New-app mode skipsdiscovery.md;new-app.mdgets the baseline step instead and drops the Uno.Templates 7.0.0-dev.77 version log.7204b6a, the CI size report counts 2.4 characters per token, measured from billed-context deltas in the 2026-10 sessions. At 4 the report understated every file by about 40%.Measured
skill-ab FieldCheck run
fieldcheck-20261016-211948(unoplatform/private#1204) compares the two versions on opus, two sessions each:main@471ef25and B is this branch.uno-devon Uno.Sdk 7.0.0-dev.81, App MCP 2.0.0-dev.15 and Uno.Extensions 8.0.0-dev.111.An earlier
uno-hot-reloadA/B (one session each) also passed every check on both sides. That scenario never fetches docs pages, so it shows the edits break nothing, not that they save anything.PR Checklist
Additional Information
Checks run on the branch:
.github/scripts/Test-Plugin.ps1,claude plugin validate . --strict,claude plugin validate plugins/uno-platform-studio --strict, andagentskills validateon all 7 skills. Theskills/mirror is synced.🤖 Generated with Claude Code
https://claude.ai/code/session_01AQ7Ex4N2tQcYujRXRq2hnD