gerrit-skills
AI Agent Skill for Gerrit code review.
What's Included
/gerrit:gerrit— A skill that helps you interact with any Gerrit instance through git, SSH, and the REST API. It can auto-detect Gerrit repositories, push changes for review, query and inspect changes, checkout patchsets, add reviewers, post comments, and guide you through Gerrit workflows.
Installation for Claude Code
Add the marketplace and install the plugin:
/plugin marketplace add https://github.com/DanieleSassoli/gerrit-skills.git
/plugin install gerrit@gerrit-skills
Installation for Gemini
gemini skills install git@github.com:DanieleSassoli/gerrit-skills.git --path plugins/gerrit/skills/gerrit
Usage
Once installed, agents will automatically detect Gerrit repositories by checking for:
- Remote URLs containing "gerrit"
- Commits with a
Change-Id:footer
You can also invoke the skill explicitly with /gerrit:gerrit.
Examples
- Push a change for review: Ask the Agent to push your current commit for review on a specific branch.
- Query changes: Ask the Agent to find open changes owned by you, or search by topic, hashtag, or project.
- Checkout a patchset: Ask the Agent to fetch and checkout a specific change and patchset number.
- Add reviewers / comments: Ask the Agent to add reviewers or post review comments on a change.
- Workflow help: Ask about rebasing, cherry-picking, change dependencies, submit strategies, and more.
Contributing
This project is developed on GerritHub.io. GitHub PRs are welcome too.
License
Apache 2.0 — see LICENSE for details.