Agent skill

Gh View

by qiniu in qiniu/go-sdk

分析 GitHub issues、PRs 与 discussions,提供见解或实施指导。在用户提供 GitHub URL、issue/PR 编号或询问仓库内容时使用。典型场景:看 issue/PR 状态、拉 diff 与 checks、要结论与建议下一步时。

MITAuto-check passed

Install Gh View

skills CLI
$ npx skills add qiniu/go-sdk --skill gh-view -a claude-code

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

GitHub CLI
$ gh skill install qiniu/go-sdk gh-view --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/qiniu/go-sdk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/gh-view .claude/skills/gh-view && 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-view
GitHub stars
158
Token cost
~627 tokens
SKILL.md length
142 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

分析 GitHub issues、PRs 与 discussions,提供见解或实施指导。在用户提供 GitHub URL、issue/PR 编号或询问仓库内容时使用。典型场景:看 issue/PR 状态、拉 diff 与 checks、要结论与建议下一步时。

  • Works in 4 steps: 识别输入类型(repo / issue / pr / discussion /… → 用 gh 拉取基础信息、评论、状态、代码差异。 → 输出结论:背景、关键点、风险、建议下一步。 → …
  • SKILL.md covers 快速开始, 何时不要使用(Do NOT use), 触发样例与非样例 and 使用示例, plus 7 more sections
  • Calls gh; reaches github.com

What it does

Gh View is an agent skill from qiniu/go-sdk. 分析 GitHub issues、PRs 与 discussions,提供见解或实施指导。在用户提供 GitHub URL、issue/PR 编号或询问仓库内容时使用。典型场景:看 issue/PR 状态、拉 diff 与 checks、要结论与建议下一步时。

Its SKILL.md is about 630 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with GitHub. The licence is MIT.

Example prompts

  • “/gh-view”

Requirements

  • Pre-approved tools (allowed-tools): Bash(gh repo view:*), Bash(gh issue view:*), Bash(gh pr view:*), Bash(gh pr diff:*), Bash(gh pr checks:*), Bash(gh api *)

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 识别输入类型(repo / issue / pr / discussion / release)。
  2. 用 gh 拉取基础信息、评论、状态、代码差异。
  3. 输出结论:背景、关键点、风险、建议下一步。
  4. 默认只分析;仅在用户明确要求时执行写操作。

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(gh repo view:*)
    • Bash(gh issue view:*)
    • Bash(gh pr view:*)
    • Bash(gh pr diff:*)
    • Bash(gh pr checks:*)
    • Bash(gh api *)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    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 View loads about 627 tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 142 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~627

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 qiniu/go-sdk at commit e1fe1ce, republished under its MIT licence (© qiniu). 142 words, ~627 tokens.

Download SKILL.mdSave it as .claude/skills/gh-view/SKILL.md (or your agent's skills folder).
name
gh-view
description
分析 GitHub issues、PRs 与 discussions,提供见解或实施指导。在用户提供 GitHub URL、issue/PR 编号或询问仓库内容时使用。典型场景:看 issue/PR 状态、拉 diff 与 checks、要结论与建议下一步时。
allowed-tools
Bash(gh repo view:*), Bash(gh issue view:*), Bash(gh pr view:*), Bash(gh pr diff:*), Bash(gh pr checks:*), Bash(gh api *)
argument-hint
<GitHub URL | owner/repo | issue/PR编号> [repo=qiniu/go-sdk]

GitHub 内容分析

开始时声明:"我正在使用 gh-view skill 分析 GitHub 内容。"

快速开始

  1. 识别输入类型(repo / issue / pr / discussion / release)。
  2. 用 gh 拉取基础信息、评论、状态、代码差异。
  3. 输出结论:背景、关键点、风险、建议下一步。
  4. 默认只分析;仅在用户明确要求时执行写操作。

何时不要使用(Do NOT use)

  • 用户请求直接修改代码、提交 commit。
  • 用户主要目标是 CI 根因分析(优先 ci-analyze)。

触发样例与非样例

  • 应触发:
  • "看下这个 PR 的核心风险点:<GitHub URL>。"
  • "帮我总结这个 issue 的讨论重点。"
  • 不应触发:
  • "帮我把这个 PR 的代码直接改完并提交。"
  • "这个 pipeline fail 了,帮我查日志根因。"

使用示例

bash
# 分析 PR
gh-view https://github.com/qiniu/go-sdk/pull/123

# 分析 issue(使用当前仓库上下文)
gh-view #456

# 查看仓库概览
gh-view qiniu/go-sdk

输入识别规则

  • 仓库:owner/repo 或 https://github.com/owner/repo
  • Issue:owner/repo/issues/<n> 或 #<n>(需 repo 上下文)
  • PR:owner/repo/pull/<n> 或 #<n>(需 repo 上下文)
  • 跨仓库编号:owner/repo#<n>

补充规则:

  • 当输入是完整 URL 时,先提取 owner/repo 与对象编号,再执行 gh 命令。
  • 用户未显式给 repo 时,默认使用 qiniu/go-sdk。
  • 需要结构化信息时优先添加 --json。

命令矩阵(按对象)

bash
# 仓库
gh repo view <owner/repo>
gh repo view <owner/repo> --json name,description,defaultBranchRef,stargazerCount,forkCount,openIssuesCount

# Issue
gh issue view <n> --repo <owner/repo>
gh issue view <n> --repo <owner/repo> --comments

# PR
gh pr view <n> --repo <owner/repo>
gh pr view <n> --repo <owner/repo> --comments
gh pr diff <n> --repo <owner/repo>
gh pr checks <n> --repo <owner/repo>

输出模板

text
目标: <repo/issue/pr>
背景: <一句话>

关键信息:
- ...
- ...

风险/阻塞:
- ...

建议下一步:
1. ...
2. ...
3. ...

边界

  • 仅使用 gh repo view / gh issue view / gh pr view / gh pr diff / gh pr checks / gh api 等只读命令。
  • 不执行任何写操作(如 gh pr comment、gh pr merge、gh issue comment、打标签、关闭 issue);未明确授权时仅分析不写入。
  • 信息不足时先问澄清,不猜测。

失败回退

  • URL 解析失败:提示用户检查 URL 格式,给出合法示例。
  • gh 命令 403/404:检查仓库权限或对象是否存在;输出实际命令和报错。
  • 信息不足以给出结论:明确标注"信息不足",列出已获取内容和缺失项。

验收标准(统一)

  • 输入前提:参数与上下文可解析;缺省参数按 skill 默认值执行,并在输出中注明。
  • 产出要求:按 skill 约定的输出模板给出结果,并包含关键证据(命令、路径、链接或日志摘要)。
  • 通过判定:主流程步骤已完成且无阻塞;若有未完成项,必须明确标注影响范围与下一步。
  • 默认策略(非交互):需要确认但用户未及时响应时,采用"推荐默认值/最小风险项"继续;需要交互选择时优先推荐项。
  • 阻塞升级:遇到权限、凭证、外部依赖缺失时立即停止该步骤,输出"阻塞点 + 已尝试 + 需要用户提供的信息"。

系统规范(AGENTS.md)

执行本 skill 时同时遵守 AGENTS.md 中的系统规范;与本 skill 冲突时以本 skill 为准。

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

Files

Just SKILL.md in .agents/skills/gh-view of qiniu/go-sdk.

Open the folder on GitHubat commit e1fe1ce

Compare with similar skills

Gh View 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 View compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gh View this skillqiniu/go-sdk158—~627Automated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Diagnosing Superpowers Sessionsobra/superpowers297k3 repos~1.7kAutomated safety check: PassMIT
Greplooponyx-dot-app/onyx32k4 repos~3.3kAutomated safety check: PassMIT
GitHub Deep Researchbytedance/deer-flow84k4 repos~1.3kAutomated safety check: PassMIT
Update V8 Versionopeninterpreter/openinterpreter69k2 repos~845Automated 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
  • Investigates a session where Superpowers went wrong, reads the transcripts on disk and produces an evidence-cited report, optionally prepared as a bug report for the maintainers.

    297k GitHub starsUsed in 3 repos~1.7k tokens
    Agent WorkflowsAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed
  • GitHub Deep Research

    bytedance/deer-flow

    Researches a GitHub repository over four rounds using the GitHub API and web search, then writes a structured markdown report with timeline, metrics and Mermaid diagrams.

    84k GitHub starsUsed in 4 repos~1.3k tokens
    Research & ScienceAuto-check passed
  • Update V8 Version

    openinterpreter/openinterpreter

    Bumps the pinned v8 and rusty_v8 versions in Codex, validates the release-candidate path with the v8-canary check, and traces failures to upstream build changes.

    69k GitHub starsUsed in 2 repos~845 tokens
    DevOps & CloudAuto-check passed
  • Last30days

    mvanhorn/last30days-skill

    Research what people actually say about any topic in the last 30 days.

    64k GitHub stars~7.9k tokensUpdated yesterday
    Research & ScienceAuto-check: notes

More from qiniu/go-sdk

  • CI Analyze

    qiniu/go-sdk

    分析 CI 失败原因并给出修复建议。在用户提到 CI 失败、pipeline 失败、构建失败、测试失败时使用。典型场景:PR 合前 CI 红、需要根因与修复建议时。

    158 GitHub stars~904 tokensUpdated 19 days ago
    Auto-check passed
  • Git Commit

    qiniu/go-sdk

    遵循 Angular 规范生成 git commit 消息。在用户请求创建 commit、写 commit message 或暂存并提交时使用。典型场景:改完代码要提交前、或要求按 Angular 规范写 message 时。

    158 GitHub stars~666 tokensUpdated 19 days ago
    Auto-check passed
  • Release Check

    qiniu/go-sdk

    检查发布版本号是否在三处保持一致(conf/conf.go、CHANGELOG.md、README.md)。在准备发布新版本时使用。

    158 GitHub stars~195 tokensUpdated 19 days ago
    Auto-check passed
  • Check

    qiniu/go-sdk

    运行提交前检查:代码格式化验证、静态检查和单元测试。在准备提交代码、检查代码质量或验证修改是否通过时使用. An agent skill from qiniu/go-sdk.

    158 GitHub stars~159 tokensUpdated 19 days ago
    Auto-check passed
  • Gen

    qiniu/go-sdk

    运行代码生成并检查变更。在修改 API 规范(api-specs/ YAML)或 sandbox OpenAPI/protobuf 后使用。

    158 GitHub stars~189 tokensUpdated 19 days ago
    Auto-check passed

Works with

Questions about Gh View

What does Gh View do?

分析 GitHub issues、PRs 与 discussions,提供见解或实施指导。在用户提供 GitHub URL、issue/PR 编号或询问仓库内容时使用。典型场景:看 issue/PR 状态、拉 diff 与 checks、要结论与建议下一步时。. Gh View is an agent skill from qiniu/go-sdk.

How do I install Gh View in Claude Code?

Run `npx skills add qiniu/go-sdk --skill gh-view -a claude-code`. Or copy the skill folder (.agents/skills/gh-view in qiniu/go-sdk) into .claude/skills/gh-view in your project. Claude Code loads it when a task matches its description.

How do I install Gh View in Codex?

Run `npx skills add qiniu/go-sdk --skill gh-view -a codex`. Or copy the skill folder (.agents/skills/gh-view in qiniu/go-sdk) into .agents/skills/gh-view in your project. Codex loads it when a task matches its description.

Can I use Gh View 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 qiniu/go-sdk --skill gh-view -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-view, .gemini/skills/gh-view, .github/skills/gh-view and .opencode/skills/gh-view in your project.

What does Gh View need to run?

Going by SKILL.md and its folder, Gh View needs the command-line tools its instructions call (gh). Its frontmatter pre-approves these tools: Bash(gh repo view:*), Bash(gh issue view:*), Bash(gh pr view:*), Bash(gh pr diff:*), Bash(gh pr checks:*), Bash(gh api *).

Does Gh View access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Gh View 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 View use?

Gh View 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 View use?

About 627 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gh View?

Skills that share tags, products or a category with Gh View: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Diagnosing Superpowers Sessions (obra/superpowers, 297k stars), Greploop (onyx-dot-app/onyx, 32k stars) and GitHub Deep Research (bytedance/deer-flow, 84k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gh View?

qiniu (a GitHub organization) maintains it in qiniu/go-sdk, which has 158 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on September 20, 2026.

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