Agent skill

Gh CLI

by CaoMeiYouRen in CaoMeiYouRen/caomei-auth

使用 GitHub CLI(gh)处理仓库、issue、pull request、workflow、project、release、codespace、gist、search、api、auth、config、alias、secret、variable、extension、ruleset 和 status 等命令行操作时使用。用户提到 gh、gh cli、GitHub CLI、gh…

MITAuto-check passedDevelopment

Install Gh CLI

skills CLI
$ npx skills add CaoMeiYouRen/caomei-auth --skill gh-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install CaoMeiYouRen/caomei-auth gh-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/CaoMeiYouRen/caomei-auth.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/gh-cli .claude/skills/gh-cli && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gh-cli
GitHub stars
220
Token cost
~460 tokens
SKILL.md length
85 words
Files
8 (incl. references)
Skills in repo
14
Repo updated
First seen
Licence
MIT

At a glance

使用 GitHub CLI(gh)处理仓库、issue、pull request、workflow、project、release、codespace、gist、search、api、auth、config、alias、secret、variable、extension、ruleset 和 status 等命令行操作时使用。用户提到 gh、gh cli、GitHub CLI、gh…

  • Tasks that involve Pull requests
  • SKILL.md covers 工作流, 参考资源, 反模式 and 交付前检查
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Gh CLI is an agent skill from CaoMeiYouRen/caomei-auth. 使用 GitHub CLI(gh)处理仓库、issue、pull request、workflow、project、release、codespace、gist、search、api、auth、config、alias、secret、variable、extension、ruleset 和 status 等命令行操作时使用。用户提到 gh、gh cli、GitHub CLI、gh auth、gh repo、gh issue、gh pr、gh workflow、gh project、gh release、gh api、gh search、gh codespace、gh secret、gh variable、gh alias 时都应触发。

Its SKILL.md is about 460 tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `references/actions-and-release.md`, `references/api-search-formatting.md` and `references/auth-and-config.md`).

It sits in Development, covering Pull requests. It works with GitHub. The repository describes itself as: 草梅 Auth 是一个基于 Nuxt 全栈框架的统一登录平台。支持 OAuth2.0 协议,集成邮箱、用户名、手机号、验证码、社交媒体等多种登录注册方式。 The licence is MIT.

When your agent uses it

  • Tasks that involve Pull requests

Example prompts

  • “/gh-cli”

What it can do on your machine

Read from SKILL.md and the folder at commit 7bd3bae. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gh CLI loads about 460 tokens when it runs, and up to ~2.9k if it reads all its reference files. Until then it costs about 82 tokens; SKILL.md has 85 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~82
When it runs · the whole SKILL.md, loaded when a task matches
~460
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from CaoMeiYouRen/caomei-auth at commit 7bd3bae, republished under its MIT licence (© CaoMeiYouRen). 85 words, ~460 tokens.

Download SKILL.mdSave it as .claude/skills/gh-cli/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
gh-cli
description
使用 GitHub CLI(gh)处理仓库、issue、pull request、workflow、project、release、codespace、gist、search、api、auth、config、alias、secret、variable、extension、ruleset 和 status 等命令行操作时使用。用户提到 gh、gh cli、GitHub CLI、gh auth、gh repo、gh issue、gh pr、gh workflow、gh project、gh release、gh api、gh search、gh codespace、gh secret、gh variable、gh alias 时都应触发。
metadata.internal
true

GitHub CLI

铁律:先确认目标资源、认证状态和输出形式,再执行 gh 命令;默认优先读取与查询,任何有副作用的操作都必须明确到具体资源。

工作流

  • Step 1: 锁定命令族和目标
    • 1.1 明确是 repo、issue、pr、workflow、project、release、codespace、gist、search、api 还是 auth/config。
    • 1.2 明确目标仓库、hostname、账号或 environment,避免依赖默认上下文。
  • Step 2: 检查认证与配置
    • 2.1 若涉及远程资源,先确认 gh 已登录且账号/host 正确。
    • 2.2 若需要机器可读输出,优先使用 --json、--jq 或 --template,不要先用肉眼读表格。
  • Step 3: 执行最小充分命令
    • 3.1 只运行能回答当前问题的最小命令。
    • 3.2 批量操作、删除、关闭、合并、发布、禁用、归档、移除类命令必须先确认影响范围。
  • Step 4: 输出与后续动作
    • 4.1 汇报命令结果时,保留关键字段、状态和下一步。
    • 4.2 若还需要后续 gh 命令,先说明依赖关系再继续。

参考资源

反模式

  • 在目标仓库不明确时直接依赖默认 repo。
  • 先执行破坏性命令,再回头确认对象是否正确。
  • 明明可以用 JSON 输出,却手工解析表格文本。
  • 在没有明确授权时执行 delete、merge、close、archive、disable 之类操作。

交付前检查

  • 目标资源和上下文已明确。
  • 认证状态已确认,或已说明需要用户先登录。
  • 输出格式选择合理,适合当前任务。
  • 所有副作用命令都已取得明确确认。

© CaoMeiYouRen, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (references) in .github/skills/gh-cli of CaoMeiYouRen/caomei-auth.

  • SKILL.md
  • references/actions-and-release.md
  • references/api-search-formatting.md
  • references/auth-and-config.md
  • references/automation-patterns.md
  • references/gh-cli-reference.md
  • references/projects-codespaces-gists.md
  • references/repo-issue-pr.md

Open the folder on GitHubat commit 7bd3bae

Compare with similar skills

