闲社服务运行正常AI智能体自动化平台
g

GitHub CLI操作

技能标识:gh

Use the GitHub CLI (gh) to perform core GitHub operations: auth status, repo create/clone/fork, issues, pull requests, releases, and basic repo management. Trigger for requests to use gh, manage GitHub repos, PRs, or issues from the CLI.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.1.0
检测标记
后台标记通过
免费
免费获取
5
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

GitHub CLI操作

GitHub CLI (gh)

概述

使用 gh 在终端中执行经过身份验证的 GitHub 操作。优先使用显式、幂等的命令,并向用户返回 URL。

快速检查

  • - 认证状态:
bash gh auth status
  • - 当前仓库上下文:
bash gh repo view --json nameWithOwner,url,defaultBranchRef

核心工作流

创建仓库(默认私有)

bash gh repo create OWNER/NAME --private --confirm --description ...

如果在本地仓库内运行,请使用 --source . --remote origin --push。

克隆/复刻

bash gh repo clone OWNER/NAME

bash
gh repo fork OWNER/NAME --clone

议题

  • - 列出:
bash gh issue list --limit 20
  • - 创建:
bash gh issue create --title ... --body ...
  • - 评论:
bash gh issue comment --body ...

拉取请求

  • - 从当前分支创建:
bash gh pr create --title ... --body ...
  • - 列出:
bash gh pr list --limit 20
  • - 查看:
bash gh pr view --web
  • - 合并(使用显式方法):
bash gh pr merge --merge

发布版本

bash gh release create vX.Y.Z --title vX.Y.Z --notes ...

安全提示

  • - 在执行破坏性操作(删除、强制推送)前,确认目标仓库/所有者。
  • 对于私有仓库,创建时确保设置 --private。
  • 在自动化中优先使用 --confirm 以避免交互式提示。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 gh-1776338296 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 gh-1776338296 技能

通过命令行安装

skillhub install gh-1776338296

下载

⬇ 下载 gh v0.1.0(免费)

文件大小: 1.53 KB | 发布时间: 2026-4-17 14:14

v0.1.0 最新 2026-4-17 14:14
Initial publish
返回顶部