---
title: "Phase 4: Cleanup and Validation"
description: Validation scripts catch inconsistencies across 200+ files. Fix edge cases, refine the schema, and iterate.
---

# Phase 4: Cleanup and Validation

You have 210 decorated files with rich metadata. But not everything is perfect. This phase is about **catching inconsistencies at scale** — scripts that validate every file against the schema, find unconverted emails, and track overall progress.

The key pattern: **automated validation catches what manual review misses**. When you have 200+ files, you can't check each one by hand. Scripts are your quality gate.

## Lessons

1. **[Validation Scripts & Edge Cases](/content-repurpose/04-validation/09-cleanup/)** — Build `validate_taxonomy.py` and `classify_emails.py` to catch errors. Handle malformed YAML, mismatched content, and missing files.

2. **[Iterate & Improve](/content-repurpose/04-validation/10-iteration/)** — Refine the schema, re-run classification, and apply the patterns to build a magazine website from the structured content.
