Skip to content
sickn33 avatar

Bazel Build Optimization

Optimization guide for Bazel monorepos covering WORKSPACE setup, .bazelrc tuning, remote caching, and custom rules.

CCM score
51 of 100
skills.sh installs
198
GitHub stars
50.5K
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Bazel architecture, key concepts (targets, packages, labels, rules, aspects), and when to apply the skill
  • Includes 6 templates: WORKSPACE configuration, .bazelrc settings, and BUILD files for TypeScript, Python, and Docker rules
  • Enforces verification of pinned Bazel versions, rule repository checksums, and approved endpoints before remote cache or execution
  • Designed for engineering teams migrating large monorepos to Bazel or tuning build times in enterprise codebases

Install

$ npx -y skills add sickn33/agentic-awesome-skills --skill bazel-build-optimization -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/sickn33/agentic-awesome-skills
Category
DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the bazel-build-optimization skill do?

bazel-build-optimization gives production patterns for Bazel in large-scale monorepos. It covers WORKSPACE setup, .bazelrc configuration, BUILD files for TypeScript and Python libraries, custom rules for Docker, and dependency queries.

Who is the bazel-build-optimization skill for?

bazel-build-optimization is aimed at teams setting up Bazel for monorepos, configuring remote caching or execution, optimizing build times, writing custom Bazel rules, debugging build issues, or migrating to Bazel. The skill also notes that its templates are fragments, not a runnable workspace.

How do I install the bazel-build-optimization skill?

Run npx -y skills add sickn33/agentic-awesome-skills --skill bazel-build-optimization -y in a project to install it. Once installed, bazel-build-optimization lets your agent apply Bazel build patterns to that project.

Where does bazel-build-optimization sit in the DevOps & Cloud category?

bazel-build-optimization is listed in the DevOps & Cloud category on Claude Marketplaces, next to azure-diagnostics, azure-prepare, azure-deploy, azure-validate and azure-storage. Its own focus is Bazel build performance rather than Azure cloud work.

What should I check before using bazel-build-optimization with remote caching?

Verify the pinned Bazel major version and rule repository checksums yourself, since the templates omit some dependencies. Remote cache and execution endpoints can receive source and artifacts, so bazel-build-optimization advises approved endpoints, TLS and scoped credentials.

More from sickn33/agentic-awesome-skills

All 682

Similar to Bazel Build Optimization

More DevOps & Cloud