Bazel Build Optimization

🌐Community
by rmyndharis · vlatest · Repository

Helps with building, optimization as part of agent workflows workflows.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add rmyndharis-bazel-build-optimization npx -- -y @trustedskills/rmyndharis-bazel-build-optimization
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "rmyndharis-bazel-build-optimization": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/rmyndharis-bazel-build-optimization"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill optimizes Bazel build configurations to reduce build times and resource consumption. It analyzes existing .bazel files, identifies inefficiencies in build graphs, and suggests or implements changes such as rule sharding, caching improvements, and dependency optimization. The goal is faster builds with less impact on infrastructure.

When to use it

  • Slow Build Times: When your Bazel builds are taking an unacceptably long time, hindering development velocity.
  • Resource Constraints: When build processes are consuming excessive CPU or memory resources, impacting overall system performance.
  • Large Codebases: For projects with a significant number of targets and dependencies where optimization can yield substantial gains.
  • CI/CD Pipeline Bottlenecks: To shorten CI/CD pipeline execution times by improving Bazel build efficiency.

Key capabilities

  • Rule Sharding Optimization
  • Caching Improvements
  • Dependency Analysis & Optimization
  • .bazel file analysis and suggestion generation

Example prompts

  • "Analyze my Bazel project for potential optimization opportunities."
  • "Suggest ways to improve caching in my Bazel build."
  • "Optimize rule sharding for this Bazel workspace."

Tips & gotchas

This skill requires a working Bazel environment and access to the .bazel files of your project. The effectiveness of optimizations can vary significantly based on the specific codebase and existing configuration.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
rmyndharis
Installs
12

🌐 Community

Passed automated security scans.