Skip to content
Back to skills

Bazel Build Optimization

ASecurity

Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.

  • 508 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 7, 2026
developmenttypescriptpythongodockerdebuggingperformance

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add Dokhacgiakhoa/antigravity-ide --skill bazel-build-optimization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bazel Build Optimization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bazel Build Optimization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dokhacgiakhoa-bazel-build-optimization/badge)](https://www.skillsdirectory.com/skills/dokhacgiakhoa-bazel-build-optimization)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
version: 4.1.0-fractal
name: bazel-build-optimization
description: Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.
---

# Bazel Build Optimization

Production patterns for Bazel in large-scale monorepos.

## Do not use this skill when

- The task is unrelated to bazel build optimization
- You need a different domain or tool outside this scope

## Instructions

- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open `resources/implementation-playbook.md`.

## Use this skill when

- Setting up Bazel for monorepos
- Configuring remote caching/execution
- Optimizing build times
- Writing custom Bazel rules
- Debugging build issues
- Migrating to Bazel

## Core Concepts

## 🧠 Knowledge Modules (Fractal Skills)

### 1. [1. Bazel Architecture](./sub-skills/1-bazel-architecture.md)
### 2. [2. Key Concepts](./sub-skills/2-key-concepts.md)
### 3. [Template 1: WORKSPACE Configuration](./sub-skills/template-1-workspace-configuration.md)
### 4. [Template 2: .bazelrc Configuration](./sub-skills/template-2-bazelrc-configuration.md)
### 5. [Template 3: TypeScript Library BUILD](./sub-skills/template-3-typescript-library-build.md)
### 6. [Template 4: Python Library BUILD](./sub-skills/template-4-python-library-build.md)
### 7. [Template 5: Custom Rule for Docker](./sub-skills/template-5-custom-rule-for-docker.md)
### 8. [Template 6: Query and Dependency Analysis](./sub-skills/template-6-query-and-dependency-analysis.md)
### 9. [Template 7: Remote Execution Setup](./sub-skills/template-7-remote-execution-setup.md)
### 10. [Do's](./sub-skills/dos.md)
### 11. [Don'ts](./sub-skills/donts.md)

Files in this skill

  • SKILL.md1.8 KB
  • sub-skills/1-bazel-architecture.md455 B
  • sub-skills/2-key-concepts.md328 B
  • sub-skills/donts.md408 B
  • sub-skills/dos.md263 B
  • sub-skills/template-1-workspace-configuration.md1.2 KB
  • sub-skills/template-2-bazelrc-configuration.md1.4 KB
  • sub-skills/template-3-typescript-library-build.md836 B
  • sub-skills/template-4-python-library-build.md753 B
  • sub-skills/template-5-custom-rule-for-docker.md1.2 KB
  • sub-skills/template-6-query-and-dependency-analysis.md741 B
  • sub-skills/template-7-remote-execution-setup.md1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…