bazel-monorepo-expert

bazel-monorepo-expert is a skill for Claude Code, Codex from kinhluan/rules-quarkus-skills. It costs 43 tokens per session (3,574 once invoked), scanned A, original, MIT.

A guide for organising large Bazel monorepos, meaning single code repositories that contain multiple services and shared libraries. It covers workspace structure, visibility, and dependencies.

In plain words
What is it for?
Use it to structure Bazel workspaces, manage shared code, control which packages can depend on each other, and improve incremental builds.
Why use it?
It helps prevent tangled dependencies and inconsistent tools while keeping builds manageable as the repository grows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to structure Bazel workspaces, manage shared code, control which packages can depend on each other, and improve incremental builds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kinhluan/rules-quarkus-skills/bazel-monorepo-expert
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 kinhluan/rules-quarkus-skills --skill bazel-monorepo-expert
Clone the repo
git clone --depth 1 https://github.com/kinhluan/rules-quarkus-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-monorepo-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/kinhluan/rules-quarkus-skills/bazel-monorepo-expert/github.svg)](https://agentmods.dev/skills/kinhluan/rules-quarkus-skills/bazel-monorepo-expert)
Your own site
<a href="https://agentmods.dev/skills/kinhluan/rules-quarkus-skills/bazel-monorepo-expert"><img src="https://agentmods.dev/badge/skills/kinhluan/rules-quarkus-skills/bazel-monorepo-expert/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-monorepo-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/kinhluan/rules-quarkus-skills/bazel-monorepo-expert"><img src="https://agentmods.dev/badge/skills/kinhluan/rules-quarkus-skills/bazel-monorepo-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,574 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.00043 $0.03574
Opus 5 $0.00022 $0.01787
Sonnet 5 $0.00009 $0.00715
Haiku 4.5 $0.00004 $0.00357

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

Security

Grade A, and why

bazel-monorepo-expert 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 12d 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.

.agent-skills/bazel-monorepo-expert/SKILL.md · 554 lines

How it starts

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

bazel-monorepo-expert

Keyword: monorepo | Platforms: gemini,claude,codex

Bazel Monorepo Expert Skill - Structuring, managing, and optimizing large-scale Bazel workspaces with multiple services, shared libraries, and complex dependency graphs.

Core Mandates

  • Single Source of Truth: One workspace for all services and shared libraries.
  • Strict Visibility: Default private, explicitly expose only public APIs.
  • Dependency Hygiene: No circular dependencies, no diamond dependency conflicts.
  • Consistent Tooling: Same Java version, same linter, same test framework across all packages.
  • Incremental Builds: Granular targets for fast incremental builds and cache hits.

Workspace Structure

Recommended Layout

my-monorepo/
├── WORKSPACE.bazel (or MODULE.bazel)
├── .bazelrc
├── .bazelignore
├── .bazelversion
├── BUILD.bazel (root)
├── platforms/
│   └── BUILD.bazel
├── toolchains/
│   └── BUILD.bazel
├── third_party/
│   └── BUILD.bazel
├── common/
│   ├── utils/
│   │   ├── src/main/java/...
│   │   ├── src/test/java/...
│   │   └── BUILD.bazel
│   ├── models/
│   │   └── BUILD.bazel
│   └── proto/
│       └── BUILD.bazel
├── services/
│   ├── user/
│   │   ├── src/main/java/...
│   │   ├── src/test/java/...
│   │   ├── src/main/resources/
│   │   ├── k8s/
│   │   ├── helm/
│   │   └── BUILD.bazel
│   ├── order/
│   │   └── BUILD.bazel
│   └── payment/
│       └── BUILD.bazel
├── libs/
│   ├── auth/
│   │   └── BUILD.bazel
│   ├── messaging/
│   │   └── BUILD.bazel
│   └── observability/
│       └── BUILD.bazel
└── tools/
    ├── buildifier/
    ├── linters/
    └── scripts/

Root BUILD.bazel

# BUILD.bazel (root)
exports_files([".bazelrc", "MODULE.bazel"])

# Test suite for all tests in the repo
test_suite(
    name = "all_tests",
    tests = [
        "//common/utils:all_tests",
        "//common/models:all_tests",
        "//services/user:all_tests",
        "//services/order:all_tests",
        "//services/payment:all_tests",
        "//libs/auth:all_tests",
        "//libs/messaging:all_tests",
    ],
)

# Build all services
filegroup(
    name = "all_services",
    srcs = [
        "//services/user:user-service_image",
        "//services/order:order-service_image",
        "//services/payment:payment-service_image",
    ],
)

Read the full file on GitHub · 554 lines

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. 12d ago First seen · 554 lines · 43 tokens per session scan A cac51ccc2942

Subscribe to this mod's changes

bazel-monorepo-expert is a skill published in the GitHub repository kinhluan/rules-quarkus-skills (3 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 3,574 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.