Guide · Agent skill
How to use the GitHub Operations Expert agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The GitHub Operations Expert is an agent skill, a folder of written instructions that you add to an AI agent so it follows specific practices for GitHub work. It is aimed at developers and maintainers who manage repositories through pull requests, issues, CI runs and releases. After this guide you will know what the skill changes, how to install it, how to ask for help in a way that triggers it, and what to check before letting the agent act on a live repository.
Quick start
- 1Download and unzip. Download the github skill ZIP from this page and unzip it so SKILL.md sits in its own folder.
- 2Choose a location. Move the folder to ~/.claude/skills/ for all projects, or to .claude/skills/ in one repository.
- 3Or upload it in the apps. In the Claude apps, open Settings, go to Capabilities and upload the skill under Skills.
- 4Authenticate gh. Make sure the GitHub CLI is installed and logged in with gh auth before asking for GitHub work.
- 5Ask in plain language. Describe the task, such as a PR, a review, a failing workflow or a release, and name the repository.
- 6Review before acting. Check the proposed commands, especially merges, releases and deletes, before confirming.
What the GitHub skill makes the agent do
Once installed, the agent behaves like a GitHub operations specialist. It uses the gh command-line tool and GitHub APIs to help with pull requests, issues, code review, GitHub Actions workflows and releases.
The skill is written guidance only. It contains no code of its own, so what the agent can actually do depends on what it is allowed to run in your environment.
- Prefers the gh CLI over raw API calls, since gh handles authentication and pagination.
- Writes concise PR titles (under 72 characters) with a Summary and Test Plan section.
- Reviews code for correctness, security and maintainability, in that order.
- Checks CI status with gh pr checks before merging, and does not merge with failing checks unless you explicitly ask.
- Reads the failed-step log with gh run view --log-failed before changing code when Actions fails.
- Asks for explicit confirmation before any force-push to main or master.
Install the skill from the ZIP
Download the ZIP for the github skill from this page and unzip it. The skill is a single file, SKILL.md. Place the folder in one of these locations:
Personal skills folder: ~/.claude/skills/ makes the skill available across your projects.
Project skills folder: .claude/skills/ inside a specific repository makes it available only in that project.
Alternatively, in the Claude apps, open Settings, go to Capabilities and upload the skill under Skills.
- Keep the SKILL.md file inside its own folder after unzipping.
- Restart or reopen your agent session if the skill does not appear, then confirm it is listed.
Set up the gh CLI before you start
The skill requires the GitHub CLI (gh) to be installed and authenticated, or equivalent GitHub API access. The guidance assumes you have a GitHub account and use gh. Without them the agent can still give general advice, but it cannot carry out GitHub actions.
Authentication should go through gh auth or environment variables. The skill tells the agent never to put tokens or secrets directly into commands.
gh auth statusTrigger the skill with natural requests
You do not need a special command. Describe the GitHub task in plain language and mention the kind of work involved, such as a pull request, an issue, a review, a failing workflow or a release. The agent then applies the matching practices.
Be specific about the repository and the goal. The more context you give, the more precise the commands it proposes will be.
- Create a PR for my current branch and fill in the description from the commits.
- Check whether CI is green on PR 42 before we merge it.
- Why did the build workflow fail on the last run? Read the failed step log first.
- Review this pull request for correctness and security issues.
- Draft release notes for v2 from the PRs merged since the last release.
- Suggest labels and a bug report template for our issue tracker.
Worked examples of common tasks
For a typical pull request, the skill suggests branching from main, committing with clear messages, pushing, creating the PR, requesting review, addressing feedback and squash-merging. It recommends gh pr create --fill as a starting point, then refining the description.
For a failing workflow, the skill points the agent to the failed step before any code change. For tracking a live run, it suggests gh run watch.
- Start a PR: gh pr create --fill, then edit the Summary and Test Plan.
- Monitor a run: gh run watch
- Find a failing step: gh run view --log-failed
- Query open PR titles: gh api repos/{owner}/{repo}/pulls --jq '.[].title'
gh pr create --fillSafety notes: scripts, network and live repositories
The skill does not run scripts itself. It does use the network, because its work goes through GitHub. Its rules are instructions to the agent, not enforced controls. The agent may follow them, but nothing technically stops it from acting outside them.
Review any merge, release or delete action yourself before it happens. The skill suggests deleting merged branches with gh pr merge --delete-branch, so check that you want that before confirming.
- Do not paste tokens or secrets into chat or commands.
- Split PRs with hundreds of changed files into smaller reviewable chunks.
- Confirm any force-push to main or master yourself.
- Check CI results before every merge.
Tips for getting the most from it
Use the skill for hygiene tasks it is designed for: PR descriptions, issue labels and milestones, issue templates in .github/ISSUE_TEMPLATE/, and release notes generated from merged PRs with gh release create. Ask for a review of the diff rather than a general opinion when you want findings.
- Name the repository and branch in your request.
- Ask the agent to show the command before running it.
- Use gh release create when you want auto-generated notes from merged PRs.
What people use it for
- Creating well-structured pull requests with a Summary and Test Plan.
- Reading failed Actions step logs to find the cause of a CI failure before changing code.
- Triaging issues with labels such as bug, enhancement and good-first-issue, and milestones.
- Setting up .github/ISSUE_TEMPLATE/ files for bug reports and feature requests.
- Drafting release notes from merged PRs using gh release create.
Frequently asked questions
How do I install the GitHub agent skill?
Download the ZIP from this page and unzip it. Put the folder in ~/.claude/skills/ for all projects or in .claude/skills/ inside one repository. You can also upload it in the Claude apps under Settings, then Capabilities, then Skills.
What does the github skill require?
It requires the GitHub CLI (gh) installed and authenticated, or equivalent GitHub API access. It also assumes you have a GitHub account. It runs no scripts itself but does use the network.
Is the GitHub skill free?
The source material for this skill is published under the Apache-2.0 licence. Check the project's licence file for the terms that apply to your use.
Will the agent merge my pull requests automatically?
The skill tells the agent to check CI with gh pr checks and not to merge with failing checks unless you explicitly request it. These are instructions to the agent, not enforced controls, so review every merge yourself.
Why won't the agent force-push to main?
The skill instructs the agent never to force-push to main or master without your explicit confirmation. Because this is guidance rather than a technical block, you should still watch for it in any proposed command.
What if the skill does not trigger or the commands fail?
Confirm the skill folder contains SKILL.md in the correct location and that gh auth status shows you are logged in. If the agent gives only general advice, it may be missing gh access or the skill may not be loaded.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use this skill if you manage repositories through pull requests and want consistent PR, issue and CI habits from your agent. Pick something else if you do not use GitHub or gh, or if you need enforced safety controls on live repositories, since these rules are guidance the agent may or may not follow.
Download the skill