sickn33 avatar

Bazel Build Optimization

This one gives Claude production patterns for optimizing Bazel in large monorepos. It covers remote caching and execution configs, workspace setup for multi-language repos (TypeScript, Python), and practical BUILD file templates for libraries and tests. The .bazelrc templates are solid for tuning build parallelism and CI integration. It includes query patterns for dependency analysis and a custom rule example for Docker builds. Use it when you're setting up Bazel from scratch, debugging slow builds, or need to write maintainable BUILD files without digging through docs. The templates assume you know what a monorepo is and why you'd want remote execution.

skills.sh installs
198
GitHub stars
39.4K
last updated
Jun 3, 2026

Install

$ npx -y skills add sickn33/antigravity-awesome-skills --skill bazel-build-optimization --agent claude-code

Installs into .claude/skills of the current project.

Files

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.

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

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/

2. Key Concepts

Sponsors

Details

Repository
github.com/sickn33/antigravity-awesome-skills
Category
DevOps & CI/CD
First seen
Jun 3, 2026

More from sickn33/antigravity-awesome-skills

All 708
1sickn33 avatarincident-response-smart-fixsickn33/antigravity-awesome-skillsincident response smart fix197skills.sh installs
2iii-hq avatariii-observabilityiii-hq/iiiOpenTelemetry-backed tracing, structured logs, metrics with rollups, alerts, sampling, and baggage for the engine — emit and query telemetry through `engine::*`195skills.sh installs
3sickn33 avatarincident-runbook-templatessickn33/antigravity-awesome-skillsincident runbook templates194skills.sh installs
4cinience avataralicloud-observability-pts-testcinience/alicloud-skillsSmoke test for alicloud-observability-pts. Validate script compilation and one bounded read-only PTS metadata query path.157skills.sh installs
5erichowens avatarcomputer-vision-pipelineerichowens/some_claude_skillscomputer vision pipeline153skills.sh installs
6rightnow-ai avatardockerrightnow-ai/openfangDocker expert for containers, Compose, Dockerfiles, and debugging152skills.sh installs