Back to Skills

github-cli

verified

GitHub CLI (gh) expert for repository management. Use when users need to manage repos, issues, PRs, Actions, secrets, or interact with GitHub.

View on GitHub

Marketplace

topographic-plugins-official

leobrival/topographic-plugins-official

Plugin

dev

development

Repository

leobrival/topographic-plugins-official

plugins/dev/skills/github-cli/SKILL.md

Last Verified

January 20, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/leobrival/topographic-plugins-official/blob/main/plugins/dev/skills/github-cli/SKILL.md -a claude-code --skill github-cli

Installation paths:

Claude
.claude/skills/github-cli/
Powered by add-skill CLI

Instructions

# GitHub CLI Guide

GitHub CLI (`gh`) enables command-line management of repositories, issues, pull requests, and GitHub workflows. This guide provides essential workflows and quick references for common GitHub operations.

## Quick Start

```bash
# Authenticate with GitHub
gh auth login

# Check authentication status
gh auth status

# View current repository
gh repo view

# List open issues
gh issue list

# List open pull requests
gh pr list
```

## Common Workflows

### Workflow 1: Fork and Contribute

```bash
# Fork repository
gh repo fork owner/repo

# Clone your fork
gh repo clone your-username/repo

# Create feature branch
cd repo
git checkout -b feature/my-feature

# Make changes, then create PR
gh pr create --title "Add feature" --body "Description of changes"

# Push to GitHub
git push origin feature/my-feature
```

### Workflow 2: Issue Management

```bash
# Create issue
gh issue create --title "Bug: Login fails" --body "Steps to reproduce..."

# List assigned to you
gh issue list --assignee @me

# View issue details
gh issue view 123

# Close issue with comment
gh issue close 123 --comment "Fixed in PR #456"
```

### Workflow 3: Pull Request Review

```bash
# Create PR (draft for review)
gh pr create --draft --title "Work in progress"

# List open PRs
gh pr list

# View PR with diff
gh pr view 123
gh pr diff 123

# Checkout PR branch locally
gh pr checkout 123

# Merge when ready
gh pr merge 123 --squash
```

### Workflow 4: GitHub Actions Management

```bash
# List recent workflow runs
gh run list

# View run details and logs
gh run view 123456 --log

# Rerun failed jobs
gh run rerun 123456 --failed

# Cancel running workflow
gh run cancel 123456

# Trigger workflow manually
gh workflow run ci.yml --field environment=production
```

### Workflow 5: Release Management

```bash
# Create release
gh release create v1.0.0 --title "Version 1.0.0" --notes "Release notes here"

# List releases
gh release list

# View release details
gh release view v1.0.0

# Upl

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
6148 chars