← 返回 Skills 市场
wu-uk

gh-cli

作者 wu-uk · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
75
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install gh-repo-analytics-gh-cli
功能描述
The gh CLI is GitHub's official command line tool for interacting with GitHub repositories, issues, pull requests, and more. When needs to interact with GitH...
使用说明 (SKILL.md)

GitHub CLI (gh)

Work seamlessly with GitHub from the command line.

Usage

gh \x3Ccommand> \x3Csubcommand> [flags]

Core Commands

  issue:      Manage issues
  pr:         Manage pull requests
  repo:       Create, clone, fork, and view repositories
  api:        Make an authenticated GitHub API request
  run:        View details about workflow runs

Use gh \x3Ccommand> --help for more information about a command.


gh pr

Work with GitHub pull requests.

USAGE
  gh pr \x3Ccommand> [flags]

CORE COMMANDS
  checkout:   Check out a pull request in git
  checks:     Show CI status for a single pull request
  close:      Close a pull request
  comment:    Create a new pr comment
  create:     Create a pull request
  diff:       View changes in a pull request
  edit:       Edit a pull request
  list:       List and filter pull requests in this repository
  merge:      Merge a pull request
  ready:      Mark a pull request as ready for review
  reopen:     Reopen a pull request
  review:     Add a review to a pull request
  status:     Show status of relevant pull requests
  view:       View a pull request

FLAGS
  -R, --repo [HOST/]OWNER/REPO   Select another repository using the [HOST/]OWNER/REPO format

INHERITED FLAGS
  --help   Show help for command

ARGUMENTS
  A pull request can be supplied as argument in any of the following formats:
  - by number, e.g. "123";
  - by URL, e.g. "https://github.com/OWNER/REPO/pull/123"; or
  - by the name of its head branch, e.g. "patch-1" or "OWNER:patch-1".

EXAMPLES
  $ gh pr checkout 353
  $ gh pr create --fill
  $ gh pr view --web

LEARN MORE
  Use 'gh \x3Ccommand> \x3Csubcommand> --help' for more information about a command.
  Read the manual at https://cli.github.com/manual

gh issue

Work with GitHub issues.

USAGE
  gh issue \x3Ccommand> [flags]

CORE COMMANDS
  close:      Close issue
  comment:    Create a new issue comment
  create:     Create a new issue
  delete:     Delete issue
  edit:       Edit an issue
  list:       List and filter issues in this repository
  reopen:     Reopen issue
  status:     Show status of relevant issues
  transfer:   Transfer issue to another repository
  view:       View an issue

FLAGS
  -R, --repo [HOST/]OWNER/REPO   Select another repository using the [HOST/]OWNER/REPO format

INHERITED FLAGS
  --help   Show help for command

ARGUMENTS
  An issue can be supplied as argument in any of the following formats:
  - by number, e.g. "123"; or
  - by URL, e.g. "https://github.com/OWNER/REPO/issues/123".

EXAMPLES
  $ gh issue list
  $ gh issue create --label bug
  $ gh issue view --web

LEARN MORE
  Use 'gh \x3Ccommand> \x3Csubcommand> --help' for more information about a command.
  Read the manual at https://cli.github.com/manual

gh repo

Work with GitHub repositories.

USAGE
  gh repo \x3Ccommand> [flags]

CORE COMMANDS
  archive:    Archive a repository
  clone:      Clone a repository locally
  create:     Create a new repository
  delete:     Delete a repository
  edit:       Edit repository settings
  fork:       Create a fork of a repository
  list:       List repositories owned by user or organization
  rename:     Rename a repository
  sync:       Sync a repository
  view:       View a repository

INHERITED FLAGS
  --help   Show help for command

ARGUMENTS
  A repository can be supplied as an argument in any of the following formats:
  - "OWNER/REPO"
  - by URL, e.g. "https://github.com/OWNER/REPO"

EXAMPLES
  $ gh repo create
  $ gh repo clone cli/cli
  $ gh repo view --web

Search Query Syntax

The --search flag uses GitHub search syntax. Full documentation: https://docs.github.com/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax

Comparison Operators

Query Description Example
>n Greater than stars:>1000
>=n Greater than or equal topics:>=5
\x3Cn Less than size:\x3C10000
\x3C=n Less than or equal stars:\x3C=50

Range Queries

Query Description Example
n..n Between range stars:10..50
n..* Greater than or equal stars:10..* (same as >=10)
*..n Less than or equal stars:*..10 (same as \x3C=10)

