bazel-docs

bazel-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 35 tokens per session (3,293 once invoked), scanned A, original, MIT.

A reference guide to Bazel, a build system that describes how source files depend on one another and rebuilds only the parts that changed.

In plain words
What is it for?
Use it to write BUILD files, define targets and dependencies, manage external packages with Bzlmod, and run builds or tests across Linux, macOS, and Windows.
Why use it?
It helps make large, multi-platform projects more repeatable by recording build inputs and reusing earlier results.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to write BUILD files, define targets and dependencies, manage external packages with Bzlmod, and run builds or tests across Linux, macOS, and Windows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/bazel
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pledgeandgrow/pledge-skills --skill bazel
Clone the repo
git clone --depth 1 https://github.com/pledgeandgrow/pledge-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bazel-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/bazel/github.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/bazel)
Your own site
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/bazel"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/bazel/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bazel-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/bazel"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/bazel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,293 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.03293
Opus 5 $0.00017 $0.01647
Sonnet 5 $0.00007 $0.00659
Haiku 4.5 $0.00003 $0.00329

Measured 9d ago against content hash 2004d2fbb36e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

bazel-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bazel/SKILL.md · 175 lines

How it starts

The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bazel 9.x — Build System Documentation

Source: bazel.build/docs | bazel.build/start | bazel.build/reference | bazel.build/extending | bazel.build/community

Overview

Bazel is a fast, hermetic, multi-platform build system that uses a high-level build language (Starlark) to describe build properties at a semantic level. It caches all previous work, tracks file content and command changes, and rebuilds only what's necessary. Bazel runs on Linux, macOS, and Windows, and scales to 100k+ source files.

Core Concepts

  • Repositories: Directory tree with boundary marker (MODULE.bazel, REPO.bazel, or WORKSPACE)
  • Workspace: Environment shared by all Bazel commands from the same main repo
  • Packages: Directory containing a BUILD/BUILD.bazel file
  • Targets: Files (source/generated) and rules defined in BUILD files
  • Labels: Canonical identifiers for targets (//package-name:target-name)
  • Dependencies: Declared (BUILD file) vs actual (needed for correct build)
  • Hermeticity: Builds isolated from external environment
  • Runes/Starlark: Python-like DSL for writing BUILD files and extensions
  • Action Graph: DAG of build actions (inputs → outputs)
  • Three Phases: Loading → Analysis → Execution

File Index

File Coverage
getting-started.md Intro, installation, first builds (C++/Java/Android/iOS/Go), concepts (repos, workspaces, packages, targets, labels, BUILD files, dependencies, visibility, hermeticity), building programs, bazelrc, scripts, client/server
user-guide.md BUILD style guide, external dependencies (Bzlmod), commands & options, query (bazel query/aquery/cquery), configurable attributes, C++ integration, code coverage, Windows, performance optimization, remote execution (RBE, caching, dynamic execution, sandbox, workers, BEP), tutorials, migration
extending.md Extension concepts, rules, symbolic macros, legacy macros, depsets, aspects, repository rules, configurations, platforms, toolchains, execution groups, Starlark language, style guide, testing rules, performance, deploying rules, Stardoc
reference.md Build encyclopedia (all native rules: cc_, java_, py_, sh_, objc_, proto_, general, platforms), test encyclopedia, command-line reference, query reference, glossary, Starlark API (global functions, providers, built-in types, top-level modules, configuration fragments)

Read the full file on GitHub · 175 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 175 lines · 35 tokens per session scan A 2004d2fbb36e

Subscribe to this mod's changes

bazel-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 3,293 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.