Guidance for AI coding agents working in qcom-deb-images — the repo that builds Debian/Ubuntu images and flashable assets for Qualcomm Linux boards.
This file complements, and does not replace, CONTRIBUTING.md and README.md. It is organised by activity: read the section that matches what you are about to do.
- debos recipes under
debos-recipes/build a Debian rootfs (…-image.yaml) and per-board flashable assets (…-flash.yaml). - Board-specific logic lives almost entirely in
debos-recipes/qualcomm-linux-debian-flash.yaml; helper shell lives underscripts/. - CI lives under
ci/(LAVA boot configs) and.github/workflows/.
- The
…-flash.yamlrecipe mixes three languages: YAML (debos actions), Gotext/template(the{{- … }}blocks that build the board list and expand per-board actions), and POSIX shell (the bodies ofaction: run). When editing, keep each construct in its own layer — template-expand values into shell variables at the top of arunbody, then keep the rest of the body in plain shell, as the existing actions do. - External inputs (boot binaries, CDT archives, and the
qcom-ptool/qcom-dtb-metadatatarballs) are pinned by URL andsha256sum, and verified at build time withsha256sum --strict -c -. Treat a URL and its checksum as a unit: never change one without regenerating the other from the actual bytes you downloaded. - Tools fetched as source (
qcom-ptool,qcom-dtb-metadata) are pinned to exact commits in the recipe. Changing a pin can change behaviour or data formats the recipe depends on — review what moved between the old and new commit before bumping. - Prefer making the recipe data-driven over special-casing: most boards are just another entry in the board list. Reach for new template/shell logic only when a board needs handling the existing fields cannot express.
- Follow the commit messages rules in
CONTRIBUTING.md: an
<area>: <description>subject naming the path-like area touched (e.g.debos/flash: add <board>), with!before the colon for breaking changes (debos/flash!: …). Don't use Conventional Commits type prefixes such asfeat,fixorchore. - Use the body to explain why the change is needed, not to restate the diff; wrap lines at 72 characters, which a linter checks.
- Keep each change focused; split independent changes into separate commits.
- AI attribution. When an agent helped produce a change, add an
Assisted-by:trailer per CONTRIBUTING.md, one line per tool, in the formatAssisted-by: AGENT_NAME:MODEL_VERSION [TOOL…]. - DCO. Only a human may add
Signed-off-by:to certify the DCO. Never add it on their behalf.
Task-specific playbooks live under skills/ in the portable SKILL.md format
(a name + description frontmatter and Markdown instructions), modeled on the
qcom-linux-skills catalog
so any agent that understands SKILL.md (Claude Code, Codex, Cursor, …) can use
them. Each skill's description carries the phrases that should trigger it —
invoke a skill by name, or just describe the task.