test(issue-42): .claude/skills 링크 검사가 두 로컬 배치를 모두 받는다 #47

Merged
Godopu merged 3 commits from fix/issue-42-skills-link into main 2026-10-04 04:54:59 +00:00
Showing only changes of commit e1ed2708d8 - Show all commits
+10 -1
View File
@@ -238,7 +238,16 @@ def test_frontmatter_name_matches_directory(skill):
def test_claude_skills_link_resolves_to_agents_skills():
""".claude/skills is local (git-ignored) and comes in two layouts: one link
to .agents/skills, or a directory with one link per skill. Either way each
skill Claude Code loads must be the .agents/skills one."""
link = REPO / ".claude" / "skills"
if not link.exists():
pytest.skip(".claude/skills is untracked; absent in a worktree")
assert link.resolve() == SKILLS.resolve()
if link.is_symlink():
assert link.resolve() == SKILLS.resolve()
return
for skill in SKILL_NAMES:
entry = link / skill
assert entry.exists(), f".claude/skills/{skill} is missing"
assert entry.resolve() == (SKILLS / skill).resolve(), f".claude/skills/{skill} -> {entry.resolve()}"