Enforce LF-only SKILL.md frontmatter
Check instruction packages / check (push) Successful in 6s
Check instruction packages / check (pull_request) Successful in 5s

The contract stated an LF rule the checker only enforced by accident:
CRLF on a single line, a lone CR, a Unicode line separator, or CRLF on a
delimiter passed. Require LF delimiters and LF-only frontmatter lines, and
test each case. Every package in every tag v0.1.0-v0.14.0 still passes.
The contract now names the required frontmatter keys and shows runnable
check and pack commands.

Refs #20

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Opus 5.5 committed 2026-11-25 19:01:50 -05:00
1 parent f872770dc9
commit 45eff20ecb
3 files changed
+38 -10

No files matched your search

@@ -2,11 +2,18 @@
An instruction package is one closed directory: `SKILL.md`, optional declared
`.md`/`.txt` resources, and the `relayview-skill.json` sidecar.
`python3 -m tools.packages check <package>` enforces this contract and prints
the package identity; `python3 -m tools.packages pack <package> <zip>` builds
the release archive and prints its SHA-256. RelayView's owner applies its own
admission check, which stays authoritative: a package that passes here can
still be refused by an owner that does not yet support its role/step pair.
`tools/packages.py` enforces this contract. Its `check` action prints a
package's identity and its `pack` action builds the release archive and prints
its SHA-256, for example:
```sh
python3 -m tools.packages check packages/planner-scope
python3 -m tools.packages pack packages/planner-scope dist/planner-scope.zip
```
RelayView's owner applies its own admission check, which stays authoritative:
a package that passes here can still be refused by an owner that does not yet
support its role/step pair.
## Role and step
@@ -59,7 +66,8 @@ lower-case 64-hex SHA-256 digests. Any additional field — such as `tools`,
## `SKILL.md` frontmatter
`SKILL.md` opens with a frontmatter block between `---` lines. The block
allows only these keys, each at most once:
requires `name`, `description`, and `metadata`, and allows only these keys,
each at most once:
```yaml
name: <the directory name: hyphen-separated lower-case letters and digits, at most 64 characters>
@@ -74,8 +82,9 @@ metadata:
makes the package manual-only. Every key other than `metadata` is written
`key: value` with a non-empty value. `metadata:` stands alone on its line,
followed by exactly those two keys, each indented two spaces. The block has no
blank or comment lines, and its lines end in LF, not CRLF. Any other key, such
as `tools` or `allowed-tools`, fails the check.
blank or comment lines. The block and its `---` delimiters end each line with
LF alone: CR, CRLF, and Unicode line separators fail the check. Any other key,
such as `tools` or `allowed-tools`, fails the check.
## Identity and archive