mirror of
https://github.com/alirezarezvani/claude-skills.git
synced 2026-11-27 22:48:39 +00:00
Harness in scripts/evals/ built from the v2.14 audit evals: trigger cases for all 384 unique skills (13 hand-written, the rest drafted with Claude), 6 behaviour cases with fixtures and a blind JSON-schema grader, a date rotation (15 skills/night, $10 cap), and a scoreboard that flags regressions. The workflow stays off until ANTHROPIC_API_KEY and SKILL_EVALS_ENABLED are set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L8KYFLywRRE8eU2sVPtJAL
40 lines
1.4 KiB
Python
40 lines
1.4 KiB
Python
#!/usr/bin/env python3
|
|
"""List every installable skill and its eval coverage (trigger cases, behaviour cases).
|
|
|
|
Usage:
|
|
python3 scripts/evals/inventory.py # coverage summary
|
|
python3 scripts/evals/inventory.py --missing # skills with no trigger cases
|
|
python3 scripts/evals/inventory.py --json # full inventory as JSON
|
|
"""
|
|
import argparse
|
|
import json
|
|
|
|
from common import inventory, load_cases
|
|
|
|
|
|
def main():
|
|
ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
|
ap.add_argument("--json", action="store_true", help="print the inventory as JSON")
|
|
ap.add_argument("--missing", action="store_true", help="list skills without trigger cases")
|
|
args = ap.parse_args()
|
|
inv = inventory()
|
|
trig = load_cases("trigger_cases.json")
|
|
beh = load_cases("behaviour_cases.json")
|
|
beh_paths = {c["skill"] for c in beh.values()}
|
|
for r in inv:
|
|
r["trigger_cases"] = r["path"] in trig
|
|
r["behaviour_cases"] = r["path"] in beh_paths
|
|
if args.json:
|
|
print(json.dumps(inv, indent=1))
|
|
elif args.missing:
|
|
for r in inv:
|
|
if not r["trigger_cases"]:
|
|
print(r["path"])
|
|
else:
|
|
t = sum(r["trigger_cases"] for r in inv)
|
|
b = sum(r["behaviour_cases"] for r in inv)
|
|
print(f"skills: {len(inv)} with trigger cases: {t} with behaviour cases: {b}")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|