Would my skills be irrelevant soon?
If the answer is yes, or even if it’s no, what all other skills can I invest in that will be in demand in the near/long term?
My personal position is that it hardly matters, and a takeoff scenario where AI can properly replace complex knowledge workers (I assume this is what you're worrying about) is more or less assured to infect every other kind of work in a fairly negligible timeframe as it continues to improve. A machine intelligence exhibiting exponential growth that can already engineer software isn't going to be too far off from designing and manufacturing equipment to efficiently produce physical machines that it can operate. The question that everyone's arguing about is whether or not there's any intelligence in the system in the first place. If there is, it seems very unlikely that it'll hit a convenient growth wall right between the skills of human-level software engineering and marginally superhuman robotics design.
I'm continuing on with business as normal, with the assumption that if I get bit by AI, everyone else will be soon to follow and I won't be at any particular disadvantage for long.
Change in our profession is rapid, and only those who keep up with the right technology survive. How to pick the right technology? Aggressively seize opportunities when they arise and learn on the job. Change is so widespread and varied, it is often impossible to anticipate and prepare in advance. It is with good reason that career and careen are so similar.
Good luck. It is an exciting career.
I commented at length in this thread.