Skip to content

fix(cli): generate correct script path for Claude SKILL commands#220

Open
wwenrr wants to merge 1 commit intonextlevelbuilder:mainfrom
wwenrr:fix/181-claude-script-path-commands
Open

fix(cli): generate correct script path for Claude SKILL commands#220
wwenrr wants to merge 1 commit intonextlevelbuilder:mainfrom
wwenrr:fix/181-claude-script-path-commands

Conversation

@wwenrr
Copy link
Copy Markdown

@wwenrr wwenrr commented Apr 1, 2026

Summary

Fix generated SKILL command paths so Claude users can run search.py from the skill folder directly.

Issue selection / triage

I targeted #181 and first verified there was no existing PR resolving it:

  • searched PRs referencing #181 / 181 in 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.md
    • replace hardcoded python3 skills/ui-ux-pro-max/scripts/search.py ...
    • with python3 {{SCRIPT_PATH}} ... in all command examples.
  • cli/assets/templates/platforms/claude.json
    • set scriptPath to scripts/search.py (correct when run from skill dir).

Manual verification (Docker)

To avoid host pollution, I verified using Docker (oven/bun:1.2):

  1. Build CLI
  2. Run init --ai claude --offline
  3. Inspect generated .claude/skills/ui-ux-pro-max/SKILL.md

Result: generated commands now consistently use:

  • python3 scripts/search.py ...

which matches the installed folder layout.

Closes #181

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.

How should Claude Code use this skill? Why does it keep running non-existent scripts?

1 participant