quick-witted
1. [ adjective ] mentally nimble and resourceful
Examples:

"quick-witted debater" "saved an embarrassing situation with quick-witted tact"

Related terms: adroit