github-workflow

github-workflow is a skill for Claude Code, Codex from ntygod/ZhiWei. It costs 40 tokens per session (757 once invoked), scanned A, original, MIT.

A GitHub collaboration guide for managing pull requests, issues, automated checks, code reviews, and files in remote repositories.

In plain words
What is it for?
Use it to create, inspect, review, comment on, or merge pull requests; manage issues; investigate failed CI runs; and read or update repository files.
Why use it?
It brings the relevant GitHub checks and review steps together, helping avoid merging code before automated checks pass or editing remote files incorrectly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create, inspect, review, comment on, or merge pull requests; manage issues; investigate failed CI runs; and read or update repository files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ntygod/zhiwei/github-workflow
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.

Any agent
npx skills add ntygod/ZhiWei --skill github-workflow
Clone the repo
git clone --depth 1 https://github.com/ntygod/ZhiWei

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ntygod/zhiwei/github-workflow/github.svg)](https://agentmods.dev/skills/ntygod/zhiwei/github-workflow)
Your own site
<a href="https://agentmods.dev/skills/ntygod/zhiwei/github-workflow"><img src="https://agentmods.dev/badge/skills/ntygod/zhiwei/github-workflow/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-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/ntygod/zhiwei/github-workflow"><img src="https://agentmods.dev/badge/skills/ntygod/zhiwei/github-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 757 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00040 $0.00757
Opus 5.5 $0.00016 $0.00303
Sonnet 5.5 $0.00008 $0.00151
Haiku 4.5 $0.00004 $0.00076

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

Security

Grade A, and why

github-workflow 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 1mo 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.

src/main/resources/skills/github-workflow/SKILL.md · 69 lines

What it actually says

GitHub 协作指南

gh CLI + REST/GraphQL API 管理 GitHub PR / Issue / CI / 代码审查。

适用场景

  • PR 创建 / 审查 / 合并
  • Issue 创建 / 管理 / 关闭
  • CI / Actions 状态查 + 失败排查
  • 代码审查(看 diff、留 review comment)
  • 远程仓库文件查看与编辑(Contents API)

不适用场景

  • 纯本地 Git 操作(commit / branch / log)→ shell_exec / shell_exec
  • 代码编写本身 → code-assistant
  • 其他平台(Gitee / GitLab / Bitbucket)→ shell_exec 调对应 CLI 或 API

工作流(按操作分流)

操作 路径
本地 commit + push + 创 PR shell_exec(command="git add ... && git commit -m '...'") → shell_exec(command="git push") → gh pr create
仅 GitHub 侧(看 / 评论 / 合并 PR) shell_exec + gh pr ...
Issue 创建 / 查询 / 评论 shell_exec + gh issue ...
CI 状态 + 失败排查 shell_exec + gh run list / view --log-failed
代码审查(拉 diff + 留意见) gh pr diff + gh pr review
远程文件直改(不 clone) shell_exec + gh api(Contents API)
复杂查询(跨仓 / 批量) gh api graphql 或 web_fetch GraphQL

各路径要点:

  • CI 通过才合并:合 PR 前 gh pr checks <pr> 看全绿
  • git 操作走 shell_exec:所有 git 命令(status/diff/log/commit/push 等)统一用 shell_exec 执行
  • Contents API 整体解码:返回的 Base64 含换行,必须先去空白再整体 base64 解码;逐行解会破坏多字节 UTF-8
  • 时间窗口收窄:since / until 限定范围;结果太多缩窗口而不是 --paginate
  • token 走 env:GITHUB_TOKEN 由系统注入,命令里不写明文

详细参考

  • gh CLI 命令速查(PR / Issue / CI / 审查):{skill_dir}/references/gh-cli-reference.md
  • Contents API 文件更新(Bash / PowerShell)+ 时间范围查询:{skill_dir}/references/content-api.md
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 69 lines · 40 tokens per session scan A fa7a4a8c6efa

Subscribe to this mod's changes

github-workflow is a skill published in the GitHub repository ntygod/ZhiWei (137 stars, last pushed 2mo ago), licensed MIT. It adds 40 tokens to every session and 757 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories

plugin-code-review-orchestrated

Orchestrates a code review of the spring-plugin repository through scope/context passes, routing, domain reviewer subskills, and per-artifact validation. Use when asked to review a PR, diff, commit, branch, module, or file set, to run a full orchestrated review, or to produce a validated review report.

explyt/spring-plugin · 72 tokens

review-scope-resolver

Normalizes a PR, diff, commit, branch, file list, directory, module, class, or function into an exact review target with semantic clusters and routing signals for domain reviewer subskills. Use as the first pass of an orchestrated code review, when asked to resolve review scope, or when a raw review reference must be…

explyt/spring-plugin · 83 tokens

ghx

Guidance for safe, reliable GitHub CLI workflows across issues, pull requests, and reviews.

holon-run/holon · 22 tokens

github-pr-fix

Fix a GitHub pull request by addressing feedback or CI failures, pushing changes, and publishing replies.

holon-run/holon · 25 tokens

pr-review-comments

Posts review findings from a JSON file as inline comments on a GitHub Pull Request, attaching each comment to its file and line. Use when you have a list/JSON of review findings (each with a file path, line number, and a message such as summary/failurescenario) and want them published on a PR as inline review…

giuseppe-trisciuoglio/developer-kit · 101 tokens

ai-driven-code-editor-cli

OpenCode AI - AI-driven code editor/IDE (CLI/TUI version of Cursor/Windsurf). Use when: (1) AI-assisted coding tasks, (2) Code refactoring with AI, (3) GitHub PR review/fixes, (4) Multi-file edits requiring context, (5) Running AI agents on codebases. NOT for: simple one-line ed…

rondoflow/rondoflow · 84 tokens