Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/skillport/modules/skills/internal/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def validate_skill_record(
description = skill.get("description", "")
lines = skill.get("lines", 0)
path = skill.get("path", "")
dir_name = path.rsplit("/", 1)[-1] if path else ""
dir_name = Path(path).name if path else ""
Copy link

Copilot AI Dec 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing test suite has comprehensive coverage for the validate_skill_record function, but lacks test cases for Windows-style paths. Consider adding a test case that validates the name-directory matching works correctly with Windows paths like 'C:\skills\test-skill' to ensure the cross-platform fix is tested.

Copilot uses AI. Check for mistakes.

# A1/A2: Key existence checks (only when meta is provided)
if meta is not None:
Expand Down