Scripts
The scripts descriptor: conventions for repository scripts.
The scripts descriptor defines the repository area for repository
scripts used by modular makefiles, CI workflows, and local developer
tooling. Scripts hold behaviour that is too large or awkward to keep directly
inside a make recipe, while orchestration decisions stay with the caller.
This page documents the convention. The scripts reposurfacedsc itself runs are documented separately, under Repository scripts.
When to introduce it
Add a scripts directory when a repository’s make modules or workflows need
deterministic command helpers with clear entry points.
Rules
- Keep scripts narrow, deterministic, and explicit about inputs and outputs.
- Take component lists, paths, and modes from arguments or environment variables, not from hidden discovery or ambient repository state.
- Exit nonzero when a required check fails.
- Print clear
skip:messages when a capability is intentionally unavailable. - Keep generated output paths explicit.
- Keep dependency installation and long-running setup out of ad hoc scripts; keep networked setup separate from offline validation.
Source: descriptors/scripts/README.md
Revised: December 2026.