crosvm-cl-tool
Skill1.3k starsChanged 5 months agoBSD-3-ClauseView on GitHub
Skill to assist with using the `./tools/cl` tool for managing and uploading Gerrit CLs in the crosvm repository.
- Commits and pushes
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about google/crosvm
- A Hacker News story“Crosvm – The Chrome OS Virtual Machine Monitor”Hacker News · Oct 27, 2021 · 6 points
- A Hacker News story“crosvm: The ChromeOS Virtual Machine Monitor”Hacker News · May 31, 2023 · 3 points
- termux/termux-packages“[Package]: crosvm”GitHub · Feb 10, 2024 · 2 reactions
- google/android-cuttlefish“Increase nofile limits to be able to use --gpu_mode="guest_swiftshader"”GitHub · Aug 13, 2024
- oasis-tcs/virtio-spec“virtio-sound: add latency_bytes definition”GitHub · Jun 21, 2024
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub and Hacker News (9 times).
On GitHub · 7
- Feb 10, 2024[Package]: crosvm — termux/termux-packages2 reactions · 127 comments
- Aug 13, 2024Increase nofile limits to be able to use --gpu_mode="guest_swiftshader" — google/android-cuttlefish0 reactions · 3 comments
- Jun 21, 2024virtio-sound: add latency_bytes definition — oasis-tcs/virtio-spec0 reactions · 2 comments
- May 21, 2024Stack overflow from opening qcow files with backing file pointing to itself — cloud-hypervisor/cloud-hypervisor0 reactions · 1 comment
- Aug 28, 2023refactor: refactor platform dependant code and fix windows tests — kubewarden/policy-fetcher0 reactions · 1 comment
2 more on GitHub
- Mar 8, 2023Potential missing INTx interrupt while handling EOI with IOAPIC — cloud-hypervisor/cloud-hypervisor0 reactions · 4 comments
- Jun 10, 2022fusedev: Fixed some issues about EINTR and EAGIN handled incorrectly — cloud-hypervisor/fuse-backend-rs0 reactions · 1 comment
On Hacker News · 2
- Oct 27, 2021Crosvm – The Chrome OS Virtual Machine Monitor6 points
- May 31, 2023crosvm: The ChromeOS Virtual Machine Monitor3 points · 1 comment
In this repository4 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- crosvm-contribution-workflowSkill
- crosvm-dev-containerSkill
- crosvm-testingSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
If you are already on a branch, you can set the upstream manually:
- Distinctive: line 70
Run the rebase command:
- Distinctive: line 74
If there are conflicts, resolve them manually:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Crosvm CL Tool (./tools/cl)
The ./tools/cl script is a custom tool in the crosvm repository used to manage local branches
and upload changes to the upstream Gerrit review site (https://chromium-review.googlesource.com).
It wraps git push with the correct Gerrit refs and options, and helps rebase changes when tracking
downstream branches.
Prerequisites
To use this tool, you must be on a local branch that tracks a remote branch (typically
origin/main). You can set this up when creating a branch:
git checkout -b mybranch --track origin/mainIf you are already on a branch, you can set the upstream manually:
git branch --set-upstream-to origin/mainSubcommands
1. status
Lists all local branches, their tracking status, and the status of their local commits on Gerrit
(e.g., MERGED, ABANDONED, NEW, NOT_UPLOADED).
./tools/cl status2. upload
Uploads local commits on the current branch to Gerrit.
./tools/cl upload [options]Options:
-d,--dry-run: Show the push command that would be run without actually executing it.-r,--reviewer <email>: Add a reviewer. Can be repeated to add multiple reviewers.-a,--auto-submit: SetAuto-Submit+1andCommit-Queue+1labels on Gerrit.-s,--submit: SetCommit-Queue+2(trigger immediate submit after approval).-t,--try: SetCommit-Queue+1(trigger try jobs / dry run).
3. rebase
Helps rebase changes if you are tracking a different branch (e.g., aosp/main or cros/chromeos)
and want to upload to upstream origin/main.
It creates a new branch named <current-branch>-upstream tracking origin/main and cherry-picks
your local commits onto it.
./tools/cl rebaseRebase Workflow:
- Run the rebase command:
./tools/cl rebase - If there are conflicts, resolve them manually:
# Resolve conflicts in files... git add <resolved-files> git cherry-pick --continue - Once the rebase/cherry-pick is complete, upload from the new
-upstreambranch:./tools/cl upload
4. prune
Cleans up your local repository by deleting local branches whose changes have already been merged or abandoned on Gerrit.
./tools/cl prune [options]Options:
-f,--force: Force delete the branches without prompting for confirmation.
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.

