Skip to content

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

TypeScript
2.0 KB
Raw Blame

Health Score Rubric (marketing and docs sites)

Use this rubric for content-heavy sites with few interactive flows. Score five categories from 0 to 100, then take the weighted average.

1. Reachability — weight 30%

Crawl every same-origin link from the homepage, up to 50 pages.

  • Broken page = HTTP 4xx/5xx on a repeat request, or no response within 10s.
  • Score = 100 × (working pages ÷ pages crawled), rounded down to a whole number.
  • Redirects that end on a 200 page count as working.

2. Rendering — weight 25%

Check each crawled page at 1280px and 375px wide.

  • Start at 100. Subtract 10 per page with a layout break (overlap, clipped text, horizontal scroll at 375px), 5 per broken image. Floor 0.
  • A page broken at both widths counts once (10, not 20).

3. Content — weight 15%

  • Start at 100. Subtract 4 per typo or placeholder ("lorem ipsum", "TODO", "{{name}}"), 8 per page whose title or main heading is missing or duplicates another page's. Floor 0.

4. Accessibility — weight 20%

  • Start at 100. Subtract 10 per page with no <h1> or no landmark <main>, 5 per meaningful image without alt text, 10 per text/background pair below 4.5:1 contrast. Floor 0.
  • Decorative images with alt="" are correct, not a deduction.

5. Console — weight 10%

Count unique error messages across all pages (warnings excluded).

  • 0 → 100 · 1-2 → 80 · 3-5 → 50 · 6+ → 20

Combining

  • Weights sum to 100%.
  • Each defect is deducted in one category only. If it could be two, the lower-numbered category above wins.
  • If a category could not be checked (for example, no mobile emulation available for Rendering), exclude it and divide by the remaining weights; label the score "partial".
  • score = Σ(category × weight) ÷ Σ(weights used); round half up at the end.

Reporting

State each category score, the final score, the page count crawled, and the three deductions that cost the most points. A score of 85+ means "ship"; 60-84 "fix before next release"; below 60 "fix now".