noun
quick-wittedness; tact; resourcefulness
The ability to think and act quickly and appropriately in a situation, often with a nuance of cleverness or tact.
彼は機転が利くから、どんなトラブルでもうまく対応できる。
He's quick-witted, so he can handle any trouble well.
とっさの機転で、彼女はその場を切り抜け
With quick thinking, she got through the situation.
Compound of 機 (opportunity, moment) and 転 (turn, change), suggesting the ability to turn a situation to one's advantage. The variant 気転 uses 気 (spirit, mind) instead, but the meaning is essentially the same.