INNER CODE UNIT · Python
resolved
zhinkgit/embeddedskills · .github/maintenance/repo_checks.py:121
resolved = (path.parent / target).resolve()
try:
resolved.relative_to(root.resolve())
except ValueError:
errors.append(
f"{path.relative_to(root)}: local link escapes repository: {target}"
)
continue
if not resolved.exists():
line = text.count("\n", 0, match.start()) + 1
errors.append(
f"{path.relative_to(root)}:{line}: local link does not exist: {target}"
)
return errors
def skill_directories(root: Path) -> list[str]:
return sorted(