Agent skill · software engineering · aiskillstore
bazel-build-optimization
Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.
Why this skill is useful
Provides specific Bazel configuration templates and optimization strategies for large-scale monorepos that the AI wouldn't reliably generate on its own.
What it needs
About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
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 1. Bazel Architecture 2. Key Concepts Concept Description --------- ------------- Target Buildable unit (library, binary, test) Package Directory with BUILD file Label Target identifier //path/to:target Rule Defines how to build a target Aspect Cross-cutting build behavior Templates Template 1: WORKSPACE Configuration Template 2: .bazelrc Configuration Template 3: TypeScript Library BUILD Template 4: Python Library BUILD Template 5: Custom Rule for Docker Template 6: Query and Dependency Analysis Template 7: Remote Execution Setup Performance Optimization Best Practices Do's Use fine-grained targets - Better caching Pin dependencies - Reproducible builds Enable remote caching - Share build artifacts Use visibility wisely - Enforce architecture Write BUILD files per directory - Standard convention Don'ts Don't use glob for deps - Explicit is better Don't commit bazel- dirs - Add to .gitignore Don't skip WORKSPACE setup - Foundation of build Don't ignore build warnings - Technical debt Resources Bazel Documentation Bazel Remote Execution rulesjs Limitations Use this skill only when the task clearly matches the scope described above. Do not treat the output as a substitute for environment-specific validation, testing, or expert review. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/bazel-build-optimization