INNER CODE UNIT · Python

dead

kevinpbuckley/VibeUE · scripts/check_skills_consistency.py:69

    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):
        desc = frontmatter_description((SKILLS_DIR / slug / "SKILL.md").read_text(encoding="utf-8"))
        if not desc:
            errors.append(
                f"{slug}/SKILL.md has no frontmatter description — the registered "
                "skill would be hidden from ListSkills")

    if errors:
        print("skills-consistency: FAIL")
        for e in errors:
            print(f"  - {e}")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…