Skip to content
Agentmart
Submit a tool

github-cli

GitHub CLI (gh) and API operations for branches, PRs, issues, releases, workflows, and GraphQL queries.

Skill by agent-rails

IndexedApache-2.0
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/agent-rails-github-cli

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

GitHub CLI (gh) and API operations for branches, PRs, issues, releases, workflows, and GraphQL queries. Use when creating branches, opening PRs, managing issues, viewing releases, triggering workflows, or using gh api. Trigger phrases include "create PR", "gh api", "list issues", "merge PR", "create branch", "gh command".

Use cases: backend

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

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/github-cli

What's inside

Skill name
github-cli
Description
GitHub CLI (gh) and API operations for branches, PRs, issues, releases, workflows, and GraphQL queries. Use when creating branches, opening PRs, managing issues, viewing releases, triggering workflows, or using gh api. Trigger phrases include "create PR", "gh api", "list issues", "merge PR", "create branch", "gh command".
License
Apache-2.0
Instructions
234 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# GitHub CLI Operations

Comprehensive guide for `gh` CLI and `gh api` operations.

## Issues

### List issues
```bash
gh issue list                           # Open issues
gh issue list --state all               # All issues
gh issue list --author @me              # Your issues
gh issue list --assignee @me            # Assigned to you
gh issue list --label "bug"             # By label
gh issue list --json number,title,state # JSON output
```

### Create issue
```bash
gh issue create --title "Title" --body "Description"
gh issue create --title "Title" --body "Body" --label "bug" --assignee "@me"
```

### View/Edit issue
```bash
gh issue view 123                       # View issue
gh issue view 123 --json body,comments  # JSON with comments
gh issue edit 123 --title "New title"
gh issue close 123
gh issue reopen 123
```

## Pull Requests

### List PRs
```bash
gh pr list                              # Open PRs
gh pr list --author @me                 # Your PRs
gh pr list --state all --json number,title,state,url
```

### Create PR
```bash
gh pr create --title "Title" --body "Description"
gh pr create --title "Title" --body "$(cat <<'EOF'
## Summary
- Change 1
- Change 2
EOF
)"
gh pr create --draft                    # Draft PR
gh pr create --base main --head feature # Explicit branches
```

### View/Edit PR
```bash
gh pr view 123
gh pr view 123 --json body,comments,reviews
gh pr edit 123 --title "New title" --body "New body"
gh pr edit 123 --add-label "ready"
```

### PR Review
```bash
gh pr review 123 --approve
gh pr review 123 --approve --body "LGTM!"
gh pr review 123 --request-changes --body "Please fix X"
gh pr review 123 --comment --body "Thoughts..."
```

### PR Actions
```bash
gh pr merge 123                         # Default merge
gh pr merge 123 --squash                # Squash merge
gh pr merge 123 --rebase                # Rebase merge
gh pr merge 123 --auto                  # Auto-merge when ready
gh pr close 123
gh pr reopen 123
gh pr ready 123                         # Mark ready for review
```

### PR Comments
```bash
gh pr comment 123 --body "Comment text"
```

## Releases

### List releases
```bash
gh release list
gh release view v1.0.0
```

### Create release
```bash
gh release create v1.0.0 --title "v1.0.0" --notes "Release notes"
gh release create v1.0.0 --generate-notes  # Auto-generate from commits
gh release create v1.0.0 ./dist/*.tar.gz   # With assets
```

## Actions/Workflows

### List/View runs
```bash
gh run list                             # Recent runs
gh run list --workflow=ci.yml           # Specific workflow
gh run view 12345                       # View run details
gh run view 12345 --log                 # View logs
```

### Trigger workflow
```bash
gh workflow run ci.yml
gh workflow run ci.yml --ref feature-branch
gh workflow run ci.yml -f input1=value1
```

### Re-run failed
```bash

From agent-rails/agentic-fabric, Apache-2.0.

More from agent-rails/agentic-fabric

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jul 17, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from agent-rails

Cite this page

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