
For teams running multi-language monorepos at scale, this handles the gnarly parts of Bazel configuration that usually take weeks to figure out. It covers remote caching setup, proper .bazelrc tuning for CI/CD, and cross-language dependency management between TypeScript, Python, and other ecosystems. The custom rule templates and query examples are especially useful when you're debugging why builds are slow or writing your own tooling. Most teams underestimate Bazel's complexity until they hit performance walls, and this gives you the production patterns that Google-scale companies actually use rather than basic tutorials.
$ npx -y skills add wshobson/agents --skill bazel-build-optimization --agent claude-codeInstalls into .claude/skills of the current project.
Production patterns for Bazel in large-scale monorepos.
workspace/
├── WORKSPACE.bazel # External dependencies
├── .bazelrc # Build configurations
├── .bazelversion # Bazel version
├── BUILD.bazel # Root build file
├── apps/
│ └── web/
│ └── BUILD.bazel
├── libs/
│ └── utils/
│ └── BUILD.bazel
└── tools/
└── bazel/
└── rules/
| 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 |
Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.
Sponsors