epubkit
Point it at a folder of downloaded books and get back a library a Kobo opens without complaint: converted, metadata filled in, filenames normalised, structurally repaired, validated with EPUBCheck, and optionally with spoiler-free recaps bound into each book.
Proven on a real 373-book library. The repair rules were each learned by breaking something first.




