bazel-build-optimization
Agent skill fromrmyndharis/antigravity-skills
Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.
How to install bazel-build-optimization
install bazel-build-optimization
# install the antigravity-skills pack with the skills CLI
npx skills add rmyndharis/antigravity-skills# or add only this skill to Claude Code: copy the folder
skills/bazel-build-optimization/
# into
~/.claude/skills/bazel-build-optimization/ (all projects)
.claude/skills/bazel-build-optimization/ (one project)
1# Bazel Build Optimization23Production patterns for Bazel in large-scale monorepos.45## Do not use this skill when67- The task is unrelated to bazel build optimization8- You need a different domain or tool outside this scope910## Instructions1112- Clarify goals, constraints, and required inputs.13- Apply relevant best practices and validate outcomes.14- Provide actionable steps and verification.1516## Use this skill when1718- Setting up Bazel for monorepos19- Configuring remote caching/execution20- Optimizing build times21- Writing custom Bazel rules22- Debugging build issues23- Migrating to Bazel2425## Core Concepts2627### 1. Bazel Architecture2829```30workspace/31├── WORKSPACE.bazel # External dependencies32├── .bazelrc # Build configurations33├── .bazelversion # Bazel version34├── BUILD.bazel # Root build file35├── apps/36│ └── web/37│ └── BUILD.bazel38├── libs/39│ └── utils/40│ └── BUILD.bazel41└── tools/42 └── bazel/43 └── rules/44```4546### 2. Key Concepts4748| Concept | Description |49|---------|-------------|50| **Target** | Buildable unit (library, binary, test) |51| **Package** | Directory with BUILD file |52| **Label** | Target identifier `//path/to:target` |53| **Rule** | Defines how to build a target |54| **Aspect** | Cross-cutting build behavior |5556## Templates5758### Template 1: WORKSPACE Configuration5960```python61# WORKSPACE.bazel62workspace(name = "myproject")6364load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")65…
Excerpt shown under the repository's MIT license.
More skills in antigravity-skills
- ▸accessibility-compliance-accessibility-audit
- ▸agent-orchestration-improve-agent
- ▸agent-orchestration-multi-agent-optimize
- ▸ai-engineer
- ▸airflow-dag-patterns
- ▸angular-migration
- ▸anti-reversing-techniques
- ▸antigravity-skills-manager
- ▸api-design-principles
- ▸api-documenter
- ▸api-testing-observability-api-mock
- ▸application-performance-performance-optimization
