gh-cli
仓库创建 2026年1月15日最近提交 10 小时前SkillHot 收录 21 天前
▸ 精选理由
避免未认证 curl 导致限流或私库不可访问的常见错误
▸ 风险提示
要求使用者提供 GitHub 令牌,注意凭证安全
这个 Skill 做什么
在处理 GitHub 资源时,优先使用 gh CLI 做认证化的请求和工作流
在操作 GitHub 仓库、PR、issue 或访问私有文件时,优先用 gh CLI 做认证化请求和脚本化工作流,避免直接用 curl 导致的未授权或速率限制问题。需要更高 API 配额或私有仓库访问时就用它。特点是把认证、速率和常见 GitHub 操作封装好,脚本更可靠、更安全。
▸ 展开 SKILL.md 英文原文
Enforces authenticated gh CLI workflows over unauthenticated curl/WebFetch patterns. Use when working with GitHub URLs, API access, pull requests, or issues.
6.3k
Stars
543
Forks
40
仓库内 Skill
+282
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/trailofbits/skills/main/plugins/gh-cli/skills/gh-cli/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/trailofbits/skills/main/plugins/gh-cli/skills/gh-cli/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# gh-cli ## When to Use - Working with GitHub repositories, pull requests, issues, releases, or raw file URLs. - You need authenticated access to private repositories or higher API rate limits. - You are about to use `curl`, `wget`, or unauthenticated web fetches against GitHub. ## When NOT to Use - The target is not GitHub. - Plain local git operations already solve the task. ## Guidance Prefer the authenticated `gh` CLI over raw HTTP fetches for GitHub content. In particular: - Prefer `gh repo view`, `gh pr view`, `gh pr list`, `gh issue view`, and `gh api` over unauthenticated `curl` or `wget`. - Prefer cloning a repository and reading files locally over fetching `raw.githubusercon
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有