Files
troupe-standup/wizard-work/spark/verify_skills.py
T

25 lines
736 B
Python

#!/usr/bin/env python3
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')
expected_path = Path(f'/root/.hermes/skills/{name}/SKILL.md')
if expected_path.exists():
skills_with_md += 1
else:
skills_without_md.append(name)
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 (first 10):', skills_without_md[:10])