Skip to content

[Bug] Skill plugin scripts fail on first execution with relative path resolution #11011

Description

@corey-kdm

Bug Description
Code keeps struggling to run the scripts included with my Skill installed as a plugin. My SKILL.md refers to the script as scripts/jenkins.sh because that's how I've seen it done in the samples yet when it attempts to execute the script it gets a "No such file or directory" error always. Shouldn't the Claude Code machinery take care of adding the Skill base directory to the path so that these work correctly first try? Am I doing something wrong here or is this a bug caused by the fact that the Skill is installed as a plugin so the paths are different? On second try Claude Code uses the absolute path to the script and successfully executess but this really slows things down having it fail all the time on first attempt!

Environment Info

  • Platform: linux
  • Terminal: code
  • Version: 2.0.32
  • Feedback ID: 61746a2e-7980-4493-9b30-d21440d97d55

Errors

[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corebugSomething isn't workinghas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on LinuxstaleIssue is inactive

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions