The greater yam (Dioscorea alata), a widely cultivated and nutritious food crop, suffers from widespread yield reduction due to anthracnose caused by Colletotrichum gloeosporioides. Latent infection often occurs before anthracnose phenotypes can be detected, making early prevention difficult and causing significant harm to agricultural production. Through comparative genomic analysis of 60 genomes of 38 species from the Colletotrichum genus, this study identified 17 orthologous gene groups (orthogroups) that were shared by all investigated C. gloeosporioides strains but absent from all other Colletotrichum species. Four of the 17 C. gloeosporioides-specific orthogroups were used as molecular markers for PCR primer designation and C. gloeosporioides detection. All of them can specifically detect C. gloeosporioides out of microbes within and beyond the Colletotrichum genus with different sensitivities. To establish a rapid, portable, and operable anthracnose diagnostic method suitable for field use, specific recombinase polymerase amplification (RPA) primer probe combinations were designed, and a lateral flow (LF)-RPA detection kit for C. gloeosporioides was developed, with the sensitivity reaching the picogram (pg) level. In conclusion, this study identified C. gloeosporioides-specific molecular markers and developed an efficient method for C. gloeosporioides detection, which can be applied to the prevention and control of yam anthracnose as well as anthracnose caused by C. gloeosporioides in other crops. The strategy adopted by this study also serves as a reference for the identification of molecular markers and diagnosis of other plant pathogens.