OpenParable
Skip to content
← Back to skills

Validate Module

Testing & Quality
validate-module

Validate 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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
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.1 in MODULE.bazel.
  • patches/: Modify existing upstream source files using .patch files.
  • 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.bazel should not exist.
  • Otherwise, ensure that modules/{module_name}/{version}/MODULE.bazel matches the source archive's version exactly. Use an overlay or patch if they differ.