Manage Agent Skills with gh skill

VerifiedSafe

Manage agent skills with gh skill. Use this skill to discover, preview, install, update, and publish Agent Skills so an agent can self-manage the skills available in its environment.

Sby Skills Guide Bot
DevelopmentIntermediate
8/29/2026
Claude CodeCursorCopilotCodex
#gh-cli#agent-skills#skill-management#github#cli

Recommended for

Automated summary

This skill manages agent skills with the `gh skill` command: search, preview, install, update, and publish Agent Skills.

Strengths

  • Simple discovery and installation from GitHub
  • Supports version pinning for reproducible installs
  • Works across multiple agents (Copilot, Claude Code, Cursor, Codex)
  • Streamlined publishing via validation and GitHub releases

Limitations

  • Requires repositories to follow specific path conventions
  • Interactive mode may be triggered unless --tag is passed explicitly
  • Some features (like --from-local) are not deeply documented
When to use it

Use this skill when you want the agent to self-manage its skills from GitHub repositories.

When not to use it

Do not use it if you prefer manual skill management or don't use GitHub as a source.

Security analysis

Safe
Quality score95/100

The skill documents the legitimate 'gh skill' CLI for discovering, previewing, installing, updating, and publishing Agent Skills. All commands are standard and non-destructive. It includes appropriate warnings about risky flags like --allow-hidden-dirs and encourages previewing skills before installation. No destructive, exfiltrating, or obfuscated actions are present.

No concerns found

How this analysis is made

Examples

Search for agent skills
Find skills for generating conventional commits using gh skill search
Install a skill with pinning
Install the skill 'commit-message' from owner 'myorg/repo' targeted at claude-code and pinned to v1.2.0
Publish a skill
Publish the skill in the current repo as version v1.0.0 using gh skill publish --tag v1.0.0

name: gh-skill description: Manage agent skills with gh skill. Use this skill to discover, preview, install, update, and publish Agent Skills so an agent can self-manage the skills available in its environment.

Managing skills with gh skill

gh skill installs, previews, searches, updates, and publishes Agent Skills. An agent can use it to keep its own skill set in sync with one or more GitHub repositories.

The command is also aliased as gh skills. Prefer the canonical singular gh skill in scripts and docs.

Search

gh skill search <query>                                  # free-text search
gh skill search <query> --owner <org>                    # restrict to one owner
gh skill search <query> --limit 20 --page 2
gh skill search <query> --json skillName,repo,description

Preview before installing

gh skill preview <owner>/<repo> <skill-name>
gh skill preview <owner>/<repo> <skill-name>@v1.2.0   # pin a version

Install

gh skill install <owner>/<repo> <skill-name>
gh skill install <owner>/<repo> <skill-name>@v1.2.0
gh skill install <owner>/<repo> skills/<scope>/<skill-name>   # exact path, fastest
gh skill install ./local-skills-repo --from-local

<owner>/<repo> and <skill-name> are both required.

Useful flags:

  • --agent <id> - target host (e.g. github-copilot, claude-code, cursor, codex, gemini-cli). Repeat for multiple. Default is github-copilot when non-interactive. You should know what agent you are, so set this appropriately to install for yourself.
  • --scope project|user - project (default) writes inside the current git repo; user writes to the home directory and applies everywhere.
  • --pin <ref> - pin to a tag, branch, or commit SHA. Mutually exclusive with --from-local and with inline @version syntax.
  • --allow-hidden-dirs - also discover skills under dot-directories such as .claude/skills/. Don't use this unless you need to, it comes with risks.
  • --force - overwrite an existing install.

Update

gh skill update --all          # update every installed skill
gh skill update <skill>        # update one
gh skill update <skill> --force
gh skill update --unpin        # drop the pin and move to latest

Publish

Publishing turns a repo into a discoverable skill source. Skills are discovered with these conventions:

  • skills/<name>/SKILL.md
  • skills/<scope>/<name>/SKILL.md
  • <name>/SKILL.md (root-level)
  • plugins/<scope>/skills/<name>/SKILL.md

Each SKILL.md needs YAML frontmatter:

---
name: my-skill                # must equal the directory name
description: One sentence...  # required, recommended <= 1024 chars
license: MIT                  # optional but recommended
---

Validate, then publish

gh skill publish --dry-run                 # validate only, no release
gh skill publish --dry-run ./path/to/repo  # validate a specific dir
gh skill publish --fix                     # auto-strip install metadata
gh skill publish --tag v1.0.0              # non-interactive publish
gh skill publish                           # interactive publish flow

--fix and --dry-run are mutually exclusive. --fix only rewrites install-injected metadata.github-* keys and does not publish; commit the result and re-run publish.

The publish flow will:

  1. Add the agent-skills topic to the repo (so search can find it).
  2. Use --tag (or prompt for one in a TTY).
  3. Auto-push any unpushed commits.
  4. Create a GitHub release with auto-generated notes.

Always pass --tag so it doesn't fall through to the interactive flow.

Self-management pattern for agents

A reasonable loop:

  1. gh skill search <topic> --json skillName,repo,namespace
  2. gh skill preview <repo> <skill> to inspect the SKILL.md.
  3. gh skill install <repo> <skill> --agent <host> --pin <ref> for a reproducible install.
  4. Periodically gh skill update --all to refresh.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/manage-agent-skills-with-gh-skill-mte1lkwf/download' --output '.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf/SKILL.md.part' && mv '.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf/SKILL.md.part' '.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf/SKILL.md' && test -s '.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/gh-skill' && cp -R '.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf' '.claude/skills/gh-skill'

Cursor
test -f '.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf/SKILL.md' && test -s '.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/gh-skill' && cp -R '.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf' '.cursor/skills/gh-skill'

Codex
test -f '.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf/SKILL.md' && test -s '.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/gh-skill' && cp -R '.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf' '.agents/skills/gh-skill'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf'

openskills read 'manage-agent-skills-with-gh-skill-mte1lkwf'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/manage-agent-skills-with-gh-skill-mte1lkwf/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills