Skip to content
Development
Skill

/bazel-build-optimization

Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.

From plugin
agents
42k185 skills137 agents93 commands

Claude Code

$ npx -y skills add wshobson/agents --skill bazel-build-optimization --agent claude-code

SKILL.md

bazel-build-optimization.SKILL.md
name: bazel-build-optimization
description: Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.

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
Read more
@wshobson
Ships withagents

Use one collection of plugins, agents, skills, and commands across Claude Code, OpenAI Codex CLI, Cursor, OpenCode, Antigravity CLI, GitHub Copilot, and Pi. A harness is the coding tool that loads and runs the components.

42k185 skills137 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
42.4k
Star history of wshobson/agents on GitHub, a chart by star-history.com

Other skills on agents.

screen-reader-testing

screen-reader-testing

Test web applications with screen readers including VoiceOver, NVDA, and JAWS. Use when validating screen reader compatibility,โ€ฆ

@wshobson@wshobsonInstall Skill
wcag-audit-patterns

wcag-audit-patterns

Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditingโ€ฆ

@wshobson@wshobsonInstall Skill
multi-reviewer-patterns

multi-reviewer-patternโ€ฆ

Coordinate parallel code reviews across multiple quality dimensions with finding deduplication, severity calibration, andโ€ฆ

@wshobson@wshobsonInstall Skill
parallel-debugging

parallel-debugging

Debug complex issues using competing hypotheses with parallel investigation, evidence collection, and root cause arbitration. Useโ€ฆ

@wshobson@wshobsonInstall Skill
parallel-feature-development

parallel-feature-develโ€ฆ

Coordinate parallel feature development with file ownership strategies, conflict avoidance rules, and integration patterns forโ€ฆ

@wshobson@wshobsonInstall Skill
task-coordination-strategies

task-coordination-straโ€ฆ

Decompose complex tasks, design dependency graphs, and coordinate multi-agent work with proper task descriptions and workloadโ€ฆ

@wshobson@wshobsonInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, orโ€ฆ

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android โ€” semantic ARIA roles and labels,โ€ฆ

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commitsโ€ฆ

react3d252k
@facebook@facebookInstall Skill

Questions about bazel-build-optimization.

Which coding agents can use bazel-build-optimization?
bazel-build-optimization installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.