th0rgal/sandboxed-library-template/github-cli

Claude Code and agent skill by th0rgal/sandboxed-library-template

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Interact with GitHub using the gh CLI - PRs, issues, repos, releases, and actions. Trigger terms: github, gh, pull request, PR, issue, release, actions, workflow, repo.

Install

npx vskill@latest install th0rgal/sandboxed-library-template/github-cli

SKILL.md

The same SKILL.md was published earlier as th0rgal/sandboxed-library-template/github-cli.

Use when

  • Creating, viewing, or merging pull requests
  • Managing issues (create, close, comment)
  • Checking workflow/action status
  • Creating releases
  • Cloning or forking repos

Don't use when

  • Local git operations (use git directly)
  • Non-GitHub remotes (GitLab, Bitbucket)

Outputs

  • PRs, issues, releases, or action logs in GitHub (no local files unless explicitly created).

Templates or Examples

  • Use the command tables below as templates.

Prerequisites

  • gh CLI installed
  • SSH key configured for GitHub access

Quick Reference

Pull Requests
ActionCommand
List PRsgh pr list
View PRgh pr view <number>
Create PRgh pr create --title "..." --body "..."
Checkout PRgh pr checkout <number>
Merge PRgh pr merge <number>
PR diffgh pr diff <number>
PR checksgh pr checks <number>
Issues
ActionCommand
List issuesgh issue list
View issuegh issue view <number>
Create issuegh issue create --title "..." --body "..."
Close issuegh issue close <number>
Commentgh issue comment <number> --body "..."
Repos & Releases
ActionCommand
Clonegh repo clone <owner>/<repo>
Forkgh repo fork <owner>/<repo>
View repogh repo view
Create releasegh release create <tag> --title "..." --notes "..."
List releasesgh release list
Actions & Workflows
ActionCommand
List runsgh run list
View rungh run view <run-id>
Watch rungh run watch <run-id>
Rerun failedgh run rerun <run-id> --failed
List workflowsgh workflow list
API & GraphQL

REST API:

bash
gh api repos/<owner>/<repo>/pulls
gh api repos/<owner>/<repo>/issues/<number>/comments

GraphQL (for data not exposed by gh pr view):

bash
# List PR review threads (gh pr view doesn't expose these)
gh api graphql -F owner=<owner> -F name=<repo> -F number=<pr> -f query='
query($owner:String!, $name:String!, $number:Int!){
repository(owner:$owner,name:$name){
pullRequest(number:$number){
reviewThreads(first:100){
nodes{id isResolved isOutdated comments(first:50){nodes{id author{login} body}}}
pageInfo{hasNextPage endCursor}
}
}
}
}'
# Resolve a review thread
gh api graphql -F threadId=<threadId> -f query='
mutation($threadId:ID!){
resolveReviewThread(input:{threadId:$threadId}){thread{isResolved}}
}'

Pagination: If pageInfo.hasNextPage is true, repeat with after: "<endCursor>".

Procedure

  1. Ensure gh auth status shows authenticated
  2. Use gh pr list or gh issue list to find items
  3. Perform action with appropriate command
  4. Verify with gh pr checks or gh run list
  5. Always use a heredoc with --body-file or a specific encoding that supports \n correctly

Checks & Guardrails

  • Always check PR status before merging
  • Use --draft for work-in-progress PRs
  • Prefer gh pr merge --squash for clean history
  • Check gh run list after pushing to verify CI
  • Use GraphQL for review threads (gh pr view doesn't expose them)
  • Handle pagination when results exceed 100 items

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/th0rgal/sandboxed-library-template/github-cli/badge)](https://verified-skill.com/skills/th0rgal/sandboxed-library-template/github-cli)

Something wrong with this skill or its page? Tell us.