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
- Type this
gh skill preview wshobson/agents python-testing-patterns
- 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>
Describe the bug
gh skill previewappears 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
Steps to reproduce the behavior
gh skill preview wshobson/agents python-testing-patternsGitHub 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