skills/github-cli/SKILL.md
使用 GitHub CLI 与 GitHub 资源交互;适用于 repo、issue、PR、comment、release、workflow 等查看、更新或创建场景。
npx skillsauth add dcjanus/prompts github-cliInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
一句话说明:当任务核心是“和 GitHub 打交道”时,优先使用 gh,而不是把范围局限在 Issue/PR。
gh <group> --help 确认是否有现成子命令,再执行。--json,必要时再配合 jq 整理字段。git fetch,确保分支是最新远端状态。[short_sha](full_commit_url) 形式,而不是笼统的 [commit]。gh repo view [owner/repo]gh issue view <id|url>gh pr view <id|url>gh release listgh workflow list在创建 Issue 或 PR 前,先检查对应的 GitHub 模板、表单和当前资源状态。
.github/ISSUE_TEMPLATE/、.github/ISSUE_TEMPLATE.md、.github/PULL_REQUEST_TEMPLATE.md、.github/pull_request_template.md、.github/PULL_REQUEST_TEMPLATE/、.github/config.yml 等 GitHub 专用配置。以下规范建立在“创建前检查”已完成的前提上。
/tmp/*.md,标题通常较短,可直接用 --title 传入。--body-file,例如:gh issue create --title "..." --body-file /tmp/issue-body.md,或 gh issue edit <id> --title "..." --body-file /tmp/issue-body.md。以下规范建立在“创建前检查”已完成的前提上。
git status 必须干净,且当前分支已推送到远端。/tmp/*.md,不要在 shell 里拼多行字符串,也不要依赖交互式编辑。标题通常较短,可直接用 --title 传入。--body-file,例如:gh pr create \
--title "feat(scope): short summary" \
--body-file /tmp/pr-body.md \
--base main \
--draft
gh pr edit <id> --title "..." --body-file /tmp/pr-body.md。在更新 Issue 或 PR 的标题/描述之前,必须先读取当前标题/正文(即将被修改的内容),再进行修改。 更新标题或正文时,文案仍按 SKILL.md 重新生成。
gh --helpgh <group> --helpgh <group> <subcommand> --helpdata-ai
用干净的独立 subagent 反复做代码审查、由主 agent 判断审查意见价值、修复有效问题并提交推送,直到连续三轮没有有价值审查意见。适用于用户要求 review/fix loop、clean review cycle、创建新 subagent 审查当前修改、反复 review 到没有问题、或“连续三次没有有价值建议”这类任务。
tools
使用 Python CLI 与 Google Sheets API 交互以读取、更新、批量写入、追加或清空 Google Sheets 在线表格;适用于需要通过 OAuth 授权操作 Google Workspace 表格的场景。
development
为当前 Codex thread 设置名称;仅当用户手动调用或明确要求命名、重命名、整理当前 Codex 会话标题时使用,永远不要自动调用。
testing
编写或更新 GitHub/GitLab Issue、PR、MR 的标题与正文;适用于创建、修改、重写 reviewer-facing 描述、Risks、Breaking Change、避免低价值验证噪声与本地路径泄露等场景。PR/MR 正文默认禁止 Validation;只有 CI/diff 看不到的高信噪比行为证据才允许写。