Compare commits

...

1 Commits

Author SHA1 Message Date
Timothy f748187391 fix: posix only permission check for skill 2026-03-31 19:06:23 -07:00
+4 -2
View File
@@ -7,6 +7,7 @@ tooling, CI gates, and hive skill doctor.
from __future__ import annotations
import os
import stat
from dataclasses import dataclass, field
from pathlib import Path
@@ -133,10 +134,11 @@ def validate_strict(path: Path) -> ValidationResult:
if not frontmatter.get("license"):
warnings.append("No 'license' field — consider adding a license (e.g. MIT, Apache-2.0).")
# 11. Scripts in scripts/ exist and are executable
# 11. Scripts in scripts/ exist and are executable (POSIX only —
# Windows does not use POSIX permission bits)
base_dir = path.parent
scripts_dir = base_dir / "scripts"
if scripts_dir.is_dir():
if scripts_dir.is_dir() and os.name != "nt":
for script_path in sorted(scripts_dir.iterdir()):
if script_path.is_file():
if not (script_path.stat().st_mode & (stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)):