bazel-expert

Guide idiomatic Bazel rule writing and Starlark best practices for build performance.

3|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/kinhluan/rules-quarkus-skills --skill bazel-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bazel-expert
Source: https://github.com/kinhluan/rules-quarkus-skills/tree/main/.agent-skills/bazel-expert
Command: npx skills add https://github.com/kinhluan/rules-quarkus-skills --skill bazel-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexities of the Bazel build system, enabling users to write efficient, idiomatic rules and optimize build performance for large projects.

Core Features & Use Cases

  • Rule Writing: Guidance on creating custom Bazel rules and using Starlark effectively.
  • Performance Tuning: Strategies for speeding up build times and ensuring compatibility with remote execution.
  • Best Practices: Adherence to principles like hermeticity, granularity, and Bzlmod.
  • Use Case: A developer struggling with slow build times in a large monorepo can use this Skill to identify and refactor inefficient rules, leading to significant performance improvements.

Quick Start

Use the bazel-expert skill to optimize the build performance of my Java project.

Frequently Asked Questions about bazel-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write custom Bazel rules using Starlark for a monorepo?

To write custom Bazel rules using Starlark, you must adhere to idiomatic best practices, ensuring granularity and hermeticity for scalable builds. This provides guidance on creating efficient rules tailored for complex monorepo projects.

Why does my Bazel build system have slow performance in a large monorepo?

Slow Bazel build performance in large monorepos often stems from inefficient rules lacking proper granularity. This Skill helps identify and refactor these rules, applying performance tuning strategies to speed up build times significantly.

What is hermeticity and why is it important for Bazel remote execution?

Hermeticity ensures builds are self-contained and unaffected by external environment changes, which is crucial for reliable remote execution. This Skill enforces hermeticity principles alongside Bzlmod to maintain efficient and compatible build environments.

Can I use Bzlmod to manage dependencies for complex projects?

Yes, you can use Bzlmod to manage dependencies for complex projects by adhering to modern Bazel principles. This Skill requires adherence to Bzlmod principles to ensure efficient and scalable builds across large codebases.

What's the best way to optimize Bazel build performance for a Java project?

The best way to optimize Bazel build performance for a Java project is by refactoring inefficient rules and applying performance tuning strategies. This Skill provides expert guidance to identify bottlenecks and ensure compatibility with remote execution.