github

Select GitHub MCP, gh CLI, or gh api for repository interactions.

16|1|Updated Jun 26, 2025
One-click install
npx skills add https://github.com/bendrucker/claude --skill github
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github
Source: https://github.com/bendrucker/claude/tree/main/.claude/skills/github
Command: npx skills add https://github.com/bendrucker/claude --skill github

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill optimizes GitHub interactions by guiding the selection of the most appropriate tool (MCP, gh CLI, gh api), reducing errors and streamlining development workflows.

Core Features & Use Cases

  • Intelligent Tool Selection: Prioritizes github MCP for reliability, falling back to gh CLI or gh api for specific needs.
  • Authentication Best Practices: Assumes private repositories and guides on using gh or mcp__github for secure authentication.
  • Pull Request Workflow: Emphasizes pushing branches before creating PRs.
  • Use Case: When you need to interact with GitHub, this Skill ensures you use the most efficient and reliable method, whether it's creating an issue, searching for a PR, or making a complex API call.

Quick Start

Prefer MCP for simple tasks

await github.create_issue({ owner: "user", repo: "repo", title: "Bug fix" })

Use gh CLI for specific actions

gh pr create --title "feat: new feature" --body "Description"

Search for issues (always include type filter)

await github.search_issues({ query: "is:issue author:me" })

Frequently Asked Questions about github

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GitHub pull request creation after pushing a branch?

Automate PR creation by pushing your branch first, then use the github MCP or `gh pr create` command to create the pull request. The Skill guides tool selection to ensure reliable, authenticated interactions with your repository.

What's the best way to search for issues or pull requests on GitHub?

Search GitHub issues and PRs using the github MCP with `search_issues` and always include type filters like `is:issue` or `is:pr` in your query. This ensures precise results and prevents errors in text-based searches.

When should I use the gh CLI versus gh api for GitHub interactions?

Use `gh` CLI for straightforward tasks like creating issues or PRs; use `gh api` for advanced API calls requiring custom parameters. The Skill prioritizes the github MCP for reliability, falling back to CLI tools based on task complexity.

How do I interact with private GitHub repositories securely?

Authenticate using `gh` or the `mcp__github` client for private repository access. The Skill assumes private repositories and enforces secure authentication patterns to prevent access errors.

Can I use GitHub workflows with both MCP and CLI commands in the same task?

Yes. The Skill intelligently routes to the github MCP for primary tasks, then falls back to `gh` CLI or `gh api` as needed. This hybrid approach optimizes reliability and handles complex workflows requiring multiple tool types.