← Back to list
name: bazel-central-registry
description: Work with Bazel Central Registry (BCR) modules and bzlmod dependencies. Use for finding modules/versions in a BCR checkout, checking latest BCR versions, upgrading

bazel-central-registry
by sluongng
dotfiles and configurations for personal developement environment
⭐ 5🍴 0📅 Jan 16, 2026
SKILL.md
name: bazel-central-registry
description: Work with Bazel Central Registry (BCR) modules and bzlmod dependencies. Use for finding modules/versions in a BCR checkout, checking latest BCR versions, upgrading bazel_dep entries in MODULE.bazel (including includes), and analyzing dependency trees via the bundled scripts/bcr_tool.py and upstream scripts/registry.py.
Bazel Central Registry
Overview
Use this skill to query BCR module metadata, update bzlmod dependencies, and inspect dependency trees. The skill bundles the upstream registry.py helper and a thin CLI (bcr_tool.py) that wraps common workflows.
Quick start
- List direct deps from a workspace (follows
include()chains):python3 scripts/bcr_tool.py list-deps --module-file /path/to/MODULE.bazel
- Check latest versions from BCR:
python3 scripts/bcr_tool.py latest --module rules_go --module rules_python
- Dry-run upgrade (print diffs only):
python3 scripts/bcr_tool.py upgrade --module-file /path/to/MODULE.bazel
- Apply upgrade edits:
python3 scripts/bcr_tool.py upgrade --module-file /path/to/MODULE.bazel --write
- Best-effort dependency tree (bounded depth):
python3 scripts/bcr_tool.py deps-tree --module-file /path/to/MODULE.bazel --max-depth 2
Tasks
Find modules / versions (local registry clone)
- Clone or point at a local bazel-central-registry checkout.
- Search by substring:
python3 scripts/bcr_tool.py find --registry-path /path/to/bazel-central-registry --query rules_
- List versions for a module:
python3 scripts/bcr_tool.py list-versions --registry-path /path/to/bazel-central-registry --module rules_go
Upgrade modules in MODULE.bazel
upgradereads the rootMODULE.bazel, followsinclude()files, and updatesbazel_dep(..., version = "...")entries to the latest BCR version.- Use
--moduleto target a subset and--include-overridesto updatesingle_version_overrideentries. - Always start with a dry-run, then re-run with
--writewhen the diff looks correct.
Analyze dependency tree
list-depsshows direct deps (names + versions) from all included module files.deps-treefetches MODULE.bazel files from BCR for a best-effort transitive tree (bounded by--max-depth).- For a fully resolved graph (including overrides/extensions), run Bazel directly:
bazel mod graph
Resources
scripts/
registry.py: upstream BCR registry helper (used for metadata and downloads).bcr_tool.py: CLI wrapper for module search, latest version lookup, upgrades, and dependency inspection.
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon

