Bazel Build Optimization

•
39k
•

Optimizes Bazel build configurations, remote execution, and caching strategies for enterprise monorepos.

The Bazel Build Optimization skill equips Claude Code with production-tested architectural patterns and best practices for scaling Bazel in large codebases. It guides developers through setting up fine-grained target graphs, implementing remote build caching and execution, drafting custom Starlark rules, and migrating legacy build systems. By enforcing visibility boundaries and dependency pinning, this skill helps teams achieve faster CI/CD pipelines, reproducible builds, and reduced build failure rates across complex multi-language monorepos.

Key Features

01Dependency management, pinning, and visibility enforcement
0239,277 GitHub stars
03Remote caching and remote execution configuration setup
04Build performance profiling and diagnostic troubleshooting
05Monorepo build graph design and fine-grained target optimization
06Starlark custom rule and aspect development guidelines

Use Cases

01Debugging complex dependency graphs and resolving cache invalidation bottlenecks
02Migrating an existing multi-project repository or legacy build tool to Bazel
03Configuring distributed remote caching to dramatically accelerate CI/CD build times