Skip to content

gh skill update reports success when a repository cannot be resolved #15092

Open

Agent suggestions

Public preview

Description

@worldofgeese

Problem

gh skill update --all --dry-run exits with status 0 when it cannot resolve a selected skill's repository. It also reports that all skills are up to date.

This makes an automated update report success when the update check failed.

Reproduction

  1. Create skills/fixture/SKILL.md:

    ---
    name: fixture
    description: Test fixture
    metadata:
      github-repo: https://github.com/mattpocock/skills
      github-path: skills/engineering/improve-codebase-architecture
      github-ref: refs/heads/main
      github-tree-sha: 0000000000000000000000000000000000000000
    ---
    # Fixture
  2. Set HTTPS_PROXY=http://127.0.0.1:9 and set GH_TOKEN to a placeholder.

  3. Run gh skill update --all --dry-run --dir skills -- fixture.

The command prints Skipping fixture: could not resolve, then All skills are up to date., and exits 0.

Expected

The command exits nonzero when it cannot check a selected skill. It does not report that all skills are up to date.

Environment

GitHub CLI 2.104.0 on Linux x86_64.

Activity

  1. worldofgeese commented on Nov 18, 2026

    @worldofgeese
    Author

    A related case also returns status 0: point --dir at an empty directory and run gh skill update --all --dry-run --dir DIR -- fixture. The command prints No installed skills found. even though the explicitly selected skill was not checked.

  2. cli-triage commented on Nov 18, 2026

    @cli-triage

    Reproducible on 2.105.0.

    Using test data where the selected skill repository returned an API error:

    $ gh skill update --all --dry-run --dir skills -- fixture
    ! Skipping fixture: could not resolve example.invalid/skills: could not determine default branch: HTTP 500
    All skills are up to date.

    Exit status: 0 (success). Expected: nonzero, without the up-to-date message.

    The selected source snapshot behaved the same way. The reported 2.104.0 build was unavailable, so that exact version was not tested.

    Supporting reports

    Generated by issue triage.

  3. added
    bug
    gh-skill
    priority-3
    on Nov 18, 2026
  4. removed
    needs-triage
    on Nov 18, 2026
  5. worldofgeese commented on Nov 18, 2026

    @worldofgeese
    Author

    A second silent case occurs when the installed metadata has a github-path that no longer exists in the source repository. A selected gh skill update --all --dry-run --dir DIR -- fixture exits 0 and prints All skills are up to date. without a warning. A forced dry run also reports all skills current instead of reporting the missing source path.

  6. Elizabeth93498 commented on Nov 21, 2026

    @Elizabeth93498
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

    buggh-skillpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions