Files

25 lines
917 B
Python

#!/usr/bin/env python3
"""Quick utility to count verified skills from skills_inventory.json.
A skill is "verified" if it has has_skill_md: true.
"""
import json
from pathlib import Path
def count_verified_skills():
inv_path = Path("/root/.hermes/wizard-outputs/spark/skills_inventory.json")
if inv_path.exists():
data = json.loads(inv_path.read_text())
skills = data.get("skills", [])
verified = [s for s in skills if s.get("has_skill_md") == True]
print(f"Verified skills: {len(verified)}/{len(skills)}")
by_category = {}
for s in verified:
cat = s.get("category", "uncategorized")
by_category.setdefault(cat, []).append(s["name"])
for cat, names in sorted(by_category.items()):
print(f" {cat}: {len(names)} skills")
return len(verified)
return 0
if __name__ == "__main__":
count_verified_skills()