Broadly speaking, there are two capabilities that are going the way of the dodo bird:
1. Software Development
2. Infrastructure Planning
Software Development is going the way of the dodo because the pipeline is drying up for Junior Developers. Now just about any Senior Developer with Copilot can be that fabled 10x developer. A lot of those Senior Developers still have decades of career remaining. Software Development is therefore a dead career to be going into. Anecdote: I have friends who are hiring, each open position is now receiving thousands of applications. We read here on HN about seemingly competent software developers who've spent months if not over a year now looking for a job.
There are two forces causing Infrastructure Planning to go the way of the dodo. One, is Cloud Computing. The other is Infrastructure Planning outsourcers - and the automated tools they're utilizing for infrastructure management. They come in, they setup your data center, and then install tools for you to use to automate the management.
What should you be looking into then?
Architecture. Whether it's Business Architecture, Enterprise Architecture, Enterprise Solutions Architecture, Software Architecture - we need architects. But your game had better far exceed Visio. If you don't know how to manipulate architecture models in tools like Sparx, and you don't know architectural languages such as BPML, SysML, and ArchiMate - then you're getting left behind.
Cyber Security. The laundry list of what you need to know to be competent in this field is too numerous to list here. Added bonus - very few college programs are teaching this stuff so there are very few people in the pipeline and there's a huge demand for their skill. This will likely be a growing field for years to come.
Data Architecture. I see this field as separate and distinct from the architecture I mentioned above. At the end of the day, it's called IT - Information Technology, and data is the new oil. Those people who understand how to manage data flows, data provenance, data storage, data analysis and so forth are in high demand. I look for a lot of this to start getting automated, but I would think it has at least another 10 years of legs under it.
But software development? We can see its end coming. Let me put it this way, there are still going to be software developers but what they do and how they work is going to be fundamentally different from what we've been doing for the past 40 years.