Github Cli
Automates GitHub repository tasks like branching, merging, and issue management using the command line interface.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add github-cli npx -- -y @trustedskills/github-cli
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"github-cli": {
"command": "npx",
"args": [
"-y",
"@trustedskills/github-cli"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
The GitHub CLI skill enables AI agents to interact directly with the GitHub API from the command line, streamlining repository management and code review workflows. It allows automation of tasks like creating pull requests, managing issues, and deploying applications without manual browser interaction.
When to use it
- Automating routine repository maintenance tasks such as tagging releases or merging approved pull requests.
- Integrating GitHub workflows into CI/CD pipelines for automated testing and deployment triggers.
- Fetching real-time data on open issues or recent commits to generate status reports.
- Managing user permissions and team memberships programmatically via script execution.
Key capabilities
- Direct command-line access to the full GitHub API surface.
- Creation, updating, and closing of pull requests and issues.
- Authentication handling for secure agent-to-GitHub interactions.
- Execution of GitHub Actions workflows remotely.
Example prompts
- "Create a draft pull request from branch 'feature/login' to 'main' with the title 'Add user authentication'."
- "Find all open issues labeled 'bug' in this repository and comment on them asking for reproduction steps."
- "Deploy the latest version of the application by creating a release tag v1.2.0 and pushing it to production."
Tips & gotchas
Ensure the AI agent has valid authentication tokens configured before attempting API operations, as unauthorized requests will fail immediately. This tool is best suited for backend automation scripts rather than interactive user-facing tasks requiring visual confirmation.
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.