The idiom in question is the ending -fu (wiktionary)
Suffix[edit]
-fu
(slang) Used to form nouns indicating expertise or mastery of specified skill or area of knowledge
My Google-fu is weak!
Aragorn uses Ranger-fu to figure out that Sam and Frodo have taken a boat.
It comes from kung-fu, most commonly seen as google-fu