Affected file: sk/agents-md/skills/skill-scanner/scripts/scan_skill.py
What I hit
I ran the scanner in a Python 3.8 setup and it crashed before producing scan results.
I’m thinking this is due to:
is_internal = target.is_relative_to(skill_dir.resolve())
which is not available on older interpreter versions.
Repro
- Execute the script under Python 3.8.
- Scan a workspace containing a symlink case.
- The script exits with
AttributeError.
Expected
The scanner should run on legacy supported versions without crashing on path checks.
Actual
One API call can fail and abort the scan flow.
Suggested fix
Use .resolve() + relative_to with exception handling for Python compatibility.
Affected file:
sk/agents-md/skills/skill-scanner/scripts/scan_skill.pyWhat I hit
I ran the scanner in a Python 3.8 setup and it crashed before producing scan results.
I’m thinking this is due to:
is_internal = target.is_relative_to(skill_dir.resolve())which is not available on older interpreter versions.
Repro
AttributeError.Expected
The scanner should run on legacy supported versions without crashing on path checks.
Actual
One API call can fail and abort the scan flow.
Suggested fix
Use
.resolve()+relative_towith exception handling for Python compatibility.