lead-scorer
SKILL.md
Lead Scorer Skill
Takes a completed audit dict → applies scoring rubric → assigns tier → writes row to Google Sheet.
Scoring Rubric (0–100 scale)
Higher score = hotter lead = more likely to need a new website.
SCORING_RUBRIC = [
# Signal Condition Points
("dead_site", lambda a: a.get("status_code") in ("DEAD","TIMEOUT","SSL_ERROR"), 40),
("copyright_5plus", lambda a: (a.get("years_outdated") or 0) >= 5, 35),
("pagespeed_low", lambda a: 0 < (a.get("pagespeed_mobile") or 101) < 50, 30),
("copyright_3to4", lambda a: 3 <= (a.get("years_outdated") or 0) < 5, 25),
("no_ssl", lambda a: not a.get("has_ssl"), 25),
("not_mobile", lambda a: not a.get("is_mobile_friendly"), 20),
("outdated_cms", lambda a: a.get("has_outdated_cms"), 20),
("no_contact_found", lambda a: not a.get("primary_email") and not a.get("primary_phone"), 20),