Skip to content
Back to skills

Gh

ASecurity

Use the GitHub CLI (gh) to perform core GitHub operations: auth status, repo create/clone/fork, issues, pull requests, releases, and basic repo management. Trigger for requests to use gh, manage GitHub repos, PRs, or issues from the CLI.

  • 21 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 7, 2026
toolsbashgit

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill gh --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gh?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gh
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-skill-library-mcp-b20baf80/badge)](https://www.skillsdirectory.com/skills/modbender-skill-library-mcp-b20baf80)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gh
description: "Use the GitHub CLI (gh) to perform core GitHub operations: auth status, repo create/clone/fork, issues, pull requests, releases, and basic repo management. Trigger for requests to use gh, manage GitHub repos, PRs, or issues from the CLI."
---

# GitHub CLI (gh)

## Overview
Use `gh` for authenticated GitHub operations from the terminal. Prefer explicit, idempotent commands and report URLs back to the user.

## Quick checks
- Auth status:
```bash
gh auth status
```
- Current repo context:
```bash
gh repo view --json nameWithOwner,url,defaultBranchRef
```

## Core workflows

### Repo create (private by default)
```bash
gh repo create OWNER/NAME --private --confirm --description "..."
```
If running inside a local repo, use `--source . --remote origin --push`.

### Clone / fork
```bash
gh repo clone OWNER/NAME
```
```bash
gh repo fork OWNER/NAME --clone
```

### Issues
- List:
```bash
gh issue list --limit 20
```
- Create:
```bash
gh issue create --title "..." --body "..."
```
- Comment:
```bash
gh issue comment <num> --body "..."
```

### Pull requests
- Create from current branch:
```bash
gh pr create --title "..." --body "..."
```
- List:
```bash
gh pr list --limit 20
```
- View:
```bash
gh pr view <num> --web
```
- Merge (use explicit method):
```bash
gh pr merge <num> --merge
```

### Releases
```bash
gh release create vX.Y.Z --title "vX.Y.Z" --notes "..."
```

## Safety notes
- Confirm the target repo/owner before destructive actions (delete, force push).
- For private repos, ensure `--private` is set on create.
- Prefer `--confirm` to avoid interactive prompts in automation.

Files in this skill

  • SKILL.md1.7 KB
  • agents/openai.yaml201 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.