Gh CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gh CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gh CLI this skillCaoMeiYouRen/caomei-auth220—~460Automated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Check PRonyx-dot-app/onyx32k2 repos~2.3kAutomated safety check: PassMIT
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0
Pull Request Title and Body Writeropeninterpreter/openinterpreter69k2 repos~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Check PR

    onyx-dot-app/onyx

    Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.

    32k GitHub starsUsed in 2 repos~2.3k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Pull Request Title and Body Writer

    openinterpreter/openinterpreter

    Rewrites the title and body of one or more pull requests with gh, leading with why the change was made, then what changed, and describing only the net result.

    69k GitHub starsUsed in 2 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    Runs a loop on a GitHub pull request: fetch review state, triage comments into actions, implement them and resolve threads, repeating until nothing actionable is left.

    48k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed

More from CaoMeiYouRen/caomei-auth

All 14 skills in this repo
  • Code Reviewer

    CaoMeiYouRen/caomei-auth

    审查当前 git 变更、PR、提交范围、技能定义文件、架构调整或安全敏感代码时使用。输出结构化 Review Gate 结论(Pass/Reject)、问题分级(blocker/warning/suggest)、最低验证矩阵、证据链与复查基线。覆盖正确性、安全、架构、SOLID、可删除代码、性能、异常处理与测试风险;默认只输出 review,不直接修改代码。用户提到 review、code…

    220 GitHub stars~1.5k tokensUpdated 7 days ago
    Auto-check passed
  • Full Stack Master

    CaoMeiYouRen/caomei-auth

    需要统筹需求澄清、上下文扫描、技术方案、前后端实现、UI 验证、测试、质量审查、文档同步和提交节奏时使用。它负责编排多技能协作,而不是亲自替代所有专业技能。用户提到 end-to-end workflow、全流程开发、从需求到提交、PDTFC+、多技能编排时都应触发。

    220 GitHub stars~1k tokensUpdated 7 days ago
    Auto-check passed
  • Quality Guardian

    CaoMeiYouRen/caomei-auth

    运行并解读 lint、类型检查、测试等质量门时使用。它不只是执行命令,还要根据变更范围选择最小充分检查、分析失败原因,并给出是否允许继续提交或发布的判断。用户提到 lint、typecheck、tests、quality gate、验证改动时都应触发。

    220 GitHub stars~358 tokensUpdated 7 days ago
    Auto-check passed
  • Devops Specialist

    CaoMeiYouRen/caomei-auth

    修改 Docker、CI/CD、部署配置、环境变量、运行时参数、构建脚本和发布流程时使用。优先覆盖 Docker、Vercel、Cloudflare 与 GitHub Actions 场景。用户提到 deploy、Dockerfile、workflow、CI、CD、environment variables、build pipeline、release config 时都应触发。

    220 GitHub stars~446 tokensUpdated 7 days ago
    Auto-check: notes
  • Backend Expert

    CaoMeiYouRen/caomei-auth

    设计或实现后端 API、服务层、数据库读写、鉴权权限控制、输入校验、事务处理与错误处理时使用。用户提到 API、route、handler、server、auth、permission、drizzle、database、zod、Hono、Nuxt server routes、backend bug 修复时都应触发。

    220 GitHub stars~329 tokensUpdated 7 days ago
    Auto-check passed
  • Context Analyzer

    CaoMeiYouRen/caomei-auth

    在动手规划、修改、调试或回答复杂项目问题前使用。用于快速扫描项目结构、依赖、约束文档、关键文件和调用链,输出任务相关上下文,而不是直接改代码。用户提到 analyze context、scan repo、understand project、定位实现、找规范、排查调用链时都应触发。

    220 GitHub stars~296 tokensUpdated 7 days ago
    Auto-check passed

Works with

Categories

Questions about Gh CLI

What does Gh CLI do?

使用 GitHub CLI(gh)处理仓库、issue、pull request、workflow、project、release、codespace、gist、search、api、auth、config、alias、secret、variable、extension、ruleset 和 status 等命令行操作时使用。用户提到 gh、gh cli、GitHub CLI、gh…. Gh CLI is an agent skill from CaoMeiYouRen/caomei-auth.

When should I use Gh CLI?

Gh CLI fits situations like: tasks that involve Pull requests.

How do I install Gh CLI in Claude Code?

Run `npx skills add CaoMeiYouRen/caomei-auth --skill gh-cli -a claude-code`. Or copy the skill folder (.github/skills/gh-cli in CaoMeiYouRen/caomei-auth) into .claude/skills/gh-cli in your project. Claude Code loads it when a task matches its description.

How do I install Gh CLI in Codex?

Run `npx skills add CaoMeiYouRen/caomei-auth --skill gh-cli -a codex`. Or copy the skill folder (.github/skills/gh-cli in CaoMeiYouRen/caomei-auth) into .agents/skills/gh-cli in your project. Codex loads it when a task matches its description.

Can I use Gh CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add CaoMeiYouRen/caomei-auth --skill gh-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gh-cli, .gemini/skills/gh-cli, .github/skills/gh-cli and .opencode/skills/gh-cli in your project.

What does Gh CLI need to run?

SKILL.md names no scripts, command-line tools or credentials: Gh CLI is instructions for the agent only.

Does Gh CLI access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Gh CLI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gh CLI use?

Gh CLI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gh CLI use?

About 460 tokens (SKILL.md is roughly 1.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.5k tokens, read only when the agent opens those files.

What are the alternatives to Gh CLI?

Skills that share tags, products or a category with Gh CLI: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Create Pull Request (cline/cline, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gh CLI?

CaoMeiYouRen (a GitHub user) maintains it in CaoMeiYouRen/caomei-auth, which has 220 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 1, 2026.

Source: CaoMeiYouRen/caomei-auth on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.