gh-skill

Manage GitHub CLI operations for searching, previewing, installing, updating, and publishing agent skills.

3|1|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill gh-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-skill
Source: https://github.com/Cogni-AI-OU/cogni-ai-agent-skills/tree/main/gh-skill
Command: npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill gh-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of installing, previewing, updating, and publishing portable agent skills through GitHub CLI without getting stuck on interactive prompts or risking unsafe third-party content.

Core Features & Use Cases

  • Non-interactive CLI workflows: Provides safe usage patterns (for example, using targeted arguments or non-interactive flags) to prevent hangs during automated agent runs.
  • Pre-install safety via preview: Enforces using gh skill preview to inspect third-party skills before installation, supporting supply-chain integrity.
  • Deterministic versioning: Guides pinning skills to tags or commit SHAs to ensure reproducible behavior and controlled updates.
  • Skill lifecycle management: Covers search, discovery, install, update, and publish flows, including validation/fixes for metadata.

Quick Start

Use the gh-skill guidance to search and preview a skill from GitHub, then install a pinned version for your agent scope.

Frequently Asked Questions about gh-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install agent skills via GitHub CLI without getting stuck on interactive prompts?

Installing agent skills via GitHub CLI safely requires using targeted arguments and non-interactive flags to prevent hangs during automated runs. This approach ensures deterministic installation by enforcing pre-flight previews and pinning skills to specific tags or commit SHAs.

What is the best way to validate local skill frontmatter and metadata before publishing?

Validating local skill frontmatter and metadata is best handled by applying command patterns compatible with GitHub CLI v2.90.0+. This process validates metadata and applies fixes across scopes and hosts, ensuring skill integrity before publishing.

How does previewing third-party agent skills improve supply chain security?

Previewing third-party agent skills improves supply-chain security by using `gh skill preview` to inspect content before installation. This pre-install safety mechanism enforces supply-chain integrity, preventing unsafe third-party content from compromising your agent environment.

Can I use GitHub CLI to manage the entire lifecycle of Copilot skills in agent environments?

Yes, you can use GitHub CLI to manage the full Copilot skill lifecycle in agent environments. It covers search, discovery, install, update, and publish flows, streamlining onboarding while reducing supply-chain risk through deterministic versioning.

Why should I pin agent skills to a specific commit SHA or tag during installation?

Pinning agent skills to a commit SHA or tag during installation ensures deterministic versioning and reproducible behavior. This practice provides controlled updates and prevents unexpected changes when onboarding skills into agent environments.