#!/usr/bin/env python3 """Fixed verification script that properly locates skills by category.""" import json from pathlib import Path inv_path = Path('/root/.hermes/wizard-outputs/spark/skills_inventory.json') data = json.loads(inv_path.read_text()) skills = data.get('skills', []) print(f'Total skills in inventory: {len(skills)}') skills_with_md = 0 skills_without_md = [] for skill in skills: name = skill.get('name') category = skill.get('category', 'unknown') # Fix: actual path includes category expected_path = Path(f'/root/.hermes/skills/{category}/{name}/SKILL.md') if expected_path.exists(): skills_with_md += 1 else: skills_without_md.append((name, category, str(expected_path))) print(f'Skills with actual SKILL.md files: {skills_with_md}') print(f'Skills missing SKILL.md files: {len(skills_without_md)}') if skills_without_md: print('Missing skills:') for name, cat, path in skills_without_md[:20]: print(f' {name} (category: {cat})') if len(skills_without_md) > 20: print(f' ... and {len(skills_without_md) - 20} more')