e2e-to-bazel
Skill948 starsChanged 7 months agoApache-2.0View on GitHub
Converts end-to-end (e2e) test targets or paths to `bazel run` commands for `heir-opt`. Use when you need to convert an e2e test target (where flags are defined in the BUILD file) to a shell command whose flags can be modified for further analysis and debugging.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dump-intermediate-irSkill
- lit-to-bazelSkill
- reproduce-failureSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
Source file mapping: If a source file is provided, it searches for heir_opt targets that depend on it.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
E2E To Bazel
Overview
This skill guides the agent in using the e2e_to_bazel tool to convert e2e test
targets or paths to executable commands.
Usage
Converting a Test Target or Path
To convert an e2e test target, directory, or source file to a bazel run
command, use the following command recipes:
bazel run //third_party/heir/scripts:e2e_to_bazel -- {target_or_path}Replace {target_or_path} with the test target (e.g.,
//tests/Examples/lattigo/ckks/mnist:mnist_test), directory, or source file
path.
Gotchas
- Blaze Query Dependency: The tool relies on
bazel queryto extract attributes. This requires a workingblazeenvironment and may be slow for the first run. - Workspace State: It requires that the workspace is in a state where
bazel querycan evaluate the targets. - Source file mapping: If a source file is provided, it searches for
heir_opttargets that depend on it.
Copy this checklist and track progress:
- [ ] Step 1: Identify the e2e test target, directory, or file to convert.
- [ ] Step 2: Run the `e2e_to_bazel` tool on it.
- [ ] Step 3: Inspect the generated command or run it.
- [ ] Step 4: Verify execution results.<!-- mdformat global-off -->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.

