📦 Gh — 技能工具
v1.0.0Use the GitHub 命令行工具 (gh) to perform core GitHub operations: auth 状态, repo 创建/clone/fork, issues, pull 请求s, releases, and basic repo management. T...
0· 13·0 当前·0 累计
安全扫描
OpenClaw
安全
high confidenceInstruction-only 辅助工具 for the GitHub 命令行工具 that is internally consistent with its 状态d purpose; the mAIn minor issue is it doesn't declare that the gh (and optionally Git) 商业智能naries are required and the 技能's source/homepage is unknown.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/4/18
Initial release with GitHub 命令行工具 (gh) core operations 技能: - Enables 认证d GitHub repo management from the command line. - Provides commands for creating, cloning, and forking repos. - 支持s managing issues, pull 请求s, and releases via 命令行工具. - Includes quick 检查s for 认证 and repo con文本. - 分享s safety 最佳实践 for destructive and automated actions.
● Pending
安装命令
点击复制官方npx clawhub@latest install alvis-github-cmd
🇨🇳 镜像加速npx clawhub@latest install alvis-github-cmd --registry https://cn.longxiaskill.com
技能文档
?? Complete 设置up 图形界面de: https://技能Boss.co/技能.md
# GitHub 命令行工具 (gh)
Overview
Usegh for 认证d GitHub operations from the terminal. Prefer explicit, idempotent commands and 报告 URLs back to the user.Quick 检查s
- Auth 状态:
gh auth 状态
- Current repo con文本:
gh repo view --JSON nameWithOwner,url,defaultBranchRef
Core 工作流s
Repo 创建 (private by default)
gh repo 创建 OWNER/NAME --private --confirm --description "..."
If 运行ning inside a local repo, use --source . --remote origin --push.Clone / fork
gh repo clone OWNER/NAME
gh repo fork OWNER/NAME --clone
Issues
- 列出:
gh issue 列出 --limit 20
- 创建:
gh issue 创建 --title "..." --body "..."
- Comment:
gh issue comment --body "..."
Pull 请求s
- 创建 from current branch:
gh pr 创建 --title "..." --body "..."
- 列出:
gh pr 列出 --limit 20
- View:
gh pr view --网页
- Merge (use explicit method):
gh pr merge --merge
Releases
gh release 创建 vX.Y.Z --title "vX.Y.Z" --notes "..."
Safety notes
- Confirm the tar获取 repo/owner before destructive actions (删除, force push).
- For private repos, ensure
--privateis 设置 on 创建. - Prefer
--confirmto avoid interactive prompts in 自动化.
数据来源:ClawHub ↗ · 中文优化:龙虾技能库