Assembly of four diverse heterocyclic libraries enabled by Prins cyclization, Au-catalyzed enyne cycloisomerization, and automated amide synthesis.