INNER CODE UNIT · Python

main

kevinpbuckley/VibeUE · scripts/check_skills_consistency.py:59

def main():
    errors = []

    if not DISPATCHER.is_file():
        print(f"FATAL: dispatcher not found at {DISPATCHER}", file=sys.stderr)
        return 1

    routed = dispatcher_routed_slugs(DISPATCHER.read_text(encoding="utf-8"))
    packs = {p.name for p in SKILLS_DIR.iterdir() if (p / "SKILL.md").is_file()}

    dead = sorted(routed - packs)
    orphans = sorted(packs - routed - {DISPATCHER_SLUG})
    if dead:
        errors.append(f"dead routes (in dispatcher table, no pack on disk): {dead}")
    if orphans:
        errors.append(f"orphan packs (on disk, no dispatcher row routes to them): {orphans}")

    for slug in sorted(packs):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…