github-operations
Use when Codex must inspect or update GitHub resources (issues, PRs, workflows) through the official remote GitHub MCP server.
When & Why to Use This Skill
The GitHub Operations skill empowers Claude to interact directly with GitHub repositories via the official Model Context Protocol (MCP) server. It enables AI agents to perform complex engineering tasks such as inspecting issues, managing pull requests, and triggering CI/CD workflows. By bridging the gap between AI reasoning and repository management, this skill streamlines the software development lifecycle (SDLC) and enhances developer productivity through automated resource handling.
Use Cases
- 1. Automated Pull Request Reviews: Use the skill to fetch PR diffs, analyze code changes, and post review comments or approvals directly to GitHub.
- 2. Intelligent Issue Triaging: Automatically scan new repository issues to categorize, label, and assign them to the appropriate team members based on content analysis.
- 3. CI/CD Workflow Orchestration: Trigger GitHub Actions and monitor workflow runs to facilitate seamless deployments and integration testing through natural language commands.
- 4. Repository Maintenance and Syncing: Manage branch synchronization, update repository documentation, and ensure project boards are aligned with current development status.
| name | github-operations |
|---|---|
| description | Use when Codex must inspect or update GitHub resources (issues, PRs, workflows) through the official remote GitHub MCP server. |
GitHub Operations
Purpose
Provide actionable steps for reviewing pull requests, triaging issues, syncing branches, and triggering GitHub workflows using the GitHub-hosted MCP server defined in servers/github.
Setup Checklist
- Ensure
mcp.jsonincludes thegithubentry pointing to${GITHUB_MCP_ENDPOINT}with the${GITHUB_MCP_TOKEN}Authorization header. - Confirm scopes on
${GITHUB_MCP_TOKEN}coverrepo,workflow, andread:org. - Keep repository context synchronized locally so file diffs referenced by the server make sense inside this workspace.
Core Workflow
- Plan – summarize the GitHub objective (e.g., “merge PR #42 after lint passes”) and list the API actions needed (
pullRequest.get,reviews.create, etc.). - Execute – call the MCP tools exposed by the server (issue search, PR diff, workflow dispatch). Prefer batched queries to avoid rate limits.
- Validate – re-fetch the entity to confirm the state transition (PR merged, labels applied, workflow run queued).
- Document – record actions inside the user message or repository docs when follow-up by humans is required.
Operational Notes
- Rate limits from GitHub are enforced at the server; when a call is throttled, wait 5 seconds and retry once.
- Use read-only queries when gathering context for other skills (e.g., fetching PR details before a filesystem refactor) to minimize write noise.
- Treat
${GITHUB_MCP_TOKEN}as a production credential—store it in.env.localand do not log it.