Skip to content

Commit 57d46bc

Browse files
James Zhuclaude
andcommitted
Fix skill duplication in list output
Skills were appearing multiple times because the same skill directory was being stored with different keys based on the full source path. Changed SkillParser to use the skill directory name instead of the full relative path for generating skill keys, preventing duplicates. Before: keys like 'owner/repo:plugins/subdir/skill' and 'owner/repo:skill' After: keys like 'owner/repo:skill' (using directory name only) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9a2fd05 commit 57d46bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code_assistant_manager/fetching/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def parse_from_file(
8282

8383
# Create skill entity
8484
skill = Skill(
85-
key=self.create_entity_key(repo_config, source_directory),
85+
key=self.create_entity_key(repo_config, directory),
8686
name=meta.get("name", directory),
8787
description=meta.get("description", ""),
8888
directory=directory,

0 commit comments

Comments
 (0)