# Manage GitHub from the Command Line

GitHub teams need fast command guidance for repositories, issues, pull requests, Actions, and releases. This skill supplies focused gh CLI examples and workflows for Claude, Codex, and Claude Code.

## Install

```bash
npx skillstore add github/gh-cli
```

## Metadata

- Status: approved
- Slug: github-gh-cli
- Skillstore revision: r1
- Version status: missing
- Tree hash: 1f3dac837d3a7822488a6eaa42c64be2f4aa78ed11d077a5d1b60f3ced9634d2
- Author: github
- GitHub username: github
- License: MIT
- Repository: https://github.com/github/awesome-copilot/tree/main/skills/gh-cli/
- Ref: 3e4b6c31a74a3bd1a291c98cf585d720cb9fbc88
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: confirmation\_required
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, filesystem, env\_access
- Quality score: 38
- Quality tier: warning
- Public page: https://skillstore.pages.dev/skills/github-gh-cli
- Manifest: https://skillstore.pages.dev/api/skills/github-gh-cli/manifest

## Capabilities

- Maps common GitHub tasks to gh CLI commands and flags.
- Covers repositories, issues, pull requests, Actions, projects, releases, gists, and Codespaces.
- Shows authentication, configuration, alias, extension, and shell completion workflows.
- Includes REST and GraphQL request patterns through gh api.
- Provides automation patterns using JSON output, jq filters, pagination, and aliases.
- Documents troubleshooting, exit codes, environment variables, and help commands.

## Use Cases

- Repository Maintenance: Find commands to create repositories, update settings, manage labels, and inspect repository metadata.
- Pull Request Operations: Build gh CLI flows for listing, reviewing, merging, and checking pull requests.
- Automation and Releases: Use Actions, releases, API calls, and JSON output to support repeatable GitHub workflows.

## Prompt Templates

### Find a Repository Command

```
Show the gh CLI command to view repository details for owner/repo. Include required flags and a short explanation.
```

### Review Pull Requests

```
Help me list open pull requests in owner/repo that need my review. Use gh CLI and include useful filters.
```

### Automate a Release

```
Design a gh CLI workflow to create a release from tag v1.2.3, attach release notes, and verify the result.
```

### Plan Safe GitHub Changes

```
Plan a safe gh CLI sequence for updating repository settings, managing labels, and checking workflow runs. Include confirmation points before destructive commands.
```

## Limitations

- It is a reference skill; it does not execute commands by itself.
- Examples may require local gh installation, authentication, and repository permissions.
- Some operations can change repositories, projects, releases, or account settings.
- Version details can become outdated as GitHub CLI changes.

## Best Practices

- Confirm repository, owner, and branch before running commands that modify GitHub resources.
- Use scoped tokens and avoid printing tokens in chat, terminals, or logs.
- Request dry runs or list commands before delete, close, merge, release, or transfer actions.

## Anti Patterns

- Do not run destructive gh commands from generated output without reviewing the target resources.
- Do not paste real GitHub tokens into prompts or commit them to files.
- Do not use privileged install commands unless the user approved system changes.

## Security Audit

- Audited at: 2026-07-09T07:27:22.614\+00:00
- Summary: The analyzer matched many Markdown command examples and code fences in SKILL.md; most are false positives for executable code, private key access, or reconnaissance. Confirmed risks are limited to privileged installation commands and GitHub token handling examples that could expose credentials if an agent runs them without explicit user approval. No prompt injection attempt or hidden exfiltration intent was found.

## Stats

- Views: 155
- Downloads: 21
- Favorites: 0
- Popularity score: 0
