ClaudeCodeMod

All shelves / Skills

bazel-build-optimization

wshobson/agents · 10.9k installs · 42.1K stars

Skill Production patterns for Bazel in large-scale monorepos.

Marked External Downloads · Command Execution

Install

The repo has no one-line install. Follow its README.

Open the repo

Files

SKILL.md

Bazel Build Optimization

Production patterns for Bazel in large-scale monorepos.

When to Use This Skill

  • 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
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 and detailed worked examples

Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.

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

Facts

Kind
Skill
Repo
wshobson/agents
Group
Uncategorized
Installs
10.9k
Stars
42.1K

Same name on this shelf 1

  1. 22798bazel-build-optimizationsickn33/antigravity-awesome-skills198

Same repo on other shelves

Marketplaces

  1. 16wshobson/agentswshobson/agentsMulti-harness agentic plugin marketplace for Claude Code, Codex, Cursor, OpenCode, GitHub Copilot, Google Antigravity, and Pi42.8k

From the same repo

  1. 2837istio-traffic-managementwshobson/agents10.9k
  2. 2845nft-standardswshobson/agents10.9k
  3. 2854linkerd-patternswshobson/agents10.8k
  4. 2895parallel-debuggingwshobson/agents10.7k
  5. 2907parallel-feature-developmentwshobson/agents10.6k
  6. 2938task-coordination-strategieswshobson/agents10.5k