Repository navigation
Conversation
`description` is the always-loaded field of a skill: per the Agent Skills specification it must be 1-1024 characters. 18 of the 79 skills exceeded it (longest 1522), which pushes training material into the field agents match against and can make a client reject or truncate the frontmatter. Shorten each over-limit description, keeping the trigger phrases, tool names and CVE/ATT&CK/CWE identifiers that drive skill selection; the bodies are untouched. Add tools/check_descriptions.py, which validates name and description for the whole Skills/ tree against the spec, and resync the 18 affected claude-skills.json entries. Fixes SnailSploit#30 Signed-off-by: Goldloli <39011904+Goldloli@users.noreply.github.com>
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.
Summary
The Agent Skills specification caps
descriptionat 1024 characters, and thefield is the always-loaded part of a skill — an agent matches against it before
any body is read. 18 of the 79 skills were over that cap (longest 1522, 5 over
1200), so the excess text was mostly feature inventory that the skill body
already carries.
This shortens each over-limit description, keeping the phrases that make the
skill selectable: tool names (GoPhish, EvilGinx2, Proxmark3, testssl.sh, pacu,
kube-hunter, …), CVE ids (POODLE, DROWN, FREAK, BEAST, Heartbleed, Baron
Samedit, DirtyPipe, PrintNightmare), MITRE ATT&CK techniques and CWE mappings.
Only the
descriptionline changes in each SKILL.md — no skill body,name, orsection is touched.
It also adds
tools/check_descriptions.py, so the limit is checked for thewhole tree instead of discovered per skill, and resyncs the 18 affected
claude-skills.jsonentries.Plan item
Closes #30
Testing
New checker fails on the unmodified tree and passes after the rewrite:
Negative control — making one description 1406 chars again makes the
checker report it and exit 1, so it is not a no-op.
No selection keywords lost: a diff of CVE ids, ATT&CK techniques, CWE ids
and tool names between the old and new text of all 18 files is empty. (This
caught
T1566.002/T1566.003being collapsed intoT1566.001-.003on thefirst pass; they are spelled out again.)
namestill matches the directory for all 79 skills, and the checkerverifies that too.
claude-skills.jsonmatches the frontmatter of all 79 skills with zerodescriptions over 1024.
./install.sh --listand./install.sh --dry-runstill enumerate andcopy every skill.
Each of the 18 SKILL.md diffs is exactly one changed line (
git diff --numstatreports1 1for all of them).Anything reviewers should look at carefully?
tools/build_manifest.pymis-parses folded (>) scalars: thedescriptionofSkills/active-directory/offensive-netexec/SKILL.mduses>and the parserstores the raw block text (including the
>and the newlines) instead of thefolded string. Running the script therefore rewrites that unrelated entry. I
left that alone and synced only the 18 descriptions this PR changes, so a plain
python3 tools/build_manifest.pyin review would produce aoffensive-netexecdiff that is pre-existing behaviour, not part of this change. Happy to fix the
folded-scalar parsing in a separate PR if you want it.