gerritcodereview/gerrit-mcp-server/find-dependencies

Claude Code and agent skill by gerritcodereview/gerrit-mcp-server

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Find all dependencies of a Gerrit change or set of changes — both explicit Depends-on annotations (parsed by the depends-on plugin) and implicit git-chain parents. Use when asked: what does this change depend on, what is blocking this change, show me the dependency chain, are all dependencies merged, which changes depend on this one.

Install

npx vskill@latest install gerritcodereview/gerrit-mcp-server/find-dependencies

SKILL.md

The same SKILL.md was published earlier as gerritcodereview/gerrit-mcp-server/find-dependencies.

find-dependencies

Find and interpret the full dependency picture for one or more Gerrit changes.

The tools get_depends_on and get_dependents are provided by the gerrit_mcp_server_depends_on extension. They are available whenever gerrit-mcp-server is running with the depends-on extension installed and a configured Gerrit host that has the depends-on plugin enabled.

Dependency types

TypeSourceTool
Depends-onExplicit Depends-on: annotation in the change message, parsed by the depends-on pluginget_depends_on
Git-chain parentImplicit: this change's commit has a parent commit that is also an open Gerrit changeget_git_parent_changes

A dependency can be resolved (mapped to a numeric change ID) or unresolved (only has an I... change key ("Change-Id") that couldn't be matched to a change in the configured deliverables).

Quick reference

GoalWhat to do
What does change X depend on?get_depends_on(X) + get_git_parent_changes(X) in parallel
Which changes depend on X?get_dependents(X)
Are all dependencies merged?Get deps, then get_change_details on each; check status
Full dependency chainRecurse: get deps, then get deps-of-deps (track visited IDs)
Set of changesCall both tools for each change ID in parallel, deduplicate

Workflow: single change

  1. Call get_depends_on(change_id) and get_git_parent_changes(change_id) in

parallel.

  1. Merge the results:
  • From get_depends_on: each entry with resolved: true has a

change_number; unresolved entries have a Change-Id in unresolved.

  • From get_git_parent_changes: each entry is an open parent change (or null

if the parent commit is not a tracked Gerrit change, e.g. a merged branch tip).

  1. For each resolved dependency, optionally call get_change_details to show

its status (open / merged / abandoned) and subject.

  1. Present as a structured list grouping Depends-on and git-chain deps

separately.

Workflow: set of changes

Call both tools for every change ID. Use parallel tool calls to avoid sequential latency. Deduplicate by change number (the same upstream change may appear as a git-chain parent of multiple changes in the set).

Recursive traversal

To build a full dependency chain:

  1. Start with the target change(s).
  2. Maintain a visited set of change numbers.
  3. For each unvisited dependency, call get_depends_on and

get_git_parent_changes.

  1. Add newly discovered deps to the queue; add the current change to visited.
  2. Stop when: the queue is empty, all deps are merged/abandoned, or a

configurable depth limit is reached (default: 5 levels).

  1. Detect cycles: if a change appears as its own (transitive) dependency, flag

it rather than looping.

Interpreting unresolved deps

An unresolved entry means the plugin found a Depends-on: I... annotation but could not match that Change-Id to any change in the configured deliverables (project/branch pairs). This happens when:

  • The depended-on change is on a different project or branch not in the plugin's

deliverables config.

  • The change was abandoned or deleted.
  • The Change-Id (I<hash>) is a typo.

Surface unresolved deps as-is with the raw key and note that the status cannot be determined without manual lookup.

Finding what depends on a change (reverse lookup)

Use get_dependents(change_id) to find changes that have declared Depends-on: <change_id>. This uses the independson:<change_id> query operator.

Troubleshooting

SymptomFix
get_depends_on returns empty depends_onsThe change has no Depends-on: annotation, or the last Depends-on: line is blank (which clears all deps).
get_git_parent_changes returns empty listThe change's parent commit is not an open Gerrit change (e.g. it's the branch tip or already merged). This is normal for standalone changes.
Unresolved deps for known changesThe depended-on change may be on a project/branch not in the plugin's deliverables. Try looking up the Change-Id directly with query_changes(change:<Change-Id>).

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/gerritcodereview/gerrit-mcp-server/find-dependencies/badge)](https://verified-skill.com/skills/gerritcodereview/gerrit-mcp-server/find-dependencies)

Something wrong with this skill or its page? Tell us.