qemu-rst-documentation
Skill57 starsChanged 4 months agoMITView on GitHub
Use for writing or updating QEMU reStructuredText documentation, including board and machine docs, system docs, device docs, developer docs, boot command examples, feature status tables, Sphinx index/toctree updates, and docs build validation.
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-kernel-buildSkill
- qemu-linux-bootSkill
- qemu-model-verificationSkill
- qemu-peripheral-modelingSkill
- qemu-qtestSkill
- qemu-register-extractionSkill
- qemu-tcg-backendSkill
- qemu-tcg-frontendSkill
- qemu-uboot-buildSkill
- qemu-workflowSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 9 are distinctive, and 6 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.
6
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
Before writing, inspect the checked-out QEMU tree:
- Distinctive: line 62
Do not invent support status from code names alone.
- Distinctive: line 99
Keep command lines copy-pasteable and line-wrapped consistently with nearby docs.
- Distinctive: line 103
Avoid promising hardware accuracy from a boot smoke alone.
- Very specific: line 104
Avoid project-local paths.
- Distinctive: line 109
Use inline literals with double backticks.
- Very specific: line 110
Use literal blocks with :: for shell commands unless nearby docs prefer ..
- Very specific: line 111
Do not use Markdown fences in .rst.
- Distinctive: line 112
Keep toctree entries sorted or grouped according to the local index.
- Very specific: line 113
Add the new page to the relevant index.rst or toctree.
- Distinctive: line 114
Do not add labels, cross references, or substitutions unless you verify they resolve in the local docs build.
- Distinctive: line 118
Run the narrowest available docs gate from the checked-out QEMU tree:
- Distinctive: line 124
If the build directory is not configured for docs, inspect available targets first:
≈ “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 RST Documentation
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.
Base every support statement and command example on inspected implementation, tests, or runtime evidence. Do not create audit artifacts for a simple typo or one-line fix.
QEMU upstream boundary
QEMU's official GitLab and mailing lists are upstream project channels. A
patch becomes an upstream contribution when sent to the mailing-list recipients
selected through MAINTAINERS; do not prepare or send agent-generated patches
for that submission. Local branches, commits, patch files, pushes, and pull
requests are not by themselves QEMU upstream contributions. Perform those Git
actions only when requested and follow the workspace's Git policy.
Source-First Rule
Before writing, inspect the checked-out QEMU tree:
- nearby docs in the same directory, such as
docs/system/<arch>/ordocs/devel/; - the relevant
index.rstor toctree file; - existing board or machine docs for tone, section order, and command style;
MAINTAINERSentries when adding a new documented area;- the implementation, tests, and boot logs that prove the documented behavior.
Do not invent support status from code names alone. Document only behavior that is implemented, verified, or explicitly marked as a limitation.
Board or Machine Page Shape
For a new board or machine document, prefer this structure unless nearby docs use a clearer local convention:
<Board or Machine Name>
=======================
Overview
--------
Supported devices
-----------------
Boot options
------------
Direct Linux boot
~~~~~~~~~~~~~~~~~
Firmware boot
~~~~~~~~~~~~~
Known limitations
-----------------
Running tests
-------------Include only sections that carry useful information. If the board has no firmware path, do not add a placeholder firmware section.
Content Rules
- Name QEMU machine types exactly as the command line uses them.
- Keep command lines copy-pasteable and line-wrapped consistently with nearby docs.
- Show serial console choices explicitly when boot logs depend on a specific UART or chardev.
- Separate supported hardware from known stubs, unimplemented regions, and compatibility workarounds.
- For boot examples, include enough
-machine,-cpu, memory, storage, kernel, firmware, DTB, initrd, and console options for reproduction. - Avoid promising hardware accuracy from a boot smoke alone; tie claims to qtest, trace, or workload evidence when available.
- Avoid project-local paths. Use placeholders such as
/path/to/Imageor variables documented in the surrounding text.
RST Rules
- Match the heading hierarchy and adornment style used by nearby QEMU docs.
- Use inline literals with double backticks.
- Use literal blocks with
::for shell commands unless nearby docs prefer.. code-block::. - Do not use Markdown fences in
.rst. - Keep toctree entries sorted or grouped according to the local index.
- Add the new page to the relevant
index.rstor toctree; a standalone file is not enough. - Do not add labels, cross references, or substitutions unless you verify they resolve in the local docs build.
Validation
Run the narrowest available docs gate from the checked-out QEMU tree:
ninja -C builds/build-docs docsIf the build directory is not configured for docs, inspect available targets first:
ninja -C builds/build-docs -t targets | rg 'docs|sphinx'At minimum, run git diff --check and inspect the rendered RST mentally for heading hierarchy, toctree inclusion, literal block indentation, and overlong command examples. Store any docs build logs under .oh-my-qemu/<task-slug>/logs/ when the work is part of a larger QEMU task.
Report
When done, report:
- docs files changed;
- index/toctree updates;
- source evidence used for feature and boot claims;
- docs build or fallback validation;
- any intentionally undocumented or unverified behavior.
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.

