Repository navigation
docs(skill): move setup, HTTP and worked examples from SKILL.md into references/ (no text removed) - #484
Open
AmrDab wants to merge 2 commits into
Open
docs(skill): move setup, HTTP and worked examples from SKILL.md into references/ (no text removed)#484AmrDab wants to merge 2 commits into
AmrDab wants to merge 2 commits into
Conversation
…o references/ SKILL.md is loaded in full every time the skill triggers. The connection config, HTTP endpoint table, worked call sequences, compound-to-granular map, per-OS setup and security notes are needed only sometimes, so they move, verbatim, to references/*.md, linked from SKILL.md. No line of text is removed: every original line is in SKILL.md or a reference file. SKILL.md: 37.9 KB -> 27.7 KB (~27% less loaded per trigger). sync-version copies references/ into skills/clawdcursor/ like SKILL.md; the drift test checks the copies and that every linked reference exists; skill-register copies them next to a copied SKILL.md; npm and .mcpb ship them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BKm7nbpP8aK35EfAYVt7NL
…-then-read (CodeQL) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BKm7nbpP8aK35EfAYVt7NL
This branch has not been deployed
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.
Requested by Amr · project thread
Summary
Every time the skill triggers, the agent loads all of SKILL.md. About a quarter of it is only needed some of the time: connection config, the HTTP endpoint table, worked call sequences, the compound-to-granular map, per-OS setup, security notes and bug reporting. This PR moves those sections, unchanged, into
references/*.mdand links them from SKILL.md. This is 3 of 5 separate simplification PRs.No text is removed. A script checked that every non-empty line of the old SKILL.md appears in the new SKILL.md or one of the reference files (0 missing). The only new text is two short pointer sections and a "References" list at the end. The canvas-drawing pointer says "read it before you draw" in bold.
SKILL.md goes from 37.9 KB to 27.8 KB, about 27% less loaded on every trigger.
Changes
SKILL.md: these blocks moved out:references/connecting.md.references/patterns.md.references/setup-and-security.md.scripts/sync-version.ts: copiesreferences/intoskills/clawdcursor/references/, the same way it copies SKILL.md.tests/version-drift.test.ts: checks that the copies are byte-identical and that everyreferences/…link in SKILL.md exists.src/surface/skill-register.ts: when registration falls back to copying instead of symlinking, it now copiesreferences/next to SKILL.md too. A symlinked registration already has the files. There's a test assertion for this.package.jsonfilesandscripts/build-mcpb.mjs: both shipreferences/.Test plan
npm run typecheck,typecheck:testsand lint: clean (0 errors)vitest --project unit: 4111 passed, 6 skipped. The steering, skill-register and version-drift tests include the new checks.npm run sync-versionis idempotent, and the plugin copy matches.Risk / scope
Generated by Claude Code