Using Gh Cli
This skill automates GitHub CLI commands for streamlined deployment and infrastructure management, saving developers time and effort.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add using-gh-cli npx -- -y @trustedskills/using-gh-cli
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"using-gh-cli": {
"command": "npx",
"args": [
"-y",
"@trustedskills/using-gh-cli"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables an AI agent to interact with GitHub repositories and perform common Git operations directly from prompts. It leverages the GitHub CLI (gh) tool, allowing agents to manage branches, create pull requests, and more without requiring manual intervention through a web browser or SSH connection. The skill provides a programmatic interface for standard GitHub workflows.
When to use it
- Automating Pull Request Creation: Generate a new pull request based on changes made in a specific branch.
- Branch Management: Create, delete, or rename branches within a repository.
- Repository Inspection: Retrieve information about repositories, such as commit history and file contents.
- Issue Tracking: Interact with GitHub issues, including creating, closing, or updating them.
Key capabilities
- GitHub CLI integration
- Branch manipulation (creation, deletion)
- Pull request creation
- Repository information retrieval
Example prompts
- "Create a new branch named 'feature/new-button' from the main branch."
- "Generate a pull request to merge 'feature/new-button' into 'main'."
- "List all open issues in this repository."
Tips & gotchas
- Requires the GitHub CLI (gh) to be installed and configured with appropriate authentication.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.