GitHub operations using gh CLI - manage issues, PRs, repos, and more
Provides comprehensive GitHub operations using the official gh CLI tool.
Install the GitHub CLI:
# Windows (winget)
winget install --id GitHub.cli
# macOS
brew install gh
# Linux
sudo apt install gh # or equivalent
Authenticate:
gh auth login
gh_issue_createCreate a new issue in a repository.
repo (owner/name), title, body{"tool": "gh_issue_create", "repo": "me/myrepo", "title": "Bug fix", "body": "Description"}gh_issue_listList issues in a repository.
repo (owner/name), state (open/closed/all), limit (default: 10){"tool": "gh_issue_list", "repo": "rust-lang/rust", "state": "open", "limit": 5}gh_pr_createCreate a pull request.
repo, title, body, base (default: main), head (current branch){"tool": "gh_pr_create", "repo": "me/myrepo", "title": "Add feature", "body": "Details"}gh_pr_listList pull requests.
repo, state (open/closed/merged/all), limit{"tool": "gh_pr_list", "repo": "torvalds/linux", "state": "open", "limit": 5}gh_repo_viewView repository information.
repo (owner/name){"tool": "gh_repo_view", "repo": "microsoft/vscode"}gh_repo_cloneClone a repository.
repo, directory (optional){"tool": "gh_repo_clone", "repo": "facebook/react", "directory": "./react"}[skills.github]
enabled = true
gh_path = "gh" # Path to gh CLI (auto-detected if in PATH)
List open issues in a Rust project:
> List the latest 5 open issues in rust-lang/rust
✓ Fetched 5 issues from rust-lang/rust
Create an issue:
> Create an issue in my repo myuser/myproject titled "Add dark mode" with body "Users requested dark mode support"
✓ Created issue #42 in myuser/myproject
View a repository:
> Show me info about the facebook/react repository
✓ Repository: facebook/react
Description: The library for web and native user interfaces
Stars: 220k | Forks: 45k
Language: JavaScript
run_command tool to execute gh CLIgh auth login to be run first