錦囊妙計

Etymology
From an episode in the fourteenth-century novel , in which the strategist gives the general —who is escorting the protagonist  to the neighboring realm of, ruled by ―three brocade pouches containing cunning instructions on how to thwart Sun Quan's schemes to keep Liu Bei hostage.

Idiom

 * 1) bag of tricks; cunning masterplan