i nevr used the repair function myself, but it's a very useful skill to save some money.
so i can not say anything about , how it has to be done.
you cant do it while it's on your inventorie?
about repairing with NPC's.
try ODO the dwarf in the first village. he repaires also.