qemu-kernel-build
Skill57 starsChanged 4 months agoMITView on GitHub
Use for building Linux kernels for QEMU boot testing, including defconfig selection, cross compile variables, Docker or host toolchains, Image, DTB, modules, initramfs inputs, output hashes, and provenance records.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- qemu-agent-feedbackSkill
- qemu-board-modelingSkill
- qemu-boot-runSkill
- qemu-buildSkill
- qemu-debugSkill
- qemu-imageSkill
- qemu-linux-bootSkill
- qemu-model-verificationSkill
- qemu-peripheral-modelingSkill
- qemu-qtestSkill
- qemu-register-extractionSkill
- qemu-rst-documentationSkill
- qemu-tcg-backendSkill
- qemu-tcg-frontendSkill
- qemu-uboot-buildSkill
- qemu-workflowSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Before changing source or mutable artifacts, record the workspace root, revision, git status --short, pre-existing changes, goal, scope, …
- Very specific: line 31
Keep QEMU builds under source-root builds/build-<target>/.
- Distinctive: line 54
Use the kernel tree's preferred commands.
- Distinctive: line 62
If Docker is used, record image, mounts, user, working directory, and the command run inside the container.
- Distinctive: line 66
Do not mix outputs from different kernel revisions without recording it.
- Very specific: line 67
Keep the kernel build tree, installed modules, dependency packages, and produced binaries under .oh-my-qemu/<task-slug>/output/.
- Very specific: line 70
Keep build logs under .oh-my-qemu/<task-slug>/logs/.
- Distinctive: line 71
If the kernel boots but modules fail to load, verify kernel release and module tree before changing QEMU.
≈ “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
QEMU Kernel Build
Audit workflow
For non-trivial workspace writes, use a stable
.oh-my-qemu/<task-slug>/ directory and create only needed entries:
.oh-my-qemu/<task-slug>/
├── audit.md # Baseline, scope, decisions, evidence, verification, and gaps
├── commands.md # Redacted commands, working directories, and results
├── logs/ # Decisive build, test, runtime, or diagnostic logs
├── scripts/ # Temporary scripts, probes, parsers, and harnesses
└── output/ # Generated deliverables, dependencies, and non-QEMU binariesBefore changing source or mutable artifacts, record the workspace root,
revision, git status --short, pre-existing changes, goal, scope, and
acceptance checks in audit.md. Log exact redacted commands and results in
commands.md; record revisions, configurations, tool versions, and hashes when
they affect reproducibility. Separate observations from inferences and edit
source only when requested.
Keep QEMU builds under source-root builds/build-<target>/; put third-party
dependencies and non-QEMU binaries in task output/. Before writing audit
artifacts or configuring QEMU in a Git worktree, add .agents/,
.oh-my-qemu/, and builds/ to the repository-local file from
git rev-parse --git-path info/exclude; preserve existing entries and avoid
duplicates. Never stage or commit those directories. At handoff, verify them
absent from git status --short. Report the task directory and unresolved gaps.
Build Flow
Record and verify:
- kernel source path, revision, and dirty state;
- architecture, cross compiler prefix, compiler path, and version;
- defconfig and any config fragment or manual
.configchange; - output directory under
.oh-my-qemu/<task-slug>/output/, build command, and parallelism; - DTB names and destination paths;
- module install path if modules are needed;
- initramfs or rootfs source if the boot command depends on it.
Command Shape
Use the kernel tree's preferred commands. Typical Linux patterns are:
make ARCH=<arch> O=<task-output>/linux-<arch> <defconfig>
make ARCH=<arch> O=<task-output>/linux-<arch> \
CROSS_COMPILE=<prefix> -j$(nproc) Image modules dtbsIf Docker is used, record image, mounts, user, working directory, and the command run inside the container.
Output Rules
- Do not mix outputs from different kernel revisions without recording it.
- Keep the kernel build tree, installed modules, dependency packages, and
produced binaries under
.oh-my-qemu/<task-slug>/output/. - Hash the exact files passed to QEMU or packed into an image.
- Keep build logs under
.oh-my-qemu/<task-slug>/logs/. - If the kernel boots but modules fail to load, verify kernel release and module tree before changing QEMU.
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.

