ワンクリックで
github
Run GitHub CLI commands, manage repositories, issues, PRs, releases, actions, or call arbitrary REST/GraphQL endpoints using `gh api`
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run GitHub CLI commands, manage repositories, issues, PRs, releases, actions, or call arbitrary REST/GraphQL endpoints using `gh api`
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Search and install agent skills from ClawHub, the public skill registry.
Schedule reminders and recurring tasks.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Generate images and iteratively edit saved image artifacts.
Sustained objectives via long_task / complete_goal — idempotent goal wording, project-style modular work, early web/doc research, Runtime Context metadata.
| name | github |
| description | Run GitHub CLI commands, manage repositories, issues, PRs, releases, actions, or call arbitrary REST/GraphQL endpoints using `gh api` |
| register_cmd | true |
Use this skill when you need to interact with GitHub repositories, pull requests, issues, releases, actions, or configure GitHub settings. This skill relies on the GitHub CLI (gh) and the GitHub REST/GraphQL APIs.
Before running commands, verify your login status and configure authentication if needed.
gh auth status
If not authenticated, or if you need a token in a script:
gh auth loginecho "YOUR_GITHUB_TOKEN" | gh auth login --with-token
GITHUB_TOKEN in your environment. Many tools and commands automatically read GITHUB_TOKEN.Below are the most common GitHub CLI operations. Always prefer using built-in gh subcommands over direct gh api queries for standard actions.
gh repo list [owner] --limit 50gh repo create [name] --public --clonegh repo fork --clonegh repo clone OWNER/REPOgh repo view --webgh issue list --state open --assignee @megh issue create --title "Title" --body "Body content" --label "bug,help-wanted"gh issue view 123gh issue comment 123 --body "Nice fix!"gh issue close 123 --reason "completed"gh issue reopen 123gh pr list --state open --limit 20gh pr create --title "Title" --body "Body description" --base main --head feature-branchgh pr checkout 123gh pr review 123 --approve --body "Looks good to go!"gh pr merge 123 --merge --delete-branchgh pr checks 123gh pr diff 123gh release listgh release create v1.0.0 --title "v1.0.0" --notes "Release notes text"gh release create v1.0.0 ./dist/bundle.tar.gz ./dist/metadata.jsongh secret listgh secret set MY_SECRET --body "secret_value"gh secret set MY_SECRET --env production --body "secret_value"gh workflow listgh run list --workflow=ci.yml --limit 5gh run view 123456 --loggh workflow run ci.yml -f ref=main -f environment=staginggh api)When built-in gh commands do not support the operation, use gh api to talk directly to GitHub's REST or GraphQL endpoints.
gh api{owner} and {repo} with the details of your current repository directory (e.g. repos/{owner}/{repo}/issues maps to repos/OEvortex/vtx-coding-agent/issues).GET. Automatically switches to POST if request parameters (-f/-F) are passed. You can override with --method DELETE or --method PUT.-f / --raw-field maps parameters as raw strings.-F / --field parses fields to their JSON representations (numbers, booleans, arrays). To load content from a file, prefix the value with @ (e.g., -F body=@issue_template.md).gh api Examplesgh api user
gh api repos/{owner}/{repo}/issues/123/comments -f body="Automated comment via API"
gh api repos/{owner}/{repo}/actions/runs --jq '.workflow_runs[] | {id, status, conclusion}'
gh api graphql -f query='
query {
viewer {
login
createdAt
}
}
'
gh api repos/{owner}/{repo}/contents/path/to/file.py --jq '.content' | base64 --decode
gh pr create or gh repo create can prompt for inputs interactively. In scripts or unattended environments, always add the non-interactive flags (e.g., -y, --confirm, or provide all arguments such as --title and --body explicitly).jq: GitHub API responses are large JSON structures. Use the CLI's built-in --jq flag or pipe to external jq for readability.
gh issue list --json number,title --jq '.[] | "#\(.number) \(.title)"'
GH_REPO variable:
GH_REPO="other-owner/other-repo" gh issue list
gh api rate_limit to check your current REST/GraphQL API rate limits if executing a loop or batch task.