gerrit-cli

GitHub

通过 depot_tools 的 gerrit_client.py 与公共 Gerrit 平台交互,用于查询变更列表、获取文件修订版、添加补丁集评论、投票及提交或放弃代码变更。

.agents/skills/gerrit-cli/SKILL.md ChromeDevTools/devtools-frontend

Trigger Scenarios

查询公共 CL 列表 检索文件修订版本 添加补丁集评论 对审查标签进行投票 提交代码变更 放弃或恢复公共 CL

Install

npx skills add ChromeDevTools/devtools-frontend --skill gerrit-cli -g -y
More Options

Non-standard path

npx skills add https://github.com/ChromeDevTools/devtools-frontend/tree/main/.agents/skills/gerrit-cli -g -y

Use without installing

npx skills use ChromeDevTools/devtools-frontend@gerrit-cli

指定 Agent (Claude Code)

npx skills add ChromeDevTools/devtools-frontend --skill gerrit-cli -a claude-code -g -y

安装 repo 全部 skill

npx skills add ChromeDevTools/devtools-frontend --all -g -y

预览 repo 内 skill

npx skills add ChromeDevTools/devtools-frontend --list

SKILL.md

Frontmatter
{
    "name": "gerrit-cli",
    "description": "Interacts with the public Gerrit Code Review platform using depot_tools' gerrit_client.py. Use this skill when asked to query public CLs, retrieve file revisions, add patchset comments, vote on review labels, submit changes, or abandon\/restore public CLs. Do not use this skill for Google-internal attention set updates or internal AI-assisted code reviews (CRUAS) which are unsupported by the public API."
}

Gerrit CLI Skill

Execute public Gerrit Code Review commands using gerrit_client.py from depot_tools.

Prerequisites

  • Ensure gerrit_client.py is available in the system PATH (typically part of depot_tools). If gerrit_client.py is not available in your environment, stop execution immediately.
  • Use the wrapper script directly instead of an environment variable. Substitute: vpython3 .agents/skills/gerrit-cli/scripts/gerrit_client_wrapper.py as the executable command in all examples and invocations.

Just-in-Time (JiT) Loading Guidance

  • Before running any Gerrit CLI command, read references/commands.md to locate the required parameters and specific subcommand syntax.
  • Before querying public CLs, adding comments, voting, or submitting changes, read references/workflows.md for step-by-step procedures.

Gotchas & Environment Constraints

  • Specify Host: Always supply the --host flag explicitly (e.g. --host https://chromium-review.googlesource.com).
  • Use JSON Output: Always use the --json_file=<path> flag when querying changes or fetching metadata to obtain structured, machine-readable output.

[!CAUTION] NEVER use this to add patchset comments to an existing comment thread that contains human reviewers in it. Using an agent to reply to a human is a violation of Chromium's code of conduct.

If the user requests this or you encounter this scenario as part of your work, inform the user about which comment threads cannot be updated but otherwise continue work.

[!NOTE] This skill was adapted from the Chromium Gerrit CLI skill (automatically rolled in from upstream).

Version History

  • 678d19c Current 2026-08-20 15:20

Same Skill Collection

.agents/skills/devtools-ci/SKILL.md
.agents/skills/devtools-imports/SKILL.md
.agents/skills/devtools-model-management/SKILL.md
.agents/skills/devtools-setting-migration/SKILL.md
.agents/skills/devtools-source-maps/SKILL.md
.agents/skills/devtools-testing-guidance/SKILL.md
.agents/skills/devtools-unicode-escaping/SKILL.md
.agents/skills/devtools-ux-writing-refactor/SKILL.md
.agents/skills/devtools-verification/SKILL.md
.agents/skills/evaluate-ai-css-completion/SKILL.md
.agents/skills/fixing-skipped-tests/SKILL.md
.agents/skills/foundation-test-migration/SKILL.md
.agents/skills/merging-devtools-module/SKILL.md
.agents/skills/migrate-chromium-test/SKILL.md
.agents/skills/ui-eng-vision-local-lit-renderer/SKILL.md
.agents/skills/ui-eng-vision-logic-consolidator/SKILL.md
.agents/skills/ui-eng-vision-orchestrator/SKILL.md
.agents/skills/ui-eng-vision-test-scaffolder/SKILL.md
.agents/skills/ui-eng-vision-widget-promoter/SKILL.md
.agents/skills/ui-widgets/SKILL.md
.agents/skills/version-control/SKILL.md
.agents/skills/repro-flaky-tests/SKILL.md

Metadata

Files
0
Version
678d19c
Hash
86aad9ec
Indexed
2026-08-20 15:20

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 09:44
浙ICP备14020137号-1 $방문자$