bazel-build-optimization

by Unknown v1.0.0

This skill provides guidance on optimizing Bazel builds, especially in large-scale monorepo environments. It covers essential concepts, configuration templates, and best practices for achieving efficient and reproducible builds. It addresses setting up Bazel, configuring remote caching/execution, debugging, and writing custom rules.

The skill helps users understand Bazel architecture, key concepts like targets and rules, and provides templates for configuring WORKSPACE files, .bazelrc, and BUILD files for various languages (TypeScript, Python) and custom rules (Docker). It includes query and dependency analysis techniques, remote execution setup, performance optimization strategies, and best practices.

It's designed to make Bazel usage more efficient and maintainable, reducing build times and improving overall developer productivity.

What It Does

Optimizes Bazel builds by providing best practices, configuration templates, and debugging techniques, significantly improving build performance in large monorepo environments.

When To Use

Use this skill when setting up Bazel for monorepos, configuring remote caching/execution, optimizing build times, writing custom Bazel rules, debugging build issues, or migrating to Bazel.

Installation

Copy SKILL.md to your skills directory

View Universal documentation

Have a Skill to Share?

Join the community and help AI agents learn new capabilities. Submit your skill and reach thousands of developers.