Can you get shot for writing one? (5)
I believe the answer is:
essay
'writing one?' is the definition.
'essay' can be an answer for 'writing' (thesaurus). I am not sure about the 'one?' bit.
I cannot understand how the rest of the clue works.
Can you help me to learn more?
(Other definitions for essay that I've seen before include "Try - composition" , "Written composition" , "Short treatise" , "Test" , "Make an effort or attempt" .)