| name | github_integration |
| description | GitHub integration using MCP tools for repository and PR management |
| version | 1.0.0 |
| tags | ["github","repository","pull-requests","collaboration"] |
| mcp_servers | ["github_mcp"] |
| recommended_tools | ["github_mcp_create_or_update_file","github_mcp_push_files"] |
GitHub Integration Skill
Advanced GitHub operations using MCP tools for repository and pull request management.
When to Use
Use this skill when you need to:
- Create or update files in a GitHub repository
- Create pull requests
- Manage GitHub issues
- Interact with GitHub repositories
- Collaborate on GitHub projects
Available MCP Tools
The following MCP tools are available for this skill:
github_mcp_create_or_update_file: Create or update files in a GitHub repository
github_mcp_push_files: Push multiple files to a repository
- Additional GitHub tools from the github_mcp server
Tool Usage
Creating/Updating Files
When you need to create or update files in a GitHub repository, use the github_mcp_create_or_update_file tool.
Example workflow:
- Analyze the required file changes
- Use
github_mcp_create_or_update_file with:
- Repository owner and name
- Branch name
- File path
- File content
- Commit message
Creating Pull Requests
To create a pull request:
- Make file changes using MCP tools
- Create a PR using the GitHub MCP tools
- Provide clear PR title and description
Best Practices
- Always provide clear commit messages
- Use descriptive branch names (e.g.,
feature/name, bugfix/name)
- Include PR descriptions that explain:
- What changes were made
- Why the changes are needed
- How to test the changes
- Reference related issues in commits and PRs
Integration with Git Workflow
This skill works best when combined with the git_workflow skill:
- Use
git_workflow for local git operations
- Use
github_integration for GitHub-specific operations
- Together they provide complete Git + GitHub workflow
Example Scenarios
Scenario 1: Fix a Bug
- User reports a bug in the repository
- Use
github_mcp_create_or_update_file to fix the bug
- Create a pull request with description
- Link to original issue
Scenario 2: Add New Feature
- Understand requirements from user
- Create new files or update existing ones
- Use MCP tools to push changes
- Create PR for review
Scenario 3: Update Documentation
- Read existing documentation
- Make updates using MCP tools
- Commit with clear message: "docs: update README"
- Create PR if changes are significant
Repository Context
When working with repositories:
- Always verify repository owner and name
- Check if you have the right permissions
- Use appropriate branches (never commit directly to main)
- Follow the project's contribution guidelines
Error Handling
If MCP tools fail:
- Check authentication status
- Verify repository access permissions
- Ensure branch exists
- Check file path is correct
- Review commit message format