github-cli-guide

github-cli-guide is a cursor rule for Cursor from iHildy/jules-task-queue. It costs 21 tokens per session (3,338 once invoked), scanned A, original, MIT.

A command-line guide for GitHub's `gh` program, which lets developers work with GitHub from a terminal instead of a web browser. It lists commands for issues, pull requests, repositories, releases, actions, and authentication.

In plain words
What is it for?
Use it to authenticate, create or inspect issues and pull requests, manage repositories and releases, view workflow runs, and make GitHub API requests.
Why use it?
It reduces the need to switch between the terminal and GitHub's website for routine repository work. It is especially focused on creating and managing issues from the command line.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to authenticate, create or inspect issues and pull requests, manage repositories and releases, view workflow runs, and make GitHub API requests.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/ihildy/jules-task-queue/github-cli-guide
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/iHildy/jules-task-queue

Made for: Cursor.

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-guide

README.md
[![agentmods](https://agentmods.dev/badge/rules/ihildy/jules-task-queue/github-cli-guide/github.svg)](https://agentmods.dev/rules/ihildy/jules-task-queue/github-cli-guide)
Your own site
<a href="https://agentmods.dev/rules/ihildy/jules-task-queue/github-cli-guide"><img src="https://agentmods.dev/badge/rules/ihildy/jules-task-queue/github-cli-guide/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-guide

Your own site · 80×15
<a href="https://agentmods.dev/rules/ihildy/jules-task-queue/github-cli-guide"><img src="https://agentmods.dev/badge/rules/ihildy/jules-task-queue/github-cli-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,338 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00021 $0.03338
Opus 5.5 $0.00008 $0.01335
Sonnet 5.5 $0.00004 $0.00668
Haiku 4.5 $0.00002 $0.00334

Measured 13d ago against content hash f5931e9ddd34, 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-guide scanned grade A with 0 findings 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 13d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/github-cli-guide.mdc · 369 lines

How it starts

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

WORK-WITH-GITHUB-FROM-THE-COMMAND-LINE

USAGE gh [flags]

CORE COMMANDS auth: Authenticate gh and git with GitHub browse: Open repositories, issues, pull requests, and more in the browser codespace: Connect to and manage codespaces gist: Manage gists issue: Manage issues org: Manage organizations pr: Manage pull requests project: Work with GitHub Projects. release: Manage releases repo: Manage repositories

GITHUB ACTIONS COMMANDS cache: Manage GitHub Actions caches run: View details about workflow runs workflow: View details about GitHub Actions workflows

ALIAS COMMANDS co: Alias for "pr checkout"

ADDITIONAL COMMANDS alias: Create command shortcuts api: Make an authenticated GitHub API request attestation: Work with artifact attestations completion: Generate shell completion scripts config: Manage configuration for gh extension: Manage gh extensions gpg-key: Manage GPG keys label: Manage labels ruleset: View info about repo rulesets search: Search for repositories, issues, and pull requests secret: Manage GitHub secrets ssh-key: Manage SSH keys status: Print information about relevant issues, pull requests, and notifications across repositories variable: Manage GitHub Actions variables

HELP TOPICS actions: Learn about working with GitHub Actions environment: Environment variables that can be used with gh exit-codes: Exit codes used by gh formatting: Formatting options for JSON data exported from gh mintty: Information about using gh with MinTTY reference: A comprehensive reference of all gh commands

FLAGS --help Show help for command --version Show gh version

EXAMPLES $ gh issue create $ gh repo clone cli/cli $ gh pr checkout 321

LEARN MORE Use gh <command> <subcommand> --help for more information about a command. Read the manual at https://cli.github.com/manual Learn about exit codes using gh help exit-codes

Read the full file on GitHub · 369 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. 13d ago First seen · 369 lines · 21 tokens per session scan A f5931e9ddd34

Subscribe to this mod's changes

github-cli-guide is a cursor rule published in the GitHub repository iHildy/jules-task-queue (17 stars, last pushed 8mo ago), licensed MIT. It adds 21 tokens to every session and 3,338 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.