State every enforced frontmatter and layout rule in the contract
Add the frontmatter placement, two-space indent, no blank or comment lines, and real-directory rules; move the example's comment out of its value line so the example passes; name the code-point sort; and note that archive digests depend on a POSIX build host. Split the frontmatter line check into a named condition. Refs #20 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1e9e46bc09
commit
ddf95ded04
2 files changed
+18
-10
No files matched your search
+2
-1
@@ -144,7 +144,8 @@ def check_package(path):
|
||||
top_keys.append(key)
|
||||
in_metadata = key == "metadata"
|
||||
# metadata stands alone; every other key carries an inline value.
|
||||
if (line != "metadata:") if in_metadata else not re.fullmatch(r"[a-z-]+: .+", line):
|
||||
valid_line = line == "metadata:" if in_metadata else re.fullmatch(r"[a-z-]+: .+", line)
|
||||
if not valid_line:
|
||||
_fail(f"{path}: unsupported skill metadata")
|
||||
else:
|
||||
_fail(f"{path}: unsupported skill metadata")
|
||||
|
||||
Reference in new issue
Block a user