Skip to content

gh skill install --all: identical skills under skills/ and plugins/<name>/skills/ are rejected as conflicting names #14827

Open

Description

@ChanMeng666

Describe the bug

A repository that ships its Agent Skills both at the root (skills/<name>/SKILL.md, the Agent Skills convention) and inside a Claude Code / Cursor plugin folder (plugins/<plugin>/skills/<name>/SKILL.md, a byte-identical copy the plugin needs to be self-contained) cannot be installed with --all: discovery finds both and refuses.

Steps to reproduce

gh skill install ChanMeng666/archlang --all --agent cursor --scope project
Note: found 5 skill(s) using the plugins/ convention
cannot install skills with conflicting names; they would overwrite each other:
  archlang: [plugins] archlang/archlang, archlang
  archlang-export: [plugins] archlang/archlang-export, archlang-export
  ...

Installing by path (gh skill install ChanMeng666/archlang skills/archlang) works.

Expected behavior

When two discovered skills share a name and their contents are identical, install one of them (or prefer the root skills/ copy over the plugins/ one) instead of failing. Shipping the same skills as a standalone set and as part of a plugin is common, since plugin folders must be self-contained.

Environment

gh version 2.96.0 (2026-07-02), Windows 11.

Activity

  1. cli-triage commented on Oct 27, 2026

    @cli-triage

    Thanks for the detailed report. I traced this through the source: FindNameCollisions in internal/skills/discovery/collisions.go groups discovered skills purely by their Name field and flags any group of size > 1 as a conflict — it has no logic to check whether the colliding entries have identical content, and no preference between the skills/ convention and the plugins/*/skills/ convention. So the behavior you're seeing is the current code working as designed, not a bug: it's conservative by treating any name collision as unsafe to install, even when the sources are byte-identical copies (a common pattern for self-contained plugin bundles). I didn't find an existing duplicate issue for this. I'm suggesting enhancement (a request for smarter collision handling, e.g. content-equality dedup or preferring the root skills/ copy over plugins/) and gh-skill since it's scoped to gh skill install. Leaving priority to maintainers since this is a workaround-available edge case (installing by explicit path already works).

    Generated by Issue Triage (skills-driven) for #14827 · copilot · auto · 62.5 AIC · ⊞ 4.5K · ◷

  2. added
    enhancement
    gh-skill
    on Nov 2, 2026
  3. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.

    Unless you see the help wanted Contributions welcome label, we are not currently looking for external contributions for this feature.

    If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.

  4. removed
    needs-triage
    on Nov 2, 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

    enhancementgh-skill

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions