28 lines
870 B
Python
28 lines
870 B
Python
#!/usr/bin/env python3
|
|
import json
|
|
from pathlib import Path
|
|
|
|
# Read the inventory
|
|
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)}")
|
|
|
|
# Check actual skill files in spark profile
|
|
skills_with_md = 0
|
|
skills_without_md = []
|
|
|
|
for skill in skills:
|
|
name = skill.get('name')
|
|
# Skills are organized by category in the profile
|
|
expected_path = Path(f'/root/.hermes/profiles/spark/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]) |