bazel-build-optimization

Optimize Bazel build performance with configuration templates and remote caching.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ACGSpgp/ACGS --skill bazel-build-optimization-acgspgp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bazel-build-optimization
Source: https://github.com/ACGSpgp/ACGS/tree/main/.agent/workflows/developer-essentials/1.0.0/skills/bazel-build-optimization
Command: npx skills add https://github.com/ACGSpgp/ACGS --skill bazel-build-optimization-acgspgp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenges of slow and inefficient Bazel builds in large monorepos, helping developers and teams significantly reduce build times and improve developer productivity.

Core Features & Use Cases

  • Configuration Templates: Provides ready-to-use templates for WORKSPACE.bazel, .bazelrc, and various BUILD.bazel files for common languages (TypeScript, Python).
  • Remote Execution & Caching: Guides on setting up remote caching and execution for distributed builds.
  • Performance Profiling: Offers commands to profile builds and identify performance bottlenecks.
  • Use Case: A team working on a large monorepo with hundreds of developers can use this skill to implement Bazel best practices, leading to build times dropping from hours to minutes.

Quick Start

Use the bazel-build-optimization skill to configure remote caching and execution for your monorepo.

Frequently Asked Questions about bazel-build-optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Bazel build performance for a large monorepo?

You can optimize Bazel build performance for a large monorepo by applying ready-to-use configuration templates for WORKSPACE.bazel and .bazelrc, alongside implementing remote execution and distributed caching strategies.

How do I set up remote execution and caching for Bazel distributed builds?

Set up remote caching and execution for Bazel distributed builds by configuring your .bazelrc file to point to a remote build cluster, enabling faster task distribution and shared build artifact caching across development teams.

How do I profile Bazel builds to identify performance bottlenecks?

Profile Bazel builds to identify performance bottlenecks by executing specific profiling commands that analyze build execution phases, helping pinpoint slow targets and inefficient dependency management within enterprise codebases.

Can I use Bazel configuration templates for common languages like TypeScript and Python?

Yes, you can use Bazel configuration templates for common languages like TypeScript and Python, providing ready-to-use BUILD.bazel file structures that standardize dependency management and build rules across your monorepo.

What is the best way to reduce slow Bazel build times in enterprise codebases?

The best way to reduce slow Bazel build times in enterprise codebases is to implement build optimization best practices including remote caching, performance profiling, and proper WORKSPACE configuration to drop build times from hours to minutes.