Claude Skill

gh-cli

Enforces authenticated gh CLI workflows over unauthenticated curl, WebFetch, and MCP fetch patterns. Use when working with GitHub URLs, API access, pull requests, or issues.

LLM Mart · 0 points · 10 views 0 listing impressions 0 install-command copies
Virus-scanned Reviewed automatically before listing.

Full trust report

Download trailofbits-skills-plugins_gh-cli_skills_gh-cli-123037e.zip · 2 KB
trailofbits/skills 7234 616 forks CC-BY-SA-4.0 Updated 9h ago
Part of trailofbits/skills — 100 skills

Install

skills CLI npx skills add https://github.com/trailofbits/skills/tree/main/plugins/gh-cli/skills/gh-cli
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install trailofbits-skills@llmmart
Git git clone https://github.com/trailofbits/skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole trailofbits/skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

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, WebFetch, or an MCP fetch tool 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.githubusercontent.com blobs directly.
  • Avoid using GitHub API /contents/ endpoints as a substitute for cloning and reading repository files.

Examples:

gh repo view owner/repo
gh pr view 123 --repo owner/repo
gh api repos/owner/repo/pulls

For the hook implementation, see:

  • plugins/gh-cli/README.md
  • plugins/gh-cli/hooks/
Files (skills)
  • agents
    • openai.yaml 219 B
      interface:
        display_name: "GitHub CLI"
        short_description: "Use authenticated GitHub CLI workflows"
        icon_small: "assets/trail-of-bits-mark.svg"
        icon_large: "assets/trail-of-bits-mark.svg"
        brand_color: "#D83A34"
      
  • assets
    • trail-of-bits-mark.svg 3 KB · in bundle
  • SKILL.md 1.2 KB
    ---
    name: gh-cli
    description: Enforces authenticated gh CLI workflows over unauthenticated curl, WebFetch, and MCP fetch patterns. Use when working with GitHub URLs, API access, pull requests, or issues.
    ---
    
    # 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`, `WebFetch`, or an MCP fetch tool 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.githubusercontent.com` blobs directly.
    - Avoid using GitHub API `/contents/` endpoints as a substitute for cloning and reading repository files.
    
    Examples:
    
    ```sh
    gh repo view owner/repo
    gh pr view 123 --repo owner/repo
    gh api repos/owner/repo/pulls
    ```
    
    For the hook implementation, see:
    - `plugins/gh-cli/README.md`
    - `plugins/gh-cli/hooks/`
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related