「とく」 or 「どく」 are contracted forms of 「ておく」/「でおく」 in informal conversation.
Verb te + おく means to do something in advance for the future convenience.
「考えとけ」is a contracted form of 「考えておけ」 meaning "Think something in advance."
Example;
話しておけ → 話しとけ
書いておけ → 書いとけ
読んでおけ → 読んどけ
言っておけ → 言っとけ
食べておけ → 食べとけ
見ておけ → 見とけ
しておけ → しとけ
来ておけ → 来とけ