Skip to content

Commit 83f3990

Browse files
James Zhuclaude
andcommitted
Fix skill parser to skip generated cam_ duplicate skills
- Skip skills whose directory names start with 'cam_' as these are generated/cache duplicates - Remove existing cam_ skills from the database - Results in cleaner skill listings with no duplicates 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d8482d3 commit 83f3990

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

code_assistant_manager/fetching/parsers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ def parse_from_file(
2626

2727
skill_dir = file_path.parent
2828

29+
# Skip generated/cache skills that start with 'cam_'
30+
if skill_dir.name.startswith('cam_'):
31+
logger.debug(f"Skipping generated skill directory: {skill_dir.name}")
32+
return None
33+
2934
# Parse metadata from SKILL.md
3035
meta = self._parse_metadata(file_path)
3136

0 commit comments

Comments
 (0)