Repository navigation
perf(skill): split artifact guidance into focused references - #9350
Closed
kaoru0822-kitauji wants to merge 5 commits into
Closed
kaoru0822-kitauji wants to merge 5 commits into
kaoru0822-kitauji wants to merge 5 commits into
Conversation
Contributor
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummarySplits artifact guidance into focused references and shortens
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A["Authored entry and references"] --> G["Generate and pin commands"]
G --> P["Packaged skill"]
P --> S["Setup and freshness checks"]
P --> Q["Guidance search"]
M["MANAGED_SKILL_FILES"] --> S
M --> Q
M --> U["Uninstall"]
Reviews (4) · Last reviewed commit: "perf(skill): load target guidance throug..." · Reviewed by Greptile |
3 tasks
* perf(skill): load target guidance through a concise entry point * fix(skill): keep recovery and capture guidance reachable * fix(skill): preserve native guide bookmarks across renderers * fix(skill): keep the managed anchor in its owning section * docs(skill): explain CLI summary export envelopes * chore(skill): retain upstream test formatting
Collaborator
Author
|
Maintenance claim for this session (2026-11-12): I am updating this PR in a fresh isolated worktree, merging current main a8527d4 into codex/context-skill-entry, reviewing existing feedback and preserving its focused scope. I will push normally after checking the remote head and refresh validation evidence. Please coordinate here before concurrent edits to this branch. |
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.
Related to #8084. First of two focused skill-context changes; follows the compatibility and measurement lessons in #7127, #9046, #9151 and #7228.
At the original baseline, a firmware or archive task loaded an 835-line native guide. Move its offline format, package and firmware sections into three condition-named references. Every original native-guide paragraph is preserved (whitespace-normalized comparison), and old file/heading links forward to the new owners. Native lifecycle/annotation guidance remains in its original file. No new target authority or MCP contracts.
Setup, doctor, uninstall and installed-guidance search share the extended managed-file inventory. The setup test now compares that inventory with every packaged Markdown file, verifies installed bytes, backups, idempotency and local links, and computes conformance commitments from the same owner. Added four installed-guidance retrieval cases. Generated skill metadata advances to 61; ignored outputs are regenerated, not committed.
Text-only context comparison against main
72d5e72e6, tokenx 1.3.0 estimates, summing authored SKILL.md plus the complete selected guide:The entry grows 133 estimated tokens temporarily to expose the new paths; the follow-up shortens it. Counts exclude unchanged MCP definitions, arguments and results, filesystem-tool wrappers and model reasoning. These are conditional read-path estimates, not observed agent consumption or proof of routing quality. A bounded single-process counter read all nine before/after paths: first pass 33.75 ms wall / 40.69 ms user+system CPU / 65.70 MiB peak RSS; warm in-process pass 23.15 ms / 23.40 ms CPU / 67.36 MiB cumulative peak. There are no child processes in this counter, so its peak is also the process-family peak. Filesystem caches were not flushed. These numbers profile the text counter, not REA analysis. No analysis-time or whole-agent CPU/memory benefit is claimed.
Executed with Node 24.22.1 and npm 11.16.0:
npm run build:cached,npm run check:fast,npm run docs:check— passed (9 README consistency cases).npm run test:focused -- tests/boundary/filesystem/setupSkill.test.ts tests/boundary/filesystem/generatedSkill.test.ts tests/boundary/guidanceSearch.test.ts tests/acceptance/setup/selectedSkillSetup.test.ts— 38/38 passed.git diff --check— passed.Automated review found that duplicate forwarding headings won guidance-search ranking. Consolidated those pointers under explicit legacy anchors, leaving the substantive sections as the heading owners. First-result assertions now cover raw/Cortex-M, ESP, Bun and PE-import queries; the Bun assertion reproduced the final leftover forwarding section before its correction. The inventory comparison now normalizes the OS path separator. The affected 25 setup/search cases passed across the focused reruns; docs and pre-push typecheck/lint also passed.
macOS arm64 only. Real Ghidra/IDA/Hopper and model routing are not verified in this preparatory change. No lifecycle implementation changes; existing cleanup regressions remain intact. Scope decision: not applicable, documentation/packaging within existing capabilities.
Latest integration: merged main
8358cfcab3into4ca8ff52ab, preserving its desktop-build reference and Go static-string guidance in the moved format owner. Managed metadata is version62.build:cached, typecheck/lint, and all25 focused setup/routing tests passed after the merge. No MCP-owned files differ from the pinned base.Author readiness
Human owner: @kaoru0822-kitauji