github-cli — community github-cli, My-Claude-Agent-Skills, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Development Agents needing advanced GitHub repository management capabilities. github-cli 是一个 GitHub 命令行工具,用于简化开发流程

trotsky1997 trotsky1997
[0]
[0]
Updated: 2/24/2026

Agent Capability Analysis

The github-cli skill by trotsky1997 is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Development Agents needing advanced GitHub repository management capabilities.

Core Value

Empowers agents to interact with GitHub repositories, issues, pull requests, and releases using the GitHub CLI (gh) protocol, allowing for terminal-based automation of repository operations.

Capabilities Granted for github-cli

Automating repository creation
Generating pull requests
Debugging issues with gh issue list

! Prerequisites & Limits

  • Requires GitHub authentication
  • Terminal-based interaction only
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

github-cli

Install github-cli, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

GitHub CLI (gh)

GitHub CLI (gh) enables terminal-based interaction with GitHub for managing repositories, issues, pull requests, and releases.

Quick Start

Authentication:

bash
1gh auth login # First-time setup 2gh auth status # Check authentication

Basic operations:

bash
1gh repo view # View current repository 2gh pr list # List pull requests 3gh issue list # List issues 4gh pr create # Create pull request

Core Workflows

Repository Operations

View repository:

bash
1gh repo view OWNER/REPO 2gh repo view --web # Open in browser

Clone and create:

bash
1gh repo clone OWNER/REPO 2gh repo create my-repo --public 3gh repo create my-repo --private --clone

List repositories:

bash
1gh repo list # Your repos 2gh repo list USERNAME # User's repos 3gh repo list --limit 10

Pull Request Workflow

Create PR:

bash
1# Interactive 2gh pr create 3 4# Direct 5gh pr create --title "feat: feature" --body "description" 6gh pr create --draft # Draft PR 7gh pr create --base main --head feature-branch

Manage PRs:

bash
1gh pr list # List PRs 2gh pr view PR_NUMBER # View PR 3gh pr checkout PR_NUMBER # Checkout locally 4gh pr merge PR_NUMBER # Merge PR 5gh pr close PR_NUMBER # Close PR 6gh pr review PR_NUMBER --approve # Review

PR status and diff:

bash
1gh pr checks PR_NUMBER # Check status 2gh pr diff PR_NUMBER # View diff 3gh pr view PR_NUMBER --web # Open in browser

Issue Management

Create and list:

bash
1gh issue create --title "Bug: title" --body "description" 2gh issue list # List open issues 3gh issue list --state all # All issues 4gh issue list --label "bug" # Filter by label

Manage issues:

bash
1gh issue view ISSUE_NUMBER 2gh issue close ISSUE_NUMBER --comment "Fixed" 3gh issue reopen ISSUE_NUMBER 4gh issue edit ISSUE_NUMBER --title "New title"

Release Management

Create release:

bash
1gh release create v1.0.0 --title "v1.0.0" --notes "Release notes" 2gh release create v1.0.0 --notes-file CHANGELOG.md 3gh release create v1.0.0 --prerelease # Pre-release 4gh release create v1.0.0 dist/*.zip # With assets

Manage releases:

bash
1gh release list 2gh release view TAG_NAME 3gh release download TAG_NAME 4gh release delete TAG_NAME

Configuration

Set editor:

bash
1gh config set editor "code -w" # VS Code 2gh config set editor "vim"

Create aliases:

bash
1gh alias set prl "pr list" 2gh alias set prd "pr create --draft" 3gh alias set il "issue list" 4gh alias list # View aliases

Git credentials:

bash
1gh auth setup-git

Advanced Usage

JSON Output and Filtering

JSON output:

bash
1gh pr list --json number,title,author 2gh repo view --json name,stargazerCount,url 3gh issue view ISSUE_NUMBER --json title,body,comments

With jq filtering:

bash
1gh pr list --json number,title,author --jq '.[] | select(.author.login == "username")'

Automation Scripts

Create PR script:

bash
1#!/bin/bash 2BRANCH=$(git branch --show-current) 3gh pr create --title "feat: feature" --body "Description" --base main --head "$BRANCH"

Check PR status:

bash
1#!/bin/bash 2STATUS=$(gh pr view $1 --json state --jq '.state') 3echo "PR #$1 status: $STATUS"
bash
1gh search repos "language:python stars:>1000" 2gh search issues "is:open label:bug" 3gh search code "function_name"

Common Patterns

Daily development:

bash
1git checkout -b feature/new-feature 2git push -u origin feature/new-feature 3gh pr create --title "feat: new feature" --body "Description" 4# After merge: 5git checkout main && git pull && git branch -d feature/new-feature

Review PR:

bash
1gh pr list 2gh pr view PR_NUMBER 3gh pr checkout PR_NUMBER # Test locally 4gh pr review PR_NUMBER --approve

Batch operations:

bash
1# Close all open issues (use with caution) 2gh issue list --state open --json number --jq '.[].number' | xargs -I {} gh issue close {}

Troubleshooting

Authentication:

bash
1gh auth status # Check status 2gh auth login # Re-authenticate 3gh auth logout # Clear auth

Environment variables:

bash
1export GITHUB_TOKEN=your_token # Linux/Mac 2$env:GITHUB_TOKEN="token" # Windows PowerShell

References

For detailed command reference and advanced workflows, see:

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is github-cli?

Perfect for Development Agents needing advanced GitHub repository management capabilities. github-cli 是一个 GitHub 命令行工具,用于简化开发流程

How do I install github-cli?

Run the command: npx killer-skills add trotsky1997/My-Claude-Agent-Skills. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for github-cli?

Key use cases include: Automating repository creation, Generating pull requests, Debugging issues with gh issue list.

Which IDEs are compatible with github-cli?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for github-cli?

Requires GitHub authentication. Terminal-based interaction only.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add trotsky1997/My-Claude-Agent-Skills. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use github-cli immediately in the current project.

Related Skills

Looking for an alternative to github-cli or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI