"stroke of" as it is used in English sentences, generally refers to a movement of force or the action of some force.
For example, one common usage combines the phrase with LUCK, as follows.
He only won the race because of a stroke of luck, not because he was a more skillful competitor.
Other examples: His invention was demonstrative of a stroke of sheer genius.
I created that painting as the consequence of a stroke of artistic inspiritation.