ccheney/robust-skills/bazel

Claude Code and agent skill by ccheney/robust-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Configure and troubleshoot Bazel builds. Use when editing BUILD or MODULE.bazel files, writing Starlark, diagnosing target, cache, or CI failures, or adopting or upgrading Bazel.

Install

npx vskill@latest install ccheney/robust-skills/bazel

SKILL.md

Bazel Monorepos

Make build changes against the actual target graph and pinned Bazel/ruleset versions. Examples cover Bazel 9.2.0; they are not an upgrade instruction. The user's explicit instructions take precedence over this skill's guidelines.

Establish the relevant context

Use the affected targets, error output, or requested build outcome as input. Check .bazelversion, relevant module declarations, BUILD files, and the configuration involved in the task. Read other repository configuration only when it affects that question.

QuestionTool
Target dependencies, reverse dependencies, pathsbazel query
Selected flags, platforms, toolchains, or select() branchesbazel cquery with the failing invocation's configuration
Actual commands, inputs, outputs, toolsbazel aquery
External modules, versions, generated repositoriesbazel mod
Cache misses or execution performanceExecution logs, profiles, BEP

If the failing target or invocation cannot be inferred, ask for it and continue independent inspection. Do not invent repository pins or remote-cache endpoints.

Preserve the build contract

  • Declare direct inputs, dependencies, tools, and runtime data on the owning target. Use runfiles APIs for runtime resources.
  • Keep package boundaries and visibility deliberate. Neither one target per file nor one per service is a universal template.
  • For Bazel 9, use Bzlmod and explicit external language-rule loads. For older repositories, follow version-matched rules until an upgrade is requested.
  • Diagnose missing inputs or configuration differences before using clean --expunge or disabling sandboxing; those can hide the cause.
  • Validate affected targets and configurations. Reserve graph-wide builds/tests for graph-wide impact or required repository checks.

Deliver the requested patch or diagnosis with relevant target labels, evidence, and unresolved configuration dependencies. Finish checks needed for that outcome without expanding a local fix into a repository migration.

References

Load only the topic needed; use section headings within longer references.

TaskReference
Packages, labels, dependencies, visibility, BUILD styleBUILD-GRAPH.md
Modules, extensions, lockfiles, overrides, WORKSPACE migrationBZLMOD.md
rc files, selects, platforms, toolchains, transitionsCONFIGURATION.md
Query syntax and build failure diagnosisQUERIES-DEBUGGING.md
Sandboxing, runfiles, caching, remote executionHERMETICITY-CACHING.md
CI gates, affected targets, profiles, performanceCI-PERFORMANCE.md
Macros, rules, providers, aspects, repository rulesSTARLARK.md
Requested adoption or repository consolidationADOPTION.md
Compact command or label lookupCHEATSHEET.md

Use version-matched Bazel docs, ruleset release notes, and the Bazel Central Registry when bundled guidance does not establish compatibility.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
60
Repository forks
3
7-day trend score
21

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 13 Oct 2026, 26 days ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ccheney/robust-skills/bazel/badge)](https://verified-skill.com/skills/ccheney/robust-skills/bazel)

Something wrong with this skill or its page? Tell us.