Agent skill
github-mcp
GitHub operations for creating PRs, pushing files, and managing branches.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/github-mcp-5dlabs-cto-2
SKILL.md
GitHub MCP (Repository Operations)
Use GitHub MCP tools to interact with repositories programmatically.
Tools
| Tool | Purpose |
|---|---|
github_create_pull_request |
Create a new PR |
github_push_files |
Push file changes to a branch |
github_create_branch |
Create a new branch |
github_get_file_contents |
Read file from repository |
github_get_pull_request |
Get PR details |
github_get_pull_request_files |
List files changed in a PR |
github_create_pull_request_review |
Submit a PR review |
github_add_pull_request_review_comment |
Add inline comment to PR |
Creating a PR
# 1. Create branch
github_create_branch({
owner: "5dlabs",
repo: "my-project",
branch: "feature/task-42-auth",
from_branch: "develop"
})
# 2. Push changes
github_push_files({
owner: "5dlabs",
repo: "my-project",
branch: "feature/task-42-auth",
files: [
{ path: "src/auth.ts", content: "..." }
],
message: "feat: implement OAuth2 authentication"
})
# 3. Create PR
github_create_pull_request({
owner: "5dlabs",
repo: "my-project",
title: "feat: implement OAuth2 authentication",
body: "## Summary\n...",
head: "feature/task-42-auth",
base: "develop"
})
Reading Files
github_get_file_contents({
owner: "5dlabs",
repo: "my-project",
path: "src/config.ts",
branch: "develop"
})
PR Review
# Get changed files
github_get_pull_request_files({
owner: "5dlabs",
repo: "my-project",
pull_number: 123
})
# Submit review
github_create_pull_request_review({
owner: "5dlabs",
repo: "my-project",
pull_number: 123,
event: "APPROVE",
body: "LGTM! All checks pass."
})
Best Practices
- Always branch from develop - Not main
- Use conventional commits -
feat:,fix:,chore: - Include Linear issue link - In PR body
- Review before merge - Check CI status
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?