github-cli

github-cli is a skill for Claude Code from anilcancakir/claude-code-plugin. It costs 39 tokens per session (2,812 once invoked), scanned A, original, MIT.

A guide to using GitHub's command-line tool, called gh, from a terminal or script.

In plain words
What is it for?
Use it to create and filter issues, work with pull requests and releases, inspect GitHub Actions, and query GitHub's REST or GraphQL APIs.
Why use it?
It provides repeatable commands for GitHub work without relying on interactive prompts or manually browsing the website.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is gh release create v1.0.0 ./dist/*.tar.gz --title "v1.0.0" --notes "Bug fixes".

Part of the github-cli plugin — 1 skill shipped together

Good fit Use it to create and filter issues, work with pull requests and releases, inspect GitHub Actions, and query GitHub's REST or GraphQL APIs.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/anilcancakir/claude-code-plugin
agentmods
npx agentmods add skills/anilcancakir/claude-code-plugin/github-cli

Made for: Claude Code.

Or install github-cli, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for github-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/anilcancakir/claude-code-plugin/github-cli/github.svg)](https://agentmods.dev/skills/anilcancakir/claude-code-plugin/github-cli)
Your own site
<a href="https://agentmods.dev/skills/anilcancakir/claude-code-plugin/github-cli"><img src="https://agentmods.dev/badge/skills/anilcancakir/claude-code-plugin/github-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for github-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/anilcancakir/claude-code-plugin/github-cli"><img src="https://agentmods.dev/badge/skills/anilcancakir/claude-code-plugin/github-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,812 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.02812
Opus 5.5 $0.00016 $0.01125
Sonnet 5.5 $0.00008 $0.00562
Haiku 4.5 $0.00004 $0.00281

Measured 3mo ago against content hash 8f8ca4808b6a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

github-cli scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Use `gh` (GitHub CLI) for all GitHub operations. Prefer `gh` over raw API calls, `curl`, or web browser. Every `gh` command supports `--help` for flag discovery.
plugins/github-cli/skills/github-cli/SKILL.md · 339 lines

How it starts

The opening of the file, as written. The whole thing — 339 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub CLI Skill

Use gh (GitHub CLI) for all GitHub operations. Prefer gh over raw API calls, curl, or web browser. Every gh command supports --help for flag discovery.

Principles

  • JSON first: Add --json <fields> + --jq <query> for machine-readable output in scripts
  • Repo context: Run commands from a git repo directory — gh auto-detects {owner} and {repo}
  • Cross-repo: Use -R owner/repo flag to target a different repository
  • No interactive prompts: Always pass --title, --body, flags explicitly — never rely on interactive prompts
  • Rate limits: Add sleep 1 between iterations in bulk loops

Issues

Create

gh issue create --title "Bug: login fails" --body "Steps to reproduce..." --label bug --assignee @me
gh issue create --title "Feature request" --body-file description.md --label enhancement --project "Roadmap"

List & Filter

gh issue list                                          # Open issues (default 30)
gh issue list --state all --limit 100                  # All states, more results
gh issue list --label "bug" --assignee @me             # By label + assignee
gh issue list --search "error no:assignee sort:created-asc"  # Advanced search query
gh issue list --json number,title,labels --jq '.[].title'    # JSON + jq

View & Modify

gh issue view 123                                      # View issue details
gh issue view 123 --json body,comments --jq '.comments[-1].body'  # Last comment
gh issue comment 123 --body "Working on this"
gh issue edit 123 --add-label "in-progress" --remove-label "needs-triage"
gh issue close 123 --reason completed
gh issue reopen 123

Link to PR

Reference issues in PR body with Fixes #123 or Closes #123 — GitHub auto-closes on merge.

Pull Requests

Create

gh pr create --title "feat: add auth" --body "Implements OAuth2 flow" --base main
gh pr create --fill                                    # Auto-fill from commit messages
gh pr create --fill-verbose                            # Commits msg+body in description
gh pr create --draft                                   # Draft PR
gh pr create --reviewer user1,team-name --label feature --assignee @me
gh pr create --body-file pr-description.md

Read the full file on GitHub · 339 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 339 lines · 39 tokens per session scan A 8f8ca4808b6a

Subscribe to this mod's changes

github-cli is a skill published in the GitHub repository anilcancakir/claude-code-plugin (2 stars, last pushed 7mo ago), licensed MIT. It adds 39 tokens to every session and 2,812 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

github-cli compared with skills from other repositories

github-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
github-clianilcancakir/claude-code-pluginSkill27mo agoMITA39Claude Code
agent-framework-py-releasemicrosoft/agent-frameworkSkill15k13d agoMITA102Claude Code, Codex
coding-agents-farmgriddynamics/rosettaSkill3825d agoApache-2.0B32Claude Code
ghagents-squads/squads-cliSkill564d agoMITA0Claude Code, Codex
changelog-writer3338902669-ops/agent-orchestraSkill931mo agoApache-2.0A34Claude Code, Codex
ask-claudeWebisityStudio/claude-codex-mcp-bridgeSkill421d agoMITA44Claude Code
finishing-a-development-branchIbrahim-3d/orchestrator-supaconductorSkill3842mo agoAGPL-3.0A44Claude Code