five-part-spec: refuses a spec that left out a label
A template and a shell script that refuses a five-part spec with a missing label. For anyone handing work to a coding agent or to another person.
About it
A spec can leave out the files, the interfaces or the check. five-part-spec is a template, the rules the receiving agent follows, and a shell script that refuses a missing label and can print the verification line. The five parts are the objective, the files, the interfaces, the constraints and the verification. It refuses the incomplete example with exit 6. Limits: The check looks for the five labels and nothing more, so a spec whose INTERFACES part is one stand-in word still passes. It needs a POSIX shell (sh, bash, zsh or dash), and nothing needs installing. A label written mid-sentence, indented with spaces, as a heading with three or more # marks, as a list item, in bold, or misspelled does not count. The template passes before you fill it in, because its five labels are already there. A verification line that passes is only as good as the tests it runs. For a spec with no VERIFICATION label, --verify-line prints an empty line and exits 0. Door 52 of 100 Doors.