CP2Skyrmions.jl is a variational calculation package for finding the ground state of classical SU(3) spins. The CP2 skyrmion crystal phases reported in "CP2 Skyrmions and Skyrmion Crystals in Realistic Quantum Magnets" can be reproduced using this code. However, this package needs further documentation. Contact the first author Hao Zhang for additional help.