github

Automate GitHub repository, issue, PR, and CI tasks using the gh CLI.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/x402agent/NanoSolana --skill github-x402agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github
Source: https://github.com/x402agent/NanoSolana/tree/main/skills/github
Command: npx skills add https://github.com/x402agent/NanoSolana --skill github-x402agent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Interact with GitHub repositories, issues, PRs, and CI efficiently using the gh CLI to automate routine tasks and governance workflows.

Core Features & Use Cases

  • PR management: list, view, create, merge, and comment on pull requests across repositories.
  • Issue management: list, create, comment on, and close issues.
  • CI & workflow visibility: check run statuses and view logs for workflows.
  • API queries: fetch repository data using gh api for dashboards and automation.
  • Automation & governance: integrate gh-driven checks into scripts to policy-enforce releases.

Quick Start

Authenticate with gh using gh auth login, then verify your authentication status with gh auth status.

Frequently Asked Questions about github

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

FAQPage Schema
How do I automate GitHub pull requests and issue management from the command line?

Automate GitHub pull requests and issue management using the gh CLI to list, view, create, merge, and comment on repository items. It outputs structured results suitable for scripting and AI-assisted decision making.

What is the best way to check CI run statuses and view workflow logs for GitHub repos?

Check CI run statuses and view workflow logs using gh CLI commands like gh run. This provides visibility into continuous integration workflows and outputs structured results for automation.

Do I need to authenticate with gh CLI before automating GitHub repository tasks?

Yes, authenticating with gh CLI is required before automating GitHub repository tasks. You must run gh auth login to authenticate and verify your status with gh auth status before executing commands.

Can I fetch raw repository data using gh api for dashboards and governance automation?

Yes, you can fetch raw repository data using gh api for dashboards and governance automation. It integrates gh-driven checks into scripts to policy-enforce releases and outputs structured data.

Does this approach support automating PR creation and commenting across multiple repositories?

Yes, automating PR creation and commenting across multiple repositories is supported. The gh CLI handles workflows like listing PRs, creating issues, and commenting on pull requests across your configured repositories.

When should I not use gh CLI for managing GitHub CI and pull requests?

Avoid using gh CLI for managing GitHub CI and pull requests when you lack proper authentication or need interactive GUI-based governance, as it requires gh auth login and outputs structured data designed for scripting environments.