Why Automate Content Quality
When you have 80+ articles, maintaining quality manually is impossible. I built a 17-check quality gate.
The 17 Checks
- Word count (min 2000)
- H2 heading count (min 8)
- Internal links (min 4)
- External source citations (min 3)
- Statistics with sources (min 5)
- FAQ section present
- Meta description length (100-160 chars)
- Title length (max 70 chars)
- Hero image exists
- No em dashes
- No fluff phrases
- H2 answer-first paragraphs (>50%)
- Freshness marker present
- Comparison table present
- No broken internal links
- Tags present (min 3)
- Cover image alt text
Implementation
The script reads MDX frontmatter with gray-matter, then runs each check against the parsed content. Each check returns pass/fail with the measured value.
Auto-Fix
Some issues fixed automatically: em dash replacement, fluff removal, H2 bold formatting, freshness markers.
Results
0/83 passing to 83/83 (100%) in two sessions. Now runs in CI on every push.
Top comments (0)