Skip to content

a local_path skill is installed under its folder's name, not the name in SKILL.md #367

Closed

Description

@karanb192

What happens
With skills: [{source: local_path, path: .}] run from a copy of a skill whose folder is named differently from its SKILL.md name (for example a snapshot folder snap/ holding name: my-skill), Claude Code lists the installed skill as snap (my-skill), and the agent invokes it by the folder name. With the folder renamed to match, it is listed as my-skill.

Why it matters
In benchmark mode the with_skill arm then runs a skill under a name its own text never uses, which can skew the comparison without any warning.

Suggested fix
Install into .claude/skills/<name from SKILL.md frontmatter>/, or warn when the folder name and the frontmatter name differ.

Activity

  1. moved this from Backlog to In progress in skill-up projecton Nov 11, 2026
  2. Walternater commented on Nov 13, 2026

    @Walternater
    Contributor

    Opened #400 for this.

    Went with the "install under the SKILL.md name" option: SkillConfig now carries the declared name (read via the existing frontmatter parser) and the default install target uses it, falling back to the source folder name when SKILL.md is missing, has no name, or the name is not a safe single path element. An explicit skills[].target still wins, and the default run-skill cleanup before an agent judge now removes the same name.

    Verified with a real run (environment: none, claude_code, snapshot folder snap/ holding name: my-skill): before, .claude/skills/snap/; after, .claude/skills/my-skill/.

  3. moved this from In progress to Done in skill-up projecton Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions