gerritcodereview/git-repo/code-review-workflow
Claude Code and agent skill by gerritcodereview/git-repo
- community
Checking that the SKILL.md file is still in the repository.
Provides guidance and best practices on Gerrit submission labeling, CI builder execution, Python code formatting/linting, commit metadata standardization, and testing strategy in git-repo.
Install
npx vskill@latest install gerritcodereview/git-repo/code-review-workflowSKILL.md
The same SKILL.md was published earlier as gerritcodereview/git-repo/code-review-workflow.
Code Review Workflow Engineering Guide
Executive Summary
Welcome to the authoritative engineering guide for the Code Review Workflow. This living repository exists to capture critical folk knowledge, prevent the recurrence of historical failure modes, and enforce strict architectural and procedural boundaries across our integration pipeline. By standardizing these protocols, we ensure high development velocity while maintaining rock-solid codebase stability and traceability.
This guide covers the complete lifecycle of a change list (CL) from local development to automated submission. It defines the strict Gerrit labeling mechanisms required to trigger the Commit-Queue, mandates comprehensive CI builder environment checks, and enforces centralized Python static analysis. Furthermore, it outlines uncompromising standards for atomic commit metadata and pragmatic testing state isolation to guarantee that every integration is fully bisectable and verifiable.
For incoming engineers, adherence to these mandates eliminates the friction of stalled pipelines, unreviewable monolithic changes, and silent CI regressions. Treat this guide as your primary roadmap for navigating the repository's strict submission requirements, enabling seamless transitions from peer approval to successfully integrated code.
Summary
| Chapter Theme / Title | Scope & Objective | |
|---|---|---|
| **Gerrit Submission and Labeling | Dictates strict access controls, review |
: Workflow** : enforcement protocols, and Gerrit : : : labeling mechanisms required to advance : : : changes through the CI pipeline, ensuring : : : seamless transitions to automated : : : integration via the Commit-Queue. :
: Execution Integrity** : script resilience against missing : : : dependencies and managing process : : : execution contexts within LUCI and local : : : testing environments to prevent silent : : : builder failures. :
: Linting** : Python style guidelines, mandating strict : : : PEP-8 compliance, import sorting, and : : : consistent string quoting to ensure : : : codebase uniformity and prevent CI : : : regressions. :
: Standardization** : and metadata formatting of change lists : : : (CLs) to ensure precise issue tracker : : : integration, reliable CI/CD parsing, and : : : an atomic, bisectable repository history. :
: Isolation** : emphasizing pragmatic mocking limits to : : : prevent false positives and detailing : : : acceptable workflows for deferred test : : : coverage while maintaining verification : : : integrity. :
Chapter: Gerrit Submission and Labeling Workflow
Context: This domain dictates the strict access controls, review enforcement protocols, and specific Gerrit labeling mechanisms required to advance changes through the CI pipeline. Adherence ensures seamless transitions from peer approval to automated integration via the Commit-Queue.
Summary
: : : : Trap :
| :-------- | :------------------------------ | :------- | :----------------- | |
|---|---|---|---|---|
| T1-01 | Explicit Labeling for Gerrit | High | Leaving a change |
: : Automated Submission : : idle after : : : : : addressing : : : : : comments or : : : : : receiving a : : : : : reviewer's LGTM, : : : : : expecting the : : : : : reviewer to merge : : : : : it. :
: : Commit-Queue (CQ) : : manual push or : : : : : direct submit from : : : : : repository : : : : : maintainers after : : : : : receiving code : : : : : review approval. :
: : Review Enforcement Verification : : standard +2 vote : : : : : from a non-trusted : : : : : contributor to : : : : : fulfill strict : : : : : Review-Enforcement : : : : : requirements. :
: : Automated Submission : : approval but : : : : : failing to apply : : : : : the appropriate : : : : : Gerrit labels to : : : : : initiate the merge : : : : : pipeline. :
: : Triggers : : approved patchset : : : : : idle and waiting : : : : : for maintainers to : : : : : manually merge it. :
: : Stalled Changes : : months for an : : : : : inactive or OOO : : : : : reviewer to : : : : : respond to a : : : : : patchset update. :
Rules
T1-01: Explicit Labeling for Gerrit Automated Submission
Rule: Always applyVerified+1andCommit-Queue+2explicitly to triggerthe final submission phase. Never assume a code approval automaticallyinitiates the pipeline.What: Changes are not merged automatically upon receiving approval;contributors must explicitly set theVerified+1andCommit-Queue+2labelsto trigger the final submission phase.Applies To: Gerrit review UI and change submission pipeline as defined inCONTRIBUTING.md.Why: Contributors often mistakenly assume an LGTM implies an immediatemerge, leading to stalled changes. The project relies on explicitly triggeringthe Commit-Queue to finalize CI checks and perform the merge. Failing toadhere to this typically results in Stalled Submission Pipeline.
Trap 1: Leaving a change idle after addressing comments or receiving a reviewer's LGTM, expecting the reviewer to merge it.
Don't:
- Waiting indefinitely after reviewer posts 'LGTM'.
Do:
- Vote
Verified+1andCommit-Queue+2manually to submit the change to the
automated queue.
Exceptions: Contributors lacking trusted permissions must ping a repository maintainer to apply the final Commit-Queue+2 vote.
T1-02: Automated Submission via Commit-Queue (CQ)
Rule: Must utilize the Gerrit Commit-Queue (CQ) labeling system to mergecode. Maintainers must never perform direct manual submissions.What: Merging code must be triggered via the Gerrit Commit-Queue (CQ)labeling system rather than relying on direct manual submission bymaintainers.Applies To: Gerrit code review UI and CI/CD submission workflow.Why: Contributors would request maintainers to directly merge patches onceapproved, bypassing the automated commit-queue pipeline, which guarantees thatfinal integration tests pass before pushing to the target branch. Failing toadhere to this typically results in Bypassed CI / Direct Submit.
Trap 1: Requesting a manual push or direct submit from repository maintainers after receiving code review approval.
Don't:
- Leaving a comment: "I believe everything is ready for integrating this. So
if either of you can submit it, it would be appreciated."
Do:
- Applying the
Commit-Queue+2(CQ+2) label in Gerrit, which delegates
testing and the final merge operation to the automated bot.
T1-03: Gerrit Trusted Contributor Review Enforcement Verification
Rule: Verify review enforcement requirements are satisfied by contributorswithin the explicitly configured trusted group. Never cast misleading +2 votesif you lack valid trusted group privileges.What: Gerrit submission requirements may mandate specific approval levels(e.g., two trusted contributors). Votes from users with +2 access who are notin the designated 'trusted' group do not satisfy the 'Review-Enforcement'submit requirement.Applies To: Gerrit repository administration and code review votingworkflows.Why: Non-trusted contributors with +2 rights were casting +2 votes onchanges. These votes did not fulfill the 'Two trusted contributors'Review-Enforcement requirement, leading to stalled submissions and confusionregarding why the UI showed a +2 but blocked submission. Failing to adhere tothis typically results in Blocked Submission / Silent Requirement Failure.
Trap 1: Relying on a standard +2 vote from a non-trusted contributor to fulfill strict Review-Enforcement requirements.
Don't:
- Leaving a +2 vote on a change as a non-trusted contributor, creating the
false appearance that the Review-Enforcement requirement has been partially or fully met.
Do:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagents/skills/code_review_workflow/SKILL.md
Popularity
- Repository stars
- 453
- Repository forks
- 230
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gerritcodereview/git-repo/code-review-workflow)