← 返回 Skills 市场
Github
作者
Peter Steinberger
· GitHub ↗
· v1.0.0
190178
总下载
635
收藏
4334
当前安装
1
版本数
在 OpenClaw 中安装
/install github
功能描述
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
使用说明 (SKILL.md)
GitHub Skill
Use the gh CLI to interact with GitHub. Always specify --repo owner/repo when not in a git directory, or use URLs directly.
Pull Requests
Check CI status on a PR:
gh pr checks 55 --repo owner/repo
List recent workflow runs:
gh run list --repo owner/repo --limit 10
View a run and see which steps failed:
gh run view \x3Crun-id> --repo owner/repo
View logs for failed steps only:
gh run view \x3Crun-id> --repo owner/repo --log-failed
API for Advanced Queries
The gh api command is useful for accessing data not available through other subcommands.
Get PR with specific fields:
gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'
JSON Output
Most commands support --json for structured output. You can use --jq to filter:
gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'
安全使用建议
Install only if you are comfortable letting the agent use your local GitHub CLI. Check `gh auth status`, prefer least-privileged GitHub access, and review any command that posts, edits, merges, deletes, or uses `gh api` beyond simple read-only queries.
功能分析
Type: OpenClaw Skill
Name: github
Version: 1.0.0
The skill bundle provides instructions for interacting with GitHub using the `gh` CLI. All examples provided in `SKILL.md` demonstrate read-only operations (e.g., checking PR status, listing runs, viewing API data). While the `gh api` command itself offers broad capabilities that could be misused if the agent's GitHub token has extensive permissions, the skill's instructions and examples do not show any intent for malicious behavior, data exfiltration, prompt injection, or other high-risk actions. The content is clearly aligned with its stated purpose.
能力评估
Purpose & Capability
The skill's purpose and content are coherent: it teaches use of `gh` for PRs, workflow runs, issues, and API queries. The `gh api` capability is broad, but the included example is read-only and purpose-aligned.
Instruction Scope
The examples are read-oriented and encourage explicit `--repo owner/repo` scoping. The skill does not include destructive examples, but users should still review any generated write, merge, delete, or non-read API command.
Install Mechanism
The artifact contains only `SKILL.md`; there are no executable scripts or install hooks. It depends on a preinstalled GitHub CLI, which is not declared as a bundled dependency.
Credentials
Using the local `gh` CLI is proportionate for a GitHub skill, but commands will run under the user's existing GitHub CLI authentication and permissions.
Persistence & Privilege
No persistence, background process, privilege escalation, credential capture, stored state, or file mutation behavior appears in the artifact.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install github - 安装完成后,直接呼叫该 Skill 的名称或使用
/github触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
元数据
推荐 Skills