Skip to content

Latest commit

 

History

History
64 lines (54 loc) · 3.42 KB

AGENTS.md

File metadata and controls

64 lines (54 loc) · 3.42 KB

AGENTS.md

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.

Orienting yourself

  • 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 under scripts/.
  • CI lives under ci/ (LAVA boot configs) and .github/workflows/.

Working with debos recipes

  • The …-flash.yaml recipe mixes three languages: YAML (debos actions), Go text/template (the {{- … }} blocks that build the board list and expand per-board actions), and POSIX shell (the bodies of action: run). When editing, keep each construct in its own layer — template-expand values into shell variables at the top of a run body, 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-metadata tarballs) are pinned by URL and sha256sum, and verified at build time with sha256sum --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.

Writing commit messages

  • 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 as feat, fix or chore.
  • 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 format Assisted-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.

Using project skills

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.