Bazel Version Upgrades banner
tstapler tstapler

Bazel Version Upgrades

Development community

Description

--- name: bazel-version-upgrades description: Guidance for migrating Bazel projects to newer versions, specifically Bazel 9+. Use when encountering 'name not defined' errors for core rules like sh_binary, cc_binary, or when migrating from WORKSPACE to Bzlmod. --- # Bazel Version Upgrades (Focus: Bazel 9) Bazel 9 introduces significant changes, primarily the complete removal of `WORKSPACE` support and the "Starlarkification" of core rules. ## Key Migration Patterns for Bazel 9 ### 1. Core

Installation

Installs to ~/.claude/skills/tstapler-dotfiles-bazel-version-upgrades/SKILL.md

Terminal
mkdir -p ~/.claude/skills/tstapler-dotfiles-bazel-version-upgrades && curl -fsSL https://raw.githubusercontent.com/tstapler/dotfiles/HEAD/.claude/skills/bazel-version-upgrades.md -o ~/.claude/skills/tstapler-dotfiles-bazel-version-upgrades/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository