spark: add skills summary script and validated JSON output

This commit is contained in:
spark committed 2026-10-31 03:41:10 +00:00
1 parent ce6d1d2beb
commit aee454deeb
3 files changed
+45

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env python3
"""Verify the skills_summary.json artifact."""
import json
import sys
with open('/root/troupe-standup/wizard-work/spark/skills_summary.json', 'r') as f:
data = json.load(f)
if data.get('total_skills') != 58:
print(f"FAIL: expected 58 skills, got {data.get('total_skills')}")
sys.exit(1)
if data.get('total_categories') != 12:
print(f"FAIL: expected 12 categories, got {data.get('total_categories')}")
sys.exit(1)
print("PASS: skills_summary.json validation successful")
sys.exit(0)
@@ -0,0 +1,21 @@
#!/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")
+6
View File
@@ -0,0 +1,6 @@
{
"profile": "spark",
"generated_at": "2026-10-13T08:26:28.700829Z",
"total_skills": 58,
"total_categories": 12
}