I've heard both "wait until you have a lot of experience" and "start whenever you feel ready," but I'm wondering about your take on it.
My take is if you are interested in doing a PhD go straight into it. A PhD is not a terminal experience - it is designed to prepare you to be an independent investigator. Getting these skills as early as possible positions you for a highly productive career. This is the trend for most of the STEM fields.