Fix/issue 11 skills not loading#12
Merged
Merged
Conversation
The "skills": "./skills" field pointed at the default skills/ directory, which Claude Code already auto-discovers. Pointing the skills manifest field at the default location is at minimum redundant and in newer Claude Code versions collides with the special-case rule that treats a path without a trailing slash as a directory containing SKILL.md directly — resulting in 0 skills registered. Removing the field lets default auto-discovery handle skills/ the same way it already handles agents/, which is why agents loaded fine while skills did not. Fixes #11
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
This PR removes the redundant
skillsfield from the plugin manifest, so that Claude Code's default skill auto-discovery loads all 20 skills instead of registering zero."skills": "./skills"entry colliding with newer Claude Code loader behavior.skills/directory is auto-discovered the same wayagents/already is, which is why agents worked in 2.6.0 and skills did not."source": "./plugin"in.claude-plugin/marketplace.json) is officially supported; only the redundant field had to go.Behavior changes
Before:
plugin/.claude-plugin/plugin.jsondeclared"skills": "./skills". Per the Claude Code plugin reference (code.claude.com/docs/en/plugins-reference), theskillsfield is meant to declare additional skill directories beyond the defaultskills/. Newer loader versions apply a special-case rule (reference line 555) where askillspath without a trailing slash is treated as a directory containingSKILL.mddirectly. The loader therefore looked forplugin/skills/SKILL.md, found nothing, and registered 0 skills. Agents were unaffected because the manifest never declared anagentsfield, so the defaultagents/auto-discovery ran normally.After: with the
skillsfield removed, default auto-discovery walksplugin/skills/the same way it walksplugin/agents/, finds all 20SKILL.mdfiles in their subdirectories, and registers them.What to look at first
agents/directory already works correctly via auto-discovery with no manifest entry..claude-plugin/marketplace.jsondeclares"source": "./plugin", which is the documented pattern for plugins that live in a subdirectory. No structural move is required.How this was tested
agents/has no corresponding"agents"field and loads correctly in 2.6.0, so removing theskillsfield puts skill loading on the same footing.Files of interest
plugin/.claude-plugin/plugin.json— the actual fix; theskillsfield is removed and version bumped to 2.6.1..claude-plugin/marketplace.json— version bump to 2.6.1 to keep the marketplace entry in sync with the plugin manifest.