bazel-build-optimization

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

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/drgaciw/academic-compliance-hub-glm --skill bazel-build-optimization-drgaciw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bazel-build-optimization
Source: https://github.com/drgaciw/academic-compliance-hub-glm/tree/main/agents/plugins/developer-essentials/skills/bazel-build-optimization
Command: npx skills add https://github.com/drgaciw/academic-compliance-hub-glm --skill bazel-build-optimization-drgaciw

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenges of slow and inefficient build times in large-scale monorepos by providing strategies and configurations for optimizing Bazel builds.

Core Features & Use Cases

  • Monorepo Setup: Guides users through setting up Bazel for monorepos.
  • Performance Tuning: Offers configurations for remote caching, execution, and build profiling.
  • Custom Rules: Provides examples for writing custom Bazel rules, such as for Docker image building.
  • Dependency Analysis: Demonstrates how to use bazel query for understanding and optimizing dependencies.
  • Use Case: A development team struggling with multi-hour build times in their large TypeScript monorepo can use this Skill to implement remote execution and caching, reducing build times to minutes.

Quick Start

Configure Bazel for remote caching and execution using the provided .bazelrc template.

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 configuring remote caching and execution, analyzing build dependencies via `bazel query`, and profiling builds to reduce multi-hour build times to minutes.

What is the best way to set up remote caching and execution in Bazel?

The best way to set up remote caching and execution in Bazel is by applying a provided .bazelrc template, which configures reproducible builds and efficient resource utilization for enterprise codebases.

How does bazel query help with dependency analysis in a monorepo?

Bazel query helps with dependency analysis in a monorepo by demonstrating techniques to understand and optimize build dependencies, ensuring efficient build cycles and identifying bottlenecks.

Can I write custom Bazel rules for Docker image building within a monorepo?

Yes, you can write custom Bazel rules for Docker image building within a monorepo by following provided examples that support efficient build processes and custom rule development.

Does Bazel remote execution support TypeScript monorepos?

Yes, Bazel remote execution supports TypeScript monorepos, allowing development teams struggling with slow multi-hour build times to implement caching and execution to reduce build duration to minutes.

Why are my large monorepo builds taking hours instead of minutes?

Large monorepo builds take hours instead of minutes due to missing remote caching and execution. Configuring Bazel with remote execution and analyzing dependencies enables faster build cycles and reproducible builds.