浏览代码

Merge pull request #258

Siqi Chen 5 天之前
父节点
当前提交
11e76e659f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/validate-package.py

+ 1 - 1
scripts/validate-package.py

@@ -27,7 +27,7 @@ yaml_metadata = require_match(
     "SKILL.md must begin with YAML metadata",
 ).group(1)
 
-for unsupported_field in ("compatibility:", "allowed-tools:"):
+for unsupported_field in ("version:", "compatibility:", "allowed-tools:"):
     if re.search(rf"(?m)^{re.escape(unsupported_field)}", yaml_metadata):
         raise SystemExit(f"Remove unsupported YAML field: {unsupported_field[:-1]}")