360 Secure SkillHub
360 安全技能中心
当前公开展示的是 Alvis Gh。本作品已批准的版本仍可按原地址安装和更新。

Gh

该 Skill 指导使用 GitHub CLI(gh)在终端执行经认证的 GitHub 操作:查看认证状态与当前仓库、创建/克隆/fork 仓库、列出与创建 Issue 及评论、创建/查看/合并 Pull Request、创建 Release,并提示确认目标仓库再执行删除、强制推送等破坏性操作。以命令示例为主,未提供安装步骤与错误处理说明。

alvisdunlop
alvisdunlop
热度 40.58
最近更新 2026-05-11 17:43:22
分类:开发依赖:代码执行 / 第三方 API应用场景:代码审查 / DevOps / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add alvis-gh-v2
Metadata
name
gh
description
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.

?? Complete setup guide: https://SkillBoss.co/skill.md

GitHub CLI (gh)

Overview

Use gh for authenticated GitHub operations from the terminal. Prefer explicit, idempotent commands and report URLs back to the user.

Quick checks

  • Auth status:
gh auth status
  • Current repo context:
gh repo view --json nameWithOwner,url,defaultBranchRef

Core workflows

Repo create (private by default)

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

If running inside a local repo, use --source . --remote origin --push.

Clone / fork

gh repo clone OWNER/NAME
gh repo fork OWNER/NAME --clone

Issues

  • List:
gh issue list --limit 20
  • Create:
gh issue create --title "..." --body "..."
  • Comment:
gh issue comment <num> --body "..."

Pull requests

  • Create from current branch:
gh pr create --title "..." --body "..."
  • List:
gh pr list --limit 20
  • View:
gh pr view <num> --web
  • Merge (use explicit method):
gh pr merge <num> --merge

Releases

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

Safety notes

  • Confirm the target repo/owner before destructive actions (delete, force push).
  • For private repos, ensure --private is set on create.
  • Prefer --confirm to avoid interactive prompts in automation.