This script prepares your environment for an AI-assisted Bzlmod migration.
WORKSPACE file.Run the script from the root of your project:
python3 tools/code-agent/setup_bzlmod_migration.py
The script is interactive and will prompt you for a build target to use for the migration. It will then generate two files in your current directory:
GEMINI.md (or a custom name): An instruction file with a detailed prompt for the AI agent.check_repo.sh: A helper script for the AI to query your legacy WORKSPACE setup.check_repo.sh works by running ./check_repo.sh <repo name>, replacing <repo name> with a repository you use (e.g., bazel_skylib).