Skip to content

IvanCampos/agents / skills/github

Use the GitHub CLI (`gh`) to inspect and manage repositories, pull requests, issues, workflows, releases, and API calls from the terminal. Use when a user asks to use `gh`/GitHub CLI, run GitHub repo or PR workflows, automate GitHub Actions from shell, or troubleshoot `gh` authentication and configuration.

FileKindSize
SKILL.mdskill md3.5 KB
agents/openai.yamlconfig212 B
references/command-map.mdmarkdown2.2 KB
scripts/gh_preflight.shexecutablescript1.6 KB

references/command-map.md

View on GitHub
# GitHub CLI Command Map

Use this file as a quick lookup for frequent `gh` commands.

## Repository
| Task | Command |
| --- | --- |
| View current repository | `gh repo view` |
| View specific repository | `gh repo view owner/repo` |
| Clone repository | `gh repo clone owner/repo` |
| Create repository | `gh repo create` |
| Fork repository | `gh repo fork owner/repo` |
| Set default repo for the current directory | `gh repo set-default owner/repo` |

## Pull Requests
| Task | Command |
| --- | --- |
| List pull requests | `gh pr list` |
| View pull request | `gh pr view <number>` |
| Check out pull request locally | `gh pr checkout <number>` |
| Create pull request | `gh pr create` |
| Review pull request | `gh pr review <number> --approve|--request-changes|--comment` |
| Merge pull request | `gh pr merge <number>` |

## Issues
| Task | Command |
| --- | --- |
| List issues | `gh issue list` |
| View issue | `gh issue view <number>` |
| Create issue | `gh issue create` |
| Comment on issue | `gh issue comment <number> --body "..."` |
| Close issue | `gh issue close <number>` |
| Reopen issue | `gh issue reopen <number>` |

## GitHub Actions
| Task | Command |
| --- | --- |
| List workflows | `gh workflow list` |
| View workflow details | `gh workflow view <workflow>` |
| Run workflow | `gh workflow run <workflow>` |
| List workflow runs | `gh run list` |
| Watch workflow run | `gh run watch <run-id>` |
| View workflow logs | `gh run view <run-id> --log` |

## Releases
| Task | Command |
| --- | --- |
| List releases | `gh release list` |
| View release | `gh release view <tag>` |
| Create release | `gh release create <tag> [assets...]` |
| Upload release asset | `gh release upload <tag> <file>` |
| Delete release | `gh release delete <tag>` |

## Search and API
| Task | Command |
| --- | --- |
| Search repositories | `gh search repos <query>` |
| Search issues/PRs | `gh search issues <query>` |
| Call REST API | `gh api <endpoint>` |
| Paginate API requests | `gh api <endpoint> --paginate` |

## Output Helpers
| Task | Command |
| --- | --- |
| JSON output | `--json <field1,field2,...>` |
| Query JSON | `--jq '<jq-expression>'` |
| Format output | `--template '<go-template>'` |
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 319kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 319kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 319kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 319kUpdated Claude CodeCodexVerifiedInstall