bazel
Skill4 starsChanged 10 days agoMITView on GitHub
Build, test, and diagnose Bazel monorepos across Go, C++, TypeScript and React. Use for BUILD/Starlark, Bzlmod, toolchains, caching, dev loops, affected CI and release artifacts.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- gilsmt/skillstheir own version, first seen Oct 29, 2026
- Moosync/Moosynctheir own version, first seen Oct 8, 2026
- ccheney/robust-skillstheir own version, first seen Sep 12, 2026
- github/codeqltheir own version, first seen Nov 29, 2022
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- github/codeql★ 10ksame name
- Moosync/Moosync★ 264same name
- ccheney/robust-skills★ 60same name
- gilsmt/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository117 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- agent-watchdogSkill
- aipSkill
- animateSkill
- animation-performanceSkill
- animation-vocabularySkill
- ask-benSkill
- ask-sonnerSkill
- bend-lawsSkill
- blast-radiusSkill
- brain-dumpSkill
- break-uiSkill
- ci-fixesSkill
- codebase-designSkill
- codex-compatSkill
- codexSkill
- commit-push-prSkill
- connect-querySkill
- create-verification-skillSkill
- demoSkill
- development-lifecycleSkill
- diagnosing-bugsSkill
- docsSkill
- dogfoodSkill
- domain-modelingSkill
- e2e-testingSkill
- effect-tsSkill
- effect-v3-to-v4Skill
- efficient-frontierSkill
- eli5Skill
- excalidraw-diagramSkill
- extend-harnessSkill
- frontend-invariantsSkill
- frontend-starter-kitSkill
- full-sendSkill
- gesturesSkill
- golang-reviewSkill
- golangSkill
- goSkill
- grillingSkill
- handoffSkill
- hook-auditSkill
- implement-specSkill
- improve-animationsSkill
- improve-codebase-architectureSkill
- improveSkill
- launchdarklySkill
- lie-detectorSkill
- maintain-verification-skillSkill
- make-pr-easy-to-reviewSkill
- mobile-nativeSkill
- plan-arbiterSkill
- plow-aheadSkill
- postgresqlSkill
- primeSkill
- productSkill
- protobufSkill
- prototypeSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Keep action reuse, Git-aware target selection, browser HMR and deployment separate.
- Very specific: line 43
Read the nearest BUILD file and any loaded macro.
- Distinctive: line 58
Treat partial/error output as incomplete evidence, never an empty impact set.
- Distinctive: line 88
Keep repository-download caches, action caches and remote execution distinct.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Make the declared build graph reproduce the requested behavior. Repository-owned wrappers, macros, pins and CI policy outrank this general guidance.
Establish the build contract
- Resolve the Bazel workspace root,
.bazelversion, rootMODULE.bazel, applicable.bazelrcimports, component instructions and the actual CI entrypoint. Use the pinned Bazel through the repository's Bazelisk/wrapper, not a globally upgraded binary. Keep per-machine overrides in the existing ignored user rc file. Verify newer flags, Starlark annotation syntax and rules against those pins; conference demos and roadmap items are not released API contracts. - For version upgrades, bundled-JDK trust failures or Bazel 10 compatibility, read release guidance. Keep same-line patch updates separate from opt-in release-candidate testing.
- Distinguish what has BUILD files from what Bazel owns today. Generated targets do not prove CI adoption. Check merged source, not an intermediate commit, draft rollout or predecessor repository.
- Preserve a monorepo's one-root-module boundary. Consolidate dependency/toolchain declarations at that root;
a new nested
MODULE.bazelcan hide a subtree from wildcard discovery. Treat an intentionally separate workspace as a separate build, not something to merge opportunistically. - For a Go/Task/Gazelle tree, read Go monorepos. For C++, cross-compilation, accelerators or graph-selected integration, read C++ monorepos. For frontend/Node integration, read TypeScript and React. Load only relevant profiles.
- For topology, local orchestration, affected CI, caching/execution or releases, read monorepo scale. For scaffold research, read the pinned community examples and limitations.
Choose the incremental loop
Keep action reuse, Git-aware target selection, browser HMR and deployment separate. Bazel owns declared build/test/artifact dependencies; the frontend tool owns Fast Refresh, and orchestration owns service lifecycle and rollout. Start only the local app's needed closure, not every app. Preserve existing frameworks/package managers; prove one vertical slice before standardizing it. Measure cold/warm/no-op and representative edits before promising speed; adding Bazel does not prove a gain.
Find the owner before editing
Read the nearest BUILD file and any loaded macro. Discover existing labels rather
than guessing a binary, image or test target. Keep dependency, generated-source
and runtime-file edges explicit; deps and test data solve different problems.
Choose the graph for the question (query semantics, action graph):
| Question | Tool |
| Which tests/consumers exist or reach a file? | query, tests(...), bounded rdeps(...) |
Which select() branch/platform/dependency is active? | cquery with the failing build's configs |
| Which compiler, flags, inputs or outputs form the action? | aquery with those same configs |
query includes possible configuration branches; it is not proof a target ran.
aquery describes actions; it does not materialize their generated inputs.
Treat partial/error output as incomplete evidence, never an empty impact set.
Change and verify
- Reproduce a defect with a failing target or public-contract test. For build-only changes, use the failing analysis, compile, formatter or rule test as RED.
- Edit the owning source, generator input or macro. Regenerate derived BUILD files with the repository's generator; use its formatter and inspect the resulting diff. Preserve intentional visibility, compatibility, tags and data.
- For dependency changes, update the authoritative language manifest and/or root module as appropriate, then run the declared module-tidy/lock update. Commit the resulting metadata together. Honor CI's lockfile mode; repair stale locks locally instead of deleting them or relaxing CI. See lockfile modes.
- Build/test the smallest changed target in the relevant configuration, then its affected consumers. Shared macros, root dependency/toolchain/config changes need the wider repository-prescribed matrix. Platform-incompatible, manual and filtered integration targets are not passes; name the untested legs.
Diagnose without destroying the evidence
- Replay exact labels/configs and target/execution platforms with
--announce_rcand--verbose_failures. Add--sandbox_debugonly to the failing reproduction; inspect merged rc options and action inputs before changing flags. - Separate analysis/label errors, repository fetch/auth failures, toolchain or platform mismatch, sandbox/runfiles failures, cache transport and test failures. Fix the responsible layer rather than globally disabling sandboxing, warnings, sanitizers or compatibility constraints.
- For macOS symlink escapes, native-tool path resolution, sandbox setup cost or local VM execution through REAPI, read local execution.
- Keep repository-download caches, action caches and remote execution distinct. A remote cache is not a remote executor. Follow the checked-in cache/upload policy; do not copy private endpoints or credentials into tracked config.
- Preserve warm caches initially.
clean,expunge, deleting lockfiles or adding a fresh output base are not first-line fixes. If isolation becomes necessary, state the hypothesis and limit the reset to the owned reproduction. - To rerun tests, use scoped
--nocache_test_results; cached results otherwise remain valid for declared inputs. Report cached versus executed honestly. Output consumers may need explicit materialization with minimal-download caching.
Report the changed graph contract, exact targets/configs, results and skipped/blocked legs. Building an image does not authorize pushing or deploying it. For provenance and refresh limits, read research basis.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

