bazel-build-optimization
Optimize Bazel Builds for Large Monorepos
Large Bazel repositories often suffer from slow, inconsistent builds. This skill guides profiling, caching, remote execution, rules, and configuration improvements.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "bazel-build-optimization" from https://skillstore.io/skills/sickn33-bazel-build-optimization.md and its manifest at https://skillstore.io/api/skills/sickn33-bazel-build-optimization/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "bazel-build-optimization". Review a .bazelrc that uses all local CPUs and has no shared cache.
Expected outcome:
A prioritized review recommends resource limits, a measured disk cache, and optional remote caching. Each change includes validation metrics and rollback guidance.
Using "bazel-build-optimization". Explain why a TypeScript target rebuilds after unrelated changes.
Expected outcome:
A dependency-focused diagnosis checks broad inputs, oversized targets, generated files, and toolchain changes. It proposes queries and profiles to isolate invalidation.
Using "bazel-build-optimization". Plan remote execution for a mixed-language monorepo.
Expected outcome:
A rollout plan defines platforms, registered toolchains, immutable worker images, authentication, staged workloads, capacity limits, observability, and local fallback.
Security Audit
Medium RiskAll 32 static findings are false positives caused by Markdown formatting, examples, trusted documentation links, cache paths, and a Bazel mnemonic. One medium semantic risk remains: the remote execution template uses a mutable latest container tag, which can change without review.
Confirmed security concerns (1)
Risk Factors
โ๏ธ External commands (21)
๐ Network access (6)
๐ Filesystem access (4)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/sickn33-bazel-build-optimization/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/sickn33-bazel-build-optimization?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/sickn33-bazel-build-optimization?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-bazel-build-optimization/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/sickn33-bazel-build-optimization.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
sickn33. (2026). bazel-build-optimization security audit report (audit version 5) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-bazel-build-optimization/audits/5BibTeX citation
@techreport{sickn33-sickn33-bazel-build-optimization-2026,
author = {sickn33},
title = {bazel-build-optimization security audit report (audit version 5)},
institution = {Skillstore},
year = {2026},
number = {5},
url = {https://skillstore.io/skills/sickn33-bazel-build-optimization/audits/5},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "bazel-build-optimization security audit report (audit version 5)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-08-14"
url: "https://skillstore.io/skills/sickn33-bazel-build-optimization/audits/5"
identifiers:
- type: other
value: "skillstore:sickn33-bazel-build-optimization:audit:5"
description: "Skillstore immutable audit report identifier"
Compare variants
2 installable variantsEach author remains a separate installable skill. The recommended variant is ranked by Skillstore evidence.
Why this variant is first
wshobson-bazel-build-optimization
2026-08-21
sickn33-bazel-build-optimization
2026-08-21
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Reduce Developer Build Times
Review profiles and configuration to identify slow actions, improve target granularity, and increase cache reuse.
Standardize Monorepo Targets
Create consistent TypeScript and Python BUILD patterns with clear dependencies, tests, and visibility.
Scale Continuous Integration
Plan remote caching, remote execution, build event reporting, and CI-specific Bazel settings.
Try These Prompts
Review this Bazel configuration for correctness and simple performance improvements. Explain each recommendation and provide verification steps.
Design Bazel targets for this library, its tests, and dependencies. Use explicit visibility and explain all repository-specific assumptions.
Analyze these Bazel profile results and execution logs. Rank bottlenecks, recommend changes, and define measurements that confirm each improvement.
Design a secure remote execution rollout for this monorepo. Cover platforms, toolchains, caching, authentication, immutable images, capacity, observability, and rollback.
Best Practices
- Measure a stable baseline before changing configuration, target boundaries, or execution strategy.
- Pin dependencies, toolchains, and remote worker images with immutable versions or digests.
- Test changes on representative workloads and compare clean, incremental, local, and remote builds.
Avoid
- Do not enable high remote concurrency before validating service capacity, quotas, and cost controls.
- Do not copy placeholder endpoints, checksums, labels, or credentials into production configuration.
- Do not optimize only clean builds when developers primarily depend on incremental performance.
Frequently Asked Questions
Does this skill run Bazel commands automatically?
Can it configure remote caching for any provider?
Does it support Bzlmod?
Can it identify the slowest build actions?
Are the provided dependency checksums ready to use?
Is remote execution always faster?
Developer Details
Author
sickn33License
MIT
Skillstore revision
r2
Version notice
The author did not declare a version.
Repository
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/bazel-build-optimizationRef
5a26d1d61d694db29af9b138c661c1981076d9df
Maintenance freshness
8/16/2026
Usage
10 downloads ยท 109 views
File structure
๐ SKILL.md