Schedule a full Base-Build-Specialty that takes you to your race (maybe plan to start it a couple of weeks early to allow for any unplanned disruptions). Use the time between now and when Base starts to work on your weaknesses.
E.g. if swimming is your weakest discipline then go into maintenance mode on the bike/run for a few months and put some serious volume in at the pool, masters swimming, coaching, etc. If running is your weakness, particularly if you’re prone to injuries and niggles, then get in some really good base volume by running 5-6 days/week at fairly easy pace, starting as short as you need to and building up the distance.
If cycling is your weakness I would do a Base then Build to build your aerobic base and FTP, not worth bothering with Specialty if there isn’t a race at the end of it. Also for cycling bear in mind that during the IM build you’re going to be doing a lot of solo indoor and TT rides which can get very tedious, so it’s a good time to do some fast group rides, get hammered and dropped a few times, and have some fun on the bike. Or MTB or gravel rides, just get out on the bike, the specificity can come later.