agentleFS
GoogleKnown publishergoogle/crosvm/.agents/skills/crosvm_contribution_workflow/SKILL.md

crosvm-contribution-workflow

Skill1.3k starsChanged 5 months agoBSD-3-ClauseView on GitHub

Skill to assist with the contribution workflow for crosvm. ALL agents making code changes MUST use this skill to run presubmit checks before committing.

Trending

Quiet this year.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the google/crosvm repository that our weekly crawl found: only 9 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about google/crosvm

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

2 more on GitHub

On Hacker News · 2

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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
  1. Distinctive:

    All commands must be executed from the repository root directory.

    line 14
  2. Distinctive:

    Usage: Use this during normal development iterations.

    line 23
  3. Distinctive:

    Usage: Run this as a minimum sanity check before creating a commit.

    line 29
  4. Distinctive:

    Usage: Run this when you have made changes that might affect multiple platforms or are more substantial.

    line 34
  5. Distinctive:

    Usage: Run this to quickly check all platforms (including riscv) for cross-platform changes.

    line 41
  6. Distinctive:

    Usage: Run this before final submission or for complex changes that require full validation.

    line 47
  7. Distinctive:

    Use one of the methods described above.

    line 65
  8. Distinctive:

    Length: No more than 50 characters, including tags.

    line 100
  9. Distinctive:

    Tip: If you do not know the bug number, ask the user for clarification.

    line 111

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Contribution Workflow Skill

This skill assists with the crosvm contribution workflow. ALL agents making code changes MUST use this skill to verify their changes (by compiling and running tests) before proceeding to commit or requesting review, even if the user does not explicitly ask to run tests.

Formatting and Presubmit Checks

All commands must be executed from the repository root directory.

Choosing the Right Test Method

Depending on the scope of your changes, choose the appropriate method to verify your work. The relevant checks must pass before you proceed to create a commit or request review.

  • ./tools/dev_container cargo check

    • Usage: Use this during normal development iterations.
    • Description: It attempts to compile the project with the default feature set. Fast and useful for quick feedback on syntax and basic type checking.
  • tools/dev_container ./tools/presubmit quick

    • Usage: Run this as a minimum sanity check before creating a commit.
    • Description: Performs a health check, runs unit tests on x86, and runs clippy lints.
  • tools/dev_container ./tools/presubmit

    • Usage: Run this when you have made changes that might affect multiple platforms or are more substantial.
    • Description: In addition to the quick checks, this performs cross-compilation and runs unit tests for other targets. Note: The default set does not cover all platforms (e.g., riscv).
  • tools/dev_container ./tools/presubmit clippy

    • Usage: Run this to quickly check all platforms (including riscv) for cross-platform changes.
    • Description: Runs clippy lints for all supported platforms. This is a relatively quick way to ensure your changes don't break compilation on any platform.
  • tools/dev_container ./tools/presubmit all

    • Usage: Run this before final submission or for complex changes that require full validation.
    • Description: This is the most thorough check. It runs all the above tests on all supported platforms, including end-to-end (e2e) tests using QEMU. Note: This takes a significant amount of time.

Commands

1. Auto-formatting

Automatically fixes code formatting. This also applies to Markdown files (.md) in addition to source code.

tools/dev_container ./tools/fmt

2. Running Checks

Use one of the methods described above. Example for quick check:

tools/dev_container ./tools/presubmit quick

[!TIP] If your tests fail on presubmit and you need to debug the tests individually or inspect the VM environment, please refer to the crosvm-testing SKILL.md.

Uploading Changes

Once your changes are verified and formatted, you can upload them to Gerrit for review.

We use a custom tool ./tools/cl for this. The basic command to upload is:

./tools/cl upload

[!TIP] For advanced usage of the CL tool, including rebasing downstream branches, checking CL status, and pruning old branches, see the specialized crosvm-cl-tool SKILL.md.

Commit Message Guidelines

Refer to these guidelines when writing commit messages for crosvm. You must only write a commit message AFTER ensuring all necessary tests pass.

1. Subject Line

  • Format: Starts with a tag representing the component, followed by a colon and space, then the description.
    • Example: devices: vhost: user: Add Connection type
  • Tags: Usually the name of the crate modified (e.g., devices:, base:). Use paths for specific components (e.g., devices: vhost: user:).
  • Length: No more than 50 characters, including tags.

2. Body

  • Content: State the motivation followed by the impact/action.
  • Wrapping: Text must be wrapped to 72 characters.

3. BUG Lines

  • Format: BUG=b:<bug number> for Google issue tracker, or BUG=None.
  • You can have multiple BUG lines.
  • Tip: If you do not know the bug number, ask the user for clarification.

4. TEST Lines

  • Format: Describe how the change was tested in free form.
  • You can have multiple TEST lines.

5. Change-Id

  • The gerrit commit message hook will insert this automatically if the commit-msg hook is installed.
  • Important: The Change-Id links the commit to a specific Gerrit change list (CL). Unless explicitly requested by the user, DO NOT change or remove the Change-Id when cherry-picking, rebasing, or amending commits.

Example Commit Message

devices: vhost: user: vmm: Add Connection type

This abstracts away the cross-platform differences:
cfg(any(target_os = "android", target_os = "linux")) uses a Unix
domain domain stream socket to connect to the vhost-user backend, and
cfg(windows) uses a Tube.

BUG=b:249361790
TEST=tools/presubmit all

Change-Id: I47651060c2ce3a7e9f850b7ed9af8bd035f82de6

End-to-End Contribution Journey

Here is the typical sequence of steps for contributing a change:

  1. Start a branch:
    git checkout -b my-feature-branch --track origin/main
  2. Make changes and implement your feature or fix.
  3. Format your code:
    tools/dev_container ./tools/fmt
  4. Run presubmit checks:
    tools/dev_container ./tools/presubmit quick
    (If tests fail and you need to debug individually or inspect the VM environment, refer to the crosvm-testing SKILL.md).
  5. Commit your changes (following the Commit Message Guidelines):
    git commit
  6. Upload the CL:
    ./tools/cl upload
    (Refer to the crosvm-cl-tool SKILL.md if you need to add reviewers, trigger try jobs, or rebase).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.