The CRISPR-Cas9 system has emerged as the most prevalent gene editing technology due to its simplicity, high efficiency, and low cost. However, the homology-directed repair (HDR)-mediated gene knock-in in this system suffers from low efficiency, which limits its application in animal model preparation, gene therapy, and agricultural genetic improvement. Here, we report the design and optimization of a simple and efficient reporter-based assay to visualize and quantify HDR efficiency. Through random screening of a small molecule compound library, two groups of compounds, including the topoisomerase inhibitors and PIM1 kinase inhibitors, have been identified to promote HDR. Two representative compounds, etoposide and quercetagetin, also significantly enhance the efficiency of CRISPR-Cas9 and HDR-mediated gene knock-in in mouse embryos. Our study not only provides an assay to screen compounds that may facilitate HDR but also identifies useful tool compounds to facilitate the construction of genetically modified animal models with the CRISPR-Cas9 system.