Skip to content

Commit d8482d3

Browse files
James Zhuclaude
andcommitted
Fix skill installation and clean up duplicates
- Fix skill key lookup to accept both stored keys and install key format from list command - Fix source_directory calculation when skills_path is set in repository config - Remove duplicate skills from old jeremylongshore/claude-code-plugins-plus repository - Update repository config to use correct jeremylongshore/claude-code-plugins-plus-skills 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b00b850 commit d8482d3

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

code_assistant_manager/fetching/parsers.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ def parse_from_file(
4848
except ValueError:
4949
source_directory = directory
5050

51+
# If skills_path is set, source_directory should be relative to skills_path
52+
if repo_config.path:
53+
skills_path = Path(repo_config.path)
54+
try:
55+
# Try to make source_directory relative to skills_path
56+
full_skills_path = repo_root / skills_path
57+
source_directory = str(skill_dir.relative_to(full_skills_path))
58+
except ValueError:
59+
# If we can't make it relative, keep the full path but warn
60+
logger.warning(f"Skill directory {skill_dir} is not under skills_path {repo_config.path}")
61+
5162
# Create skill entity
5263
skill = Skill(
5364
key=self.create_entity_key(repo_config, directory),

0 commit comments

Comments
 (0)