Skip to content

gh skill writes namespaced lock keys for flat installations, breaking skills update #15147

Backlog

Description

@YousefHadder

Describe the bug

For a namespaced skill, gh skill installs a flat directory but records the namespaced name in the shared ~/.agents/.skill-lock.json. The Vercel skills CLI then treats that lock entry as missing and fails to update it.

Affected versions

  • GitHub CLI 2.105.0
  • skills CLI 1.9.0

Steps to reproduce

  1. Install a GitHub-hosted namespaced skill with gh skill install, using user scope.
  2. Compare its flat installed directory name with its namespaced entry in ~/.agents/.skill-lock.json.
  3. Run skills update --global.

Expected vs actual behavior

The shared lock entry should be compatible with the installed directory and the skills updater. Instead, the updater reports the namespaced entry as missing and fails with No matching skills found.

Investigation

The installer records skill.InstallName(), which includes the namespace, but installs using the flat skill.Name. The lock file is intended for Vercel CLI interoperability.

Removing the duplicate namespaced lock entries while retaining the unprefixed entries and installed files restored skills update --global. Future gh skill installs or updates may recreate them.

Activity

  1. cli-triage commented on Nov 23, 2026

    @cli-triage

    Partly reproduced on 2.105.0.

    Using test data, a namespaced skill installed successfully, but the output tried to read the namespaced path even though installation uses a flat directory:

    $ gh skill install example.invalid/hello alice/deploy --scope user --agent github-copilot --force
    ✓ Installed alice/deploy (from example.invalid/hello@main) in ~/.copilot/skills
      alice/deploy/
      (could not read directory)

    The success line was stdout; the tree lines were stderr. Exit status: 0.

    Release 2.105.0 and source behaved the same. I could not run the separate skills update --global client, so its final error was not exercised.

    Supporting reports

    Generated by issue triage.

  2. added
    bug
    gh-skill
    priority-3
    on Nov 23, 2026
  3. removed
    needs-triage
    on Nov 23, 2026
  4. added
    auto-bugfix-ineligible
    on Nov 24, 2026
  5. wellparth commented on Nov 25, 2026

    @wellparth

    Hi maintainers 👋

    I've diagnosed the root cause and submitted PR #15158 with the fix and regression test coverage:

    1. Records skill.Name instead of skill.InstallName() in .skill-lock.json so lockfile keys match the flat directory layout on disk, unblocking Vercel skills update.
    2. Resolves the directory name with filepath.Base in printFileTree, resolving the (could not read directory) error noted in the triage reproduction above.
    3. Adds regression tests for single and batch installs, and tree rendering (incorporating Copilot code review recommendations).

    Could a maintainer please triage this issue and consider adding the help wanted label so PR #15158 can proceed with review? Thank you!

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

    auto-bugfix-ineligiblebuggh-skillpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions