Validate Module
Testing & Qualityvalidate-moduleValidate Module is an Agent Skill for testing & quality published in the bazelbuild/bazel-central-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Validates module configuration and updates source integrity in the Bazel Central Registry (BCR). Use when running bcr_validation checks, updating integrity with update_integrity, or verifying overlay and patch consistency for module versions.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/bazelbuild/bazel-central-registry/blob/HEAD/.agent/skills/validate_module/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/validate-module, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Validate Module
This skill provides the exact procedure for validating and iterating on a module version in the Bazel Central Registry (BCR).
Procedure
Copy this checklist and track progress:
- Step 1: Run validation checks
- Step 2: Update source integrity
- Step 3: Check overlay and patch consistency
1. Validate
Run the local BCR validation tool:
bazel run //tools:bcr_validation -- --check {module_name}@{version}
2. Update Integrity
Generate or update the SHA-256 integrity hash:
bazel run //tools:update_integrity -- {module_name} --version={version}
3. Overlay vs Patches
- overlay/: Add or overwrite files. Requires
bazel_compatibility >= 7.2.1inMODULE.bazel. - patches/: Modify existing upstream source files using
.patchfiles. - README.md: Add a README.md if the purpose of overlay or patch files are not obvious.
4. Consistency Check
- If the source archive doesn't contain a MODULE.bazel,
modules/{module_name}/{version}/MODULE.bazelshould not exist. - Otherwise, ensure that
modules/{module_name}/{version}/MODULE.bazelmatches the source archive's version exactly. Use an overlay or patch if they differ.