An example of knack is the ability to cook something delicious for unexpected dinner guests.
A knack for writing song lyrics.
Origin of knack
- Middle English knakke from Middle Dutch cnacken to strike, crack probably of imitative origin
From American Heritage Dictionary of the English Language, 5th Edition