Skip to content
Agentmart
Submit a tool

github

Use the GitHub CLI (`gh`) to inspect and manage repositories, pull requests, issues, workflows, releases, and API calls from the terminal.

Skill by IvanCampos

IndexedMIT★ 5
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ivancampos-github

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use the GitHub CLI (`gh`) to inspect and manage repositories, pull requests, issues, workflows, releases, and API calls from the terminal. Use when a user asks to use `gh`/GitHub CLI, run GitHub repo or PR workflows, automate GitHub Actions from shell, or troubleshoot `gh` authentication and configuration.

Use cases: backend, devops

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/github

What's inside

Skill name
github
Description
Use the GitHub CLI (`gh`) to inspect and manage repositories, pull requests, issues, workflows, releases, and API calls from the terminal. Use when a user asks to use `gh`/GitHub CLI, run GitHub repo or PR workflows, automate GitHub Actions from shell, or troubleshoot `gh` authentication and configuration.
License
MIT
Instructions
98 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (4)

  • SKILL.md
  • openai.yaml · agents/
  • command-map.md · references/
  • gh_preflight.sh · scripts/

SKILL.md (first lines)

# GitHub CLI

## Overview
Use `gh` for day-to-day GitHub operations from the terminal. Prefer read-only commands first, then run mutating commands only after clear user intent.

## Quick Start
1. Check installation and auth:
```bash
gh --version
gh auth status
```
2. Establish repository context:
```bash
scripts/gh_preflight.sh --repo owner/repo
```
3. If not in the target repository, pass `-R owner/repo` to commands.
4. Use `--json` with `--jq` or `--template` for automation-friendly output.

## Workflow
1. Establish context first.
- Determine GitHub host (`github.com` by default), repository, and branch.
- Run `scripts/gh_preflight.sh` before multi-step operations.
2. Read current state.
- Use `list`, `view`, and `status` subcommands before changing anything.
3. Apply requested mutation.
- For create/edit/merge/delete actions, restate the operation and require explicit confirmation unless the user already asked clearly.
4. Report stable identifiers.
- Return URLs and IDs for created or changed objects (PR number, issue number, run URL, release tag).

## Common Commands
- Repository:
  - `gh repo view`
  - `gh repo clone owner/repo`
  - `gh repo create`
  - `gh repo set-default owner/repo`
- Pull requests:
  - `gh pr list`
  - `gh pr view <number>`
  - `gh pr checkout <number>`
  - `gh pr create`
  - `gh pr review <number> --approve|--request-changes|--comment`
  - `gh pr merge <number>`
- Issues:
  - `gh issue list`
  - `gh issue view <number>`
  - `gh issue create`
  - `gh issue comment <number> --body "..."`
  - `gh issue close <number>`
- Actions:
  - `gh workflow list`
  - `gh workflow run <workflow>`
  - `gh run list`
  - `gh run watch <run-id>`
  - `gh run view <run-id> --log`
- Releases:
  - `gh release list`
  - `gh release view <tag>`
  - `gh release create <tag> [assets...]`
  - `gh release upload <tag> <file>`
- API:
  - `gh api repos/{owner}/{repo}/pulls --paginate`

For broader command coverage, read `references/command-map.md`.

## Safety Defaults
- Confirm before commands that change remote state:
  - `gh pr create|merge|close|reopen|ready`
  - `gh issue create|edit|close|reopen|delete`
  - `gh repo create|edit|archive|delete`
  - `gh release create|edit|delete`
  - `gh secret set|delete`
  - `gh variable set|delete`
  - `gh workflow run`
- Avoid destructive flags (`--delete-branch`, force flags) unless explicitly requested.
- Show exact command before bulk updates and prefer smallest safe scope.

## Structured Output
Use JSON output when parsing or summarizing results:

```bash
gh pr list --json number,title,url --jq '.[] | "\(.number)\t\(.title)\t\(.url)"'
gh issue list --json number,title,labels --template '{{range .}}{{printf "#%v %v\n" .number .title}}{{end}}'
```

## Troubleshooting
- Auth errors: `gh auth login` or `gh auth refresh`.
- Wrong account/host: `gh auth status --hostname github.com`, then `gh auth switch`.
- Unknown command options: `gh <command> <subcommand> --help`.
- Manual reference: `https://cli.github.com/manual/`.

## Resources
### scripts/
- `scripts/gh_preflight.sh`: Check `gh` availability, auth status, and repository context.

### references/
- `references/command-map.md`: Command map for repo, PR, issue, actions, release, and API operations.

From IvanCampos/agents, MIT.

More from IvanCampos/agents

Signals

Stars
5
Forks
0
Open issues
0
Last commit (this folder)
Feb 6, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from IvanCampos

Cite this page

github skill. Agent Mart. https://agentmart.dev/skills/ivancampos-github (last updated 2026-10-24)