I think @ferunalute is right that the only reason it shows Shepherd as a Melee class is that it is a Cleric base class. ToSWiki states that every other Cleric class also uses a Mace as the main weapon (except a few which use ‘Hammer’ - which is not even a weapon type, and Bokor which uses a ‘Voodoo Staff’ - which again is not a weapon type).
As for Spirit being the main stat, I think that is just a guess at what it’s main stats is and is not based off facts. If you look at Sadhu it says that it’s main stat is STR which is a lie (it is INT). Paladin also has Power as it’s main stat - which is not even a stat. Corsair has STR/AGI as it’s main stats - when AGI is not even a stat in ToS.
Alchemist is also labelled as a Melee class yet its skills are either support or ranged magic skills.
What I am getting at is that TosWiki is highly unreliable and has a lot of mistakes.