GH-SKILL-PREVIEW(1)
π gh-skill-preview β bestie's guide to peeking at skills πβ¨
okay so real talk, this is a page from the GitHub CLI manual (that's the gh thing you already have installed, mwah) and it covers gh-skill-preview, which is preview β yes, still in preview, so be nice to it π
πΈ NAME πΈ
gh-skill-preview β preview a skill from a GitHub repository. it's literally in preview mode, iykyk β¨
π¦ SYNOPSIS π¦
gh skill preview <repository> [<skill>] [flags]
that's it, that's the whole mood π
π DESCRIPTION π
so what this does is render a skill's SKILL.md content right in your terminal. it fetches the skill file from the repository and shows it to you using whatever pager you've got configured β and ngl, the best part: it does this without installing anything. zero commitment, no cap π«Ά
first you get a file tree, then the rendered SKILL.md content. the way that works is: when you're running interactively and the skill has extra files hanging around (scripts, references, etc.), a file picker pops up so you can browse them one by one. iconic behaviour honestly π
if you run it with only a repository argument? it lists the available skills and prompts you to pick one. cute and helpful π
now the <skill> argument β she's flexible, okay. it can be any of these:
- a plain name
- a namespaced name, like
author/skill - an exact path within the repository, like
skills/author/skill,packages/agent-skills/code-review, or any.../SKILL.mdpath
namespaced names with one slash get matched by name. and if you want to force a one-directory path that lives outside the standard conventions, just slap a SKILL.md suffix on it π―
oh and! to preview a specific version of a skill, append @VERSION to the skill name. the version gets resolved as a git tag, branch, or commit SHA. time travel, lowkey π°οΈβ¨
β¨ OPTIONS β¨
--allow-hidden-dirsβ include skills that live in hidden directories (e.g..claude/skills/,.agents/skills/). yes, the sneaky dotfolders get invited to the party too π
π ALIASES π
these are the same command wearing a different outfit:
gh skill showgh skills show
slay, versatile π
π₯ EXIT CODES π₯
0β successful execution (we love a happy ending π₯³)1β error (it's giving oops π)2β command canceled (you backed out, no judgement π)4β authentication required (log in bestie π)
NOTE: specific commands may have additional exit codes. refer to the command's help for more information. don't come for me, that's just what it says π
π EXAMPLE π
# Preview a specific skill
$ gh skill preview github/awesome-copilot documentation-writer
# Preview a skill at a specific version
$ gh skill preview github/awesome-copilot documentation-writer@v1.2.0
# Preview a skill at a specific commit SHA
$ gh skill preview github/awesome-copilot documentation-writer@abc123def456
# Preview from a non-standard nested path (efficient, skips full discovery)
$ gh skill preview monalisa/skills-repo packages/agent-skills/code-review
# Browse and preview interactively
$ gh skill preview github/awesome-copilot
that last one β just repo, no skill β is the "let me browse" vibe and honestly it ate π
π§ SEE ALSO π§
gh-skill(1)β go read the main one, bestie, it's the parent π«Ά
and that's the whole page!! brought to you by GitHub CLI v2.102.0, dated Oct 2026 β go forth and preview responsibly, ily, bye πβ¨πΈ
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms