Install
$ agentstack add skill-ivancampos-agents-github ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
GitHub CLI
Overview
Use gh for day-to-day GitHub operations from the terminal. Prefer read-only commands first, then run mutating commands only after clear user intent.
Quick Start
- Check installation and auth:
gh --version
gh auth status
- Establish repository context:
scripts/gh_preflight.sh --repo owner/repo
- If not in the target repository, pass
-R owner/repoto commands. - Use
--jsonwith--jqor--templatefor automation-friendly output.
Workflow
- Establish context first.
- Determine GitHub host (
github.comby default), repository, and branch. - Run
scripts/gh_preflight.shbefore multi-step operations.
- Read current state.
- Use
list,view, andstatussubcommands before changing anything.
- Apply requested mutation.
- For create/edit/merge/delete actions, restate the operation and require explicit confirmation unless the user already asked clearly.
- Report stable identifiers.
- Return URLs and IDs for created or changed objects (PR number, issue number, run URL, release tag).
Common Commands
- Repository:
gh repo viewgh repo clone owner/repogh repo creategh repo set-default owner/repo- Pull requests:
gh pr listgh pr viewgh pr checkoutgh pr creategh pr review --approve|--request-changes|--commentgh pr merge- Issues:
gh issue listgh issue viewgh issue creategh issue comment --body "..."gh issue close- Actions:
gh workflow listgh workflow rungh run listgh run watchgh run view --log- Releases:
gh release listgh release viewgh release create [assets...]gh release upload- API:
gh api repos/{owner}/{repo}/pulls --paginate
For broader command coverage, read references/command-map.md.
Safety Defaults
- Confirm before commands that change remote state:
gh pr create|merge|close|reopen|readygh issue create|edit|close|reopen|deletegh repo create|edit|archive|deletegh release create|edit|deletegh secret set|deletegh variable set|deletegh workflow run- Avoid destructive flags (
--delete-branch, force flags) unless explicitly requested. - Show exact command before bulk updates and prefer smallest safe scope.
Structured Output
Use JSON output when parsing or summarizing results:
gh pr list --json number,title,url --jq '.[] | "\(.number)\t\(.title)\t\(.url)"'
gh issue list --json number,title,labels --template '{{range .}}{{printf "#%v %v\n" .number .title}}{{end}}'
Troubleshooting
- Auth errors:
gh auth loginorgh auth refresh. - Wrong account/host:
gh auth status --hostname github.com, thengh auth switch. - Unknown command options:
gh --help. - Manual reference:
https://cli.github.com/manual/.
Resources
scripts/
scripts/gh_preflight.sh: Checkghavailability, auth status, and repository context.
references/
references/command-map.md: Command map for repo, PR, issue, actions, release, and API operations.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: IvanCampos
- Source: IvanCampos/agents
- License: MIT
- Homepage: https://ivancampos.com
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.