bazel-build-optimization

Optimize Bazel build performance and build graph efficiency in monorepos.

Updated May 16, 2026
One-click install
npx skills add https://github.com/p-o-ke-nae/pokemondamagecalculatorforstory --skill bazel-build-optimization-p-o-ke-nae
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bazel-build-optimization
Source: https://github.com/p-o-ke-nae/pokemondamagecalculatorforstory/tree/main/.github/skills/bazel-build-optimization
Command: npx skills add https://github.com/p-o-ke-nae/pokemondamagecalculatorforstory --skill bazel-build-optimization-p-o-ke-nae

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams reduce slow, expensive, and hard-to-debug Bazel builds by providing practical patterns for performance tuning, configuration, and troubleshooting.

Core Features & Use Cases

  • Build setup guidance for monorepos, including workspace organization and target structure.
  • Performance optimization for local builds, caching, remote execution, and CI configurations.
  • Rule and dependency examples for common languages and custom build tooling.
  • Diagnostic workflows for profiling, querying, and identifying bottlenecks in large build graphs.
  • Use this when you need to migrate a repository to Bazel, stabilize existing builds, or improve build throughput in enterprise environments.

Quick Start

Ask for help optimizing a Bazel monorepo build by describing your repository layout, current bottlenecks, and whether you need caching, remote execution, or dependency analysis.

Frequently Asked Questions about bazel-build-optimization

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

FAQPage Schema
How do I speed up slow Bazel builds in a large monorepo?

To speed up Bazel builds, you can optimize your monorepo's workspace organization and target structure. This Skill provides performance tuning patterns for local builds, remote caching, and remote execution to improve build throughput.

What is the best way to debug unstable Bazel builds and identify bottlenecks?

Debugging unstable Bazel builds involves using query-driven diagnostic workflows to profile and identify bottlenecks in large build graphs. This approach helps troubleshoot slow or unstable builds by analyzing dependencies and build configurations.

How do I configure Bazel remote caching and remote execution for CI?

Configuring Bazel remote caching and remote execution requires cache-aware tuning and platform setup for CI environments. This Skill guides you through reproducible build configurations to improve enterprise build throughput.

Does this Bazel optimization guidance cover custom rule authoring and toolchains?

Yes, it covers custom rule authoring and toolchains. It provides rule and dependency examples for common languages and custom build tooling, alongside platform and toolchain setup for production Bazel workflows.

How do I perform dependency analysis when migrating a repository to Bazel?

Dependency analysis when migrating to Bazel involves examining your repository layout and target structure. This Skill helps you migrate repositories to Bazel by providing build setup guidance and dependency analysis patterns.