fix(cli): generate correct script path for Claude SKILL commands#220
Open
wwenrr wants to merge 1 commit intonextlevelbuilder:mainfrom
Open
fix(cli): generate correct script path for Claude SKILL commands#220wwenrr wants to merge 1 commit intonextlevelbuilder:mainfrom
wwenrr wants to merge 1 commit intonextlevelbuilder:mainfrom
Conversation
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
Fix generated SKILL command paths so Claude users can run
search.pyfrom the skill folder directly.Issue selection / triage
I targeted #181 and first verified there was no existing PR resolving it:
#181/181in title/body → none found.Root cause
The base template had hardcoded commands like:
python3 skills/ui-ux-pro-max/scripts/search.py ...But users run commands from inside the skill directory (e.g.
~/.claude/skills/ui-ux-pro-max), where the correct path is:python3 scripts/search.py ...That mismatch causes “file not found” behavior reported in #181 (and similar path-related confusion).
Changes
cli/assets/templates/base/skill-content.mdpython3 skills/ui-ux-pro-max/scripts/search.py ...python3 {{SCRIPT_PATH}} ...in all command examples.cli/assets/templates/platforms/claude.jsonscriptPathtoscripts/search.py(correct when run from skill dir).Manual verification (Docker)
To avoid host pollution, I verified using Docker (
oven/bun:1.2):init --ai claude --offline.claude/skills/ui-ux-pro-max/SKILL.mdResult: generated commands now consistently use:
python3 scripts/search.py ...which matches the installed folder layout.
Closes #181