bazel-build-optimization

Configure Bazel remote execution and caching for large-scale monorepos.

38.6k|4.1k|Updated Jul 24, 2025
One-click install
npx skills add https://github.com/wshobson/agents --skill bazel-build-optimization-wshobson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bazel-build-optimization
Source: https://github.com/wshobson/agents/tree/main/plugins/developer-essentials/skills/bazel-build-optimization
Command: npx skills add https://github.com/wshobson/agents --skill bazel-build-optimization-wshobson

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-scale monorepos, helping developers speed up compilation times and improve overall build performance.

Core Features & Use Cases

  • Configuration Templates: Provides ready-to-use templates for WORKSPACE.bazel, .bazelrc, and language-specific BUILD.bazel files.
  • 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 is experiencing long build times for their monorepo. They can use this Skill to implement Bazel's remote execution and caching, significantly reducing build durations.

Quick Start

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

Frequently Asked Questions about bazel-build-optimization

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

FAQPage Schema
How do I reduce Bazel build times for a large monorepo?

To reduce Bazel build times for a large monorepo, you can implement remote execution and caching to distribute build workloads and reuse previously compiled outputs across your team.

What's the best way to profile Bazel builds and identify performance bottlenecks?

The best way to profile Bazel builds and identify performance bottlenecks is using built-in performance profiling commands. This Skill offers specific commands to analyze build execution and pinpoint slow dependency resolution or custom rule overhead.

Can I use remote caching with Bazel for enterprise codebases?

Yes, you can use remote caching with Bazel for enterprise codebases. This Skill guides you through setting up distributed remote caching to ensure reproducible, scalable software builds and significantly reduce compilation durations.

Does this approach work with custom rule development in Bazel?

Yes, this approach works with custom rule development in Bazel. The Skill addresses dependency management and custom rule development in enterprise codebases, ensuring efficient and reproducible builds even with complex custom logic.