I need to go to a place in Shilin district of Taipei tomorrow. I will be coming on the train from Taoyuan. Should I stay on the train all the way to TMS or get off earlier? I seem to remember a stop before TMS called Shilin? I don’t usually pay much attention when coming in. I remember Bangciao is the stop before TMS.
If you are using TRA to come to TMS then tranfer direct to TPE MRT red line and head N to ShiLin.
If you are using Taoyuan MRT to get to TMS then when you reach the Taoyuan MRT TMS (which is a separate station to the TRA/TPE MRT/HSR one) transfer to BeiMen MRT Stn, catch green line to ZongShan MRT Stn, swap to red line and head N to ShiLin.
Whether the OP meant Shilin or Shulin is probably immaterial by now, given that he said that he was travelling today.
Of course he could have got off the TRA train at South Shulin too, and is still wandering about the sights of the Shulin district wondering where the hell he is.