Work with Bazel Central Registry (BCR) modules and bzlmod dependencies...
Use this skill to inspect live BCR metadata, answer repo-local Bzlmod version questions, and update module pins.
Resolve the helper CLI from this skill directory first. Do not assume the current repo has a scripts/ or tools/ copy of bcr_tool.py.
SKILL_DIR="${BCR_SKILL_DIR:-<path-to-this-skill>}"BCR_TOOL="$SKILL_DIR/scripts/bcr_tool.py"python3 "$BCR_TOOL" check-upgrades --module-file /path/to/MODULE.bazelpython3 "$BCR_TOOL" check-upgrades --module-file /path/to/deps/bazel_dep.MODULE.bazel --workspace-root /path/to/workspaceinclude() chains):python3 "$BCR_TOOL" list-deps --module-file /path/to/MODULE.bazelpython3 "$BCR_TOOL" latest --module rules_go --module rules_pythonpython3 "$BCR_TOOL" upgrade --module-file /path/to/MODULE.bazelpython3 "$BCR_TOOL" upgrade --module-file /path/to/MODULE.bazel --writepython3 "$BCR_TOOL" deps-tree --module-file /path/to/MODULE.bazel --max-depth 2check-upgrades first for questions like "which modules in the current repo can be upgraded?"--module-file at the root MODULE.bazel when the repo uses include().--module-file at an included file when the user wants a scoped answer for one file such as deps/bazel_dep.MODULE.bazel; pass --workspace-root if that file contains labels that should resolve from the repo root.single_version_override(..., version = "...") as the effective version when comparing to BCR.archive_override and versionless deps as custom pins. Report them separately instead of claiming they can be upgraded by a simple BCR version bump.python3 "$BCR_TOOL" find --registry-path /path/to/bazel-central-registry --query rules_python3 "$BCR_TOOL" list-versions --registry-path /path/to/bazel-central-registry --module rules_gocheck-upgrades or a dry-run upgrade before editing files.upgrade reads the root MODULE.bazel, follows include() files, and updates bazel_dep(..., version = "...") entries to the latest BCR version.--module to target a subset and --include-overrides to update single_version_override entries.--include-prerelease only when the user explicitly wants release candidates or betas.--write when the diff looks correct.go.mod, lockfiles, or generated manifests.list-deps shows direct deps (names + versions) from all included module files.deps-tree fetches MODULE.bazel files from BCR for a best-effort transitive tree (bounded by --max-depth).bazel mod graphbcr_tool.py: primary CLI for module search, live metadata lookup, upgrade checks, upgrades, and dependency inspection.registry.py: upstream BCR reference helper kept for comparison and reuse when needed.