Agent skill
github
Manage GitHub repositories, issues, and pull requests via the gh CLI.
Install this agent skill to your Project
npx add-skill https://github.com/olasunkanmi-SE/codebuddy/tree/main/skills/github
Metadata
Additional technical details for this skill
- auth
-
{ "type": "oauth", "setupCommand": "gh auth login" } - icon
- github
- version
- 1.0.0
- category
- version-control
- displayName
- GitHub
- dependencies
-
{ "cli": "gh", "install": { "linux": { "apt": "gh", "script": "type -p curl >/dev/null || sudo apt install curl -y\ncurl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg\necho \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main\" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null\nsudo apt update && sudo apt install gh -y\n" }, "darwin": { "brew": "gh", "manual": "Download from https://github.com/cli/cli/releases and add to PATH", "scriptArch": { "x64": "curl -fsSL https://github.com/cli/cli/releases/latest/download/gh_*_macOS_amd64.tar.gz | tar xz && sudo mv gh_*/bin/gh /usr/local/bin/", "arm64": "curl -fsSL https://github.com/cli/cli/releases/latest/download/gh_*_macOS_arm64.tar.gz | tar xz && sudo mv gh_*/bin/gh /usr/local/bin/" } }, "windows": { "scoop": "gh", "winget": "GitHub.cli" } }, "checkCommand": "gh --version" }
SKILL.md
gh (GitHub CLI)
Use ./.codebuddy/bin/gh to interact with GitHub.
This tool allows you to manage PRs, issues, and repositories directly from the chat.
Setup
Before using, you must authenticate. Run the following command in the terminal:
./.codebuddy/bin/gh auth login
Common Commands
Pull Requests
- List PRs:
./.codebuddy/bin/gh pr list - View PR:
./.codebuddy/bin/gh pr view <PR-NUMBER> - Checkout PR:
./.codebuddy/bin/gh pr checkout <PR-NUMBER> - Create PR:
./.codebuddy/bin/gh pr create - Review PR:
./.codebuddy/bin/gh pr review <PR-NUMBER> - Merge PR:
./.codebuddy/bin/gh pr merge <PR-NUMBER>
Issues
- List issues:
./.codebuddy/bin/gh issue list - View issue:
./.codebuddy/bin/gh issue view <ISSUE-NUMBER> - Create issue:
./.codebuddy/bin/gh issue create
Repositories
- View repo info:
./.codebuddy/bin/gh repo view - Clone repo:
./.codebuddy/bin/gh repo clone <OWNER>/<REPO>
Notes
- Ensure you have a GitHub account and permissions for the repositories you want to access.
- Authentication token is stored securely by
gh.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
Send emails using mailsend-go CLI
aws
Manage AWS resources via the aws CLI.
telegram
Send Telegram messages, files, and interact with Telegram bots via the telegram-send CLI tool.
redis
Manage Redis databases via the redis-cli tool.
datadog
Query metrics, manage monitors, post events, and interact with Datadog via the dogshell CLI.
linear
Manage Linear issues via the linear-cli (unofficial or custom wrapper).
Didn't find tool you were looking for?