gerrit-workflow

gerrit-workflow is a skill for Claude Code from GerritCodeReview/gerrit-mcp-server. It costs 123 tokens per session (2,003 once invoked), scanned A, original, Apache-2.0.

A set of instructions for sending code changes to Gerrit, a Git-based code-review system where changes are reviewed before entering a branch. It explains concepts such as changes, patch sets, Change-Ids, and the special refs/for branch used for review.

In plain words
What is it for?
Use it when submitting a change for review, pushing a new patch set, fixing a missing Change-Id, amending a reviewed commit, or working with Gerrit-hosted repositories.
Why use it?
It prevents common Gerrit mistakes, such as bypassing review or creating a separate change instead of updating an existing one. It clarifies how to revise and resubmit a change safely.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the gerrit plugin — 5 skills, 1 hook, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/gerritcodereview/gerrit-mcp-server/gerrit-workflow
Any agent
npx skills add GerritCodeReview/gerrit-mcp-server --skill gerrit-workflow
Clone the repo
git clone --depth 1 https://github.com/GerritCodeReview/gerrit-mcp-server

Made for: Claude Code.

Or install gerrit, the plugin that ships this one along with the rest of its 5 skills, 1 hook, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gerrit-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/gerritcodereview/gerrit-mcp-server/gerrit-workflow.svg)](https://agentmods.dev/skills/gerritcodereview/gerrit-mcp-server/gerrit-workflow)
Your own site
<a href="https://agentmods.dev/skills/gerritcodereview/gerrit-mcp-server/gerrit-workflow"><img src="https://agentmods.dev/badge/skills/gerritcodereview/gerrit-mcp-server/gerrit-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,003 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00123 $0.02003
Opus 5 $0.00062 $0.01001
Sonnet 5 $0.00025 $0.00401
Haiku 4.5 $0.00012 $0.00200

Measured 6d ago against content hash a1775e3b848e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

gerrit-workflow scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# Via curl (HTTP):
skills/gerrit-workflow/SKILL.md · 248 lines

How it starts

The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gerrit Workflow

Gerrit is a code review system that sits in front of a git repository. The key difference from GitHub/GitLab: changes go through a review queue before landing in the branch. This changes several git workflows in important ways.

Core Concepts

Changes and Patch Sets

A Change is the unit of review in Gerrit — it corresponds to one logical commit. Each change has:

  • A numeric Change number (e.g., 12345)
  • A Change-Id trailer in the commit message (e.g., Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b)

When a commit is revised and re-uploaded, the new version becomes a new patch set on the same change. Gerrit associates them via the Change-Id trailer — this is what makes the Change-Id essential.

The Magic refs/for/<branch> Ref

Gerrit intercepts pushes to refs/for/<branch>. These pushes never actually create that ref; instead Gerrit creates or updates a Change for review. To land code in master:

# NOT this (bypasses review):
git push origin HEAD:refs/heads/master

# This — submits for review:
git push origin HEAD:refs/for/master

The commit-msg Hook

Gerrit provides a commit-msg hook that auto-inserts Change-Id trailers. Without it, the Change-Id must be added manually. To install:

# Via curl (HTTP):
curl -Lo .git/hooks/commit-msg <gerrit-url>/tools/hooks/commit-msg
chmod u+x .git/hooks/commit-msg

# Via scp (SSH):
scp -p -P 29418 <user>@<gerrit-host>:hooks/commit-msg .git/hooks/
chmod u+x .git/hooks/commit-msg

Check if it is already installed:

ls -la .git/hooks/commit-msg

Common Workflows

1. Create a New Change

# Make changes, then commit (hook adds Change-Id automatically)
git add <files>
git commit -m "Fix the foo widget"

# Verify Change-Id was added:
git log -1

# Push for review against a target branch:
git push origin HEAD:refs/for/master

The server prints the URL of the new change.

2. Update an Existing Change (New Patch Set)

Read the full file on GitHub · 248 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 248 lines · 123 tokens per session scan A a1775e3b848e

Subscribe to this mod's changes

gerrit-workflow is a skill published in the GitHub repository GerritCodeReview/gerrit-mcp-server (20 stars, last pushed 3d ago), licensed Apache-2.0. It adds 123 tokens to every session and 2,003 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

review-implement-phase

Implements triaged review actions, commits focused fixes, and posts Done plus resolves threads. Use when the user wants only the implementation phase of the review-framework workflow.

prisma/orm · 38 tokens

engram-branch-pr

PR creation workflow for Engram following the issue-first enforcement system. Trigger: When creating a pull request, opening a PR, or preparing changes for review.

Gentleman-Programming/engram · 37 tokens

verify-behavior

Verify or reproduce visible product behavior by driving the real UI with pi-computer-use's checked tools, requiring verified expect postconditions and durable state evidence for meaningful UI flows. Use when triage needs visual reproduction, implementation needs behavioral proof, review needs interactive confirmation…

nicknisi/dotfiles · 68 tokens

github-contributor

End-to-end playbook for shipping high-quality pull requests to open-source projects you don't maintain — discovery, CONTRIBUTING compliance, PR-size check, minimal-diff implementation, PR description with AI-assisted disclosure, conflict resolution, and post-submission maintainer interaction. Use whenever creating…

daymade/claude-code-skills · 133 tokens

revdiff

Review diffs, files, and documents with inline annotations in a TUI overlay, or answer questions about revdiff usage, configuration, themes, and keybindings. Opens revdiff in agterm/tmux/zellij/herdr/kitty/wezterm/cmux/ghostty/iterm2/emacs-vterm, captures annotations, and addresses them. Works in git, hg, and jj repos…

umputun/revdiff · 248 tokens

write-pr

Reference standards for writing pull request titles and descriptions in the tldraw repository, plus the pre-flight comment sweep over the diff. Use as supporting guidance when another skill or workflow needs PR content standards, not as the user-facing create/update PR workflow.

tldraw/tldraw · 53 tokens