CRISPR quality control on a chip