one-trick pony
noun [ C ]
disapproving ukussomeone or something that is good at doing only one thing, or that can work in only one area:
The president is becoming a one-trick pony; a tax cut is his answer to every problem.
We don't want to be a one-trick pony, but if we have to be reliant on one industry, diamond mining is perfect.