Skip to content

Add JSON index regenerator; rebuild claude-skills.json (78 to 79) - #59

Merged
SnailSploit merged 1 commit into
SnailSploit:mainfrom
Karam2024-jordan:regen-skills-index
Nov 11, 2026
Merged

SnailSploit merged 1 commit into
SnailSploit:mainfrom
Karam2024-jordan:regen-skills-index

Conversation

@Karam2024-jordan

Copy link
Copy Markdown

The existing convert_skills.py does not produce claude-skills.json — it
reads a lowercase skills/ dir and emits reformatted SKILL.md files + zips.
Nothing in the repo rebuilt the JSON index, so it had drifted from disk.

Add regen_index.py, which rebuilds claude-skills.json from the real
SKILL.md files:

  • reads YAML frontmatter (name/description) via PyYAML, with a regex
    fallback when PyYAML is absent
  • falls back to the "## Description" section body for older
    "## Metadata"-format skills that have no frontmatter description
  • derives category from the Skills/// path
  • preserves the original top-level metadata and recomputes counts
  • path-relative (Path(file).parent), so it runs from any clone

Regenerated index: 79 skills / 23 categories, adding offensive-netexec
(previously present on disk but missing from the index) and filling all
28 descriptions that were empty (51 frontmatter + 28 section fallback,
0 empty). Ignore *.bak.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

The existing convert_skills.py does not produce claude-skills.json — it
reads a lowercase skills/ dir and emits reformatted SKILL.md files + zips.
Nothing in the repo rebuilt the JSON index, so it had drifted from disk.

Add regen_index.py, which rebuilds claude-skills.json from the real
SKILL.md files:
- reads YAML frontmatter (name/description) via PyYAML, with a regex
  fallback when PyYAML is absent
- falls back to the "## Description" section body for older
  "## Metadata"-format skills that have no frontmatter description
- derives category from the Skills/<category>/<skill>/ path
- preserves the original top-level metadata and recomputes counts
- path-relative (Path(__file__).parent), so it runs from any clone

Regenerated index: 79 skills / 23 categories, adding offensive-netexec
(previously present on disk but missing from the index) and filling all
28 descriptions that were empty (51 frontmatter + 28 section fallback,
0 empty). Ignore *.bak.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@SnailSploit
SnailSploit merged commit b036941 into SnailSploit:main Nov 11, 2026
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.

2 participants