Date Queries

Date format: YYYY-MM-DD (ISO8601). Optional time: YYYY-MM-DDTHH:MM:SS+00:00

Query Example
>YYYY-MM-DD created:>2024-04-29 — after April 29, 2024
>=YYYY-MM-DD created:>=2024-04-01 — on or after April 1, 2024
\x3CYYYY-MM-DD pushed:\x3C2024-07-05 — before July 5, 2024
\x3C=YYYY-MM-DD created:\x3C=2024-07-04 — on or before July 4, 2024
YYYY-MM-DD..YYYY-MM-DD created:2024-04-30..2024-07-04 — date range
YYYY-MM-DD..* created:2024-04-30..* — on or after date
*..YYYY-MM-DD created:*..2024-07-04 — on or before date

Exclude Results

Prefix qualifier with - to exclude:

Query Example
-QUALIFIER stars:>10 -language:javascript — exclude JavaScript repos
NOT hello NOT world — has "hello" but not "world"

Usernames

Query Description
author:USERNAME Filter by specific user
author:@me Filter by current user
assignee:@me Assigned to current user

Queries with Whitespace

Use quotation marks for multi-word values:

  • label:"bug fix" — label with space
  • cats NOT "hello world" — exclude phrase

JSON Output

Common fields for --json:

PR:

additions
assignees
author
baseRefName
body
changedFiles
closed
closedAt
comments
commits
createdAt
deletions
files
headRefName
headRepository
headRepositoryOwner
id
isCrossRepository
isDraft
labels
maintainerCanModify
mergeCommit
mergeStateStatus
mergeable
mergedAt
mergedBy
milestone
number
potentialMergeCommit
projectCards
reactionGroups
reviewDecision
reviewRequests
reviews
state
statusCheckRollup
title
updatedAt
url

Issue:

close
  comment
  create
  delete
  edit
  list
  reopen
  status
  transfer
  view
安全使用建议
This skill is a docs-only wrapper around the GitHub CLI and does not install anything or request secrets itself. If you plan to use it, ensure the real 'gh' binary is installed from an official source (https://cli.github.com) and that you authenticate with GitHub via the recommended methods (gh auth login or a GITHUB_TOKEN). Note the SKILL.md claims a 'Proprietary' LICENSE.txt but no license file is included in the package — if licensing or provenance matters to you, ask the publisher for the LICENSE and the source/homepage before trusting or distributing this skill.
功能分析
Type: OpenClaw Skill Name: gh-repo-analytics-gh-cli Version: 0.1.0 The skill bundle consists entirely of documentation and usage instructions for the official GitHub CLI (gh) tool. It contains no executable code, scripts, or malicious instructions, serving only as a reference manual for an AI agent to interact with GitHub repositories, issues, and pull requests via the command line (SKILL.md).
能力评估
Purpose & Capability
Skill name, description, and SKILL.md content are documentation for the GitHub 'gh' CLI and do not request unrelated access or capabilities.
Instruction Scope
SKILL.md is documentation and does not instruct the agent to read arbitrary files, access unrelated environment variables, or transmit data to third-party endpoints. It only describes gh commands (including authenticated API calls) in general terms.
Install Mechanism
No install specification is present (instruction-only), so nothing is written to disk or downloaded by the skill itself.
Credentials
The document mentions authenticated API requests but the skill declares no required environment variables or primary credential. This is explainable because gh typically uses interactive 'gh auth' or standard GITHUB_TOKEN usage outside the skill, but users should know the CLI will need GitHub credentials to perform authenticated operations.
Persistence & Privilege
The skill is not always-enabled and may be invoked by the agent when relevant. There is no indication it requests elevated or persistent system privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gh-repo-analytics-gh-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gh-repo-analytics-gh-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Bulk publish from all-task-skills-dedup
元数据
Slug gh-repo-analytics-gh-cli
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

gh-cli 是什么?

The gh CLI is GitHub's official command line tool for interacting with GitHub repositories, issues, pull requests, and more. When needs to interact with GitH... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 75 次。

如何安装 gh-cli?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gh-repo-analytics-gh-cli」即可一键安装,无需额外配置。

gh-cli 是免费的吗?

是的,gh-cli 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

gh-cli 支持哪些平台?

gh-cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 gh-cli?

由 wu-uk(@wu-uk)开发并维护,当前版本 v0.1.0。

💬 留言讨论