github-api
仓库创建 2019年3月17日最近提交 23 天前SkillHot 收录 22 天前
▸ 精选理由
基于 gh 的可靠实践,便于在沙箱中做 PR/工作流/工件查询。
▸ 风险提示
需要 GITHUB_TOKEN 并可能下载 gh 二进制或依赖外部安装脚本。
这个 Skill 做什么
在受限环境中用 gh CLI 访问 GitHub API,查询仓库和工件。
在受限沙箱里通过 gh CLI 调用 GitHub API,能查询仓库、PR、issue、workflow 运行和下载 artifacts。适合需要自动化检查、收集 CI/CD 状态、抓取构建产物或审查 PR 时用。特点是优先复用已有 gh 二进制、仅在必要时安装,并依赖 GITHUB_TOKEN 做认证,安全可控,还能读取远程文件和 workflow 日志方便排查。
▸ 展开 SKILL.md 英文原文
Access GitHub API using gh CLI in sandboxed environment - install binary, authenticate with tokens, query repos, PRs, issues, workflow runs, and download artifacts
42
Stars
2
Forks
17
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/starwards/starwards/master/.claude/skills/github-api/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/starwards/starwards/master/.claude/skills/github-api/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# GitHub API Access Access GitHub's API in sandboxed environment using GitHub CLI binary. **Core principle:** Use existing gh if available (global or /tmp), install only if needed. **Environment:** Requires `GITHUB_TOKEN` environment variable. ## When to Use PR status/reviews, workflow runs/logs, issues, repository info, Actions data, artifacts, remote file contents. ## Quick Setup Check for gh and set alias: ```bash if command -v gh &> /dev/null; then GH="gh" elif [ -f "/tmp/gh-install/gh_2.62.0_linux_amd64/bin/gh" ]; then GH="/tmp/gh-install/gh_2.62.0_linux_amd64/bin/gh" else echo "gh not found. See INSTALL.md for installation instructions" exit 1 fi $GH --version $GH auth
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有