Files

21 lines
721 B
Python

#!/usr/bin/env python3
"""Create a JSON summary of the Hermes skills inventory."""
import json
# Read the skills inventory
with open('/root/.hermes/wizard-outputs/spark/skills_inventory.json', 'r') as f:
data = json.load(f)
# Create summary
summary = {
'profile': data.get('profile', 'unknown'),
'generated_at': data.get('generated_at', 'unknown'),
'total_skills': len(data.get('skills', [])),
'total_categories': len(data.get('categories', {}))
}
# Write output
with open('/root/troupe-standup/wizard-work/spark/skills_summary.json', 'w') as f:
json.dump(summary, f, indent=2)
print(f"Created skills_summary.json: {summary['total_skills']} skills in {summary['total_categories']} categories")