Skip to content

fix(skills): keep every description within the 1024-character spec limit - #71

Open
Goldloli wants to merge 1 commit into
SnailSploit:mainfrom
Goldloli:fix/skill-description-length
Open

Goldloli wants to merge 1 commit into
SnailSploit:mainfrom
Goldloli:fix/skill-description-length

Conversation

@Goldloli

Copy link
Copy Markdown

Summary

The Agent Skills specification caps description at 1024 characters, and the
field 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 description line changes in each SKILL.md — no skill body, name, or
section is touched.

It also adds tools/check_descriptions.py, so the limit is checked for the
whole tree instead of discovered per skill, and resyncs the 18 affected
claude-skills.json entries.

Plan item

Closes #30

Testing

  • New checker fails on the unmodified tree and passes after the rewrite:

    $ git stash && python3 tools/check_descriptions.py
    ... 18 problem(s) in 79 skills          (exit 1)
    $ git stash pop && python3 tools/check_descriptions.py
    OK: 79 skills conform to the Agent Skills spec   (exit 0)
    
  • 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.003 being collapsed into T1566.001-.003 on the
    first pass; they are spelled out again.)

  • name still matches the directory for all 79 skills, and the checker
    verifies that too.

  • claude-skills.json matches the frontmatter of all 79 skills with zero
    descriptions over 1024.

  • ./install.sh --list and ./install.sh --dry-run still enumerate and
    copy every skill.

  • Each of the 18 SKILL.md diffs is exactly one changed line (git diff --numstat reports 1 1 for all of them).

Anything reviewers should look at carefully?

tools/build_manifest.py mis-parses folded (>) scalars: the description of
Skills/active-directory/offensive-netexec/SKILL.md uses > and the parser
stores the raw block text (including the > and the newlines) instead of the
folded 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.py in review would produce a offensive-netexec
diff 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.

`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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

18 skill descriptions exceed the 1024-character Agent Skills spec limit (longest 1522)

1 participant