Skip to content

gh skill preview fails with the active enterprise host context even when the target repository is on GitHub.com #13368

@gosairei1207

Description

@gosairei1207

Describe the bug

gh skill preview appears to use the currently active GitHub Enterprise Server host context before resolving the target repository host.

For example, when I run gh skill preview wshobson/agents python-testing-patterns, the target repository is hosted on GitHub.com, but the command fails with a GitHub Enterprise Server-related error.

This suggests that the command may be validating the active CLI host context first, instead of resolving the host from the target repository argument.

Affected version

 % gh version
gh version 2.92.0 (2026-04-28)
https://github.com/cli/cli/releases/tag/v2.92.0

Steps to reproduce the behavior

  1. Type this gh skill preview wshobson/agents python-testing-patterns
  2. View the output GitHub Skills does not currently support GitHub Enterprise Server; got <enterprise-host>

Expected vs actual behavior

Expected:
gh skill preview should resolve the target repository host first. Since wshobson/agents is hosted on GitHub.com, I expected the command to evaluate the target repository based on GitHub.com, or provide a way to explicitly specify the host.

Actual:
The command appears to validate the currently active enterprise host context first and exits early with a GitHub Enterprise Server-related error, even though the target repository is on GitHub.com.

Logs

$ gh skill preview wshobson/agents python-testing-patterns
GitHub Skills does not currently support GitHub Enterprise Server; got <enterprise-host>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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