So you need to either have one of the same weapon or a repair kit, then where does the skill factor in? Can the repair kit be used with unique weapons?
Skill determines by how much the item is repaired.
In Fallout 3, skill also determined the maximum condition to which you could repair an item, but that doesn't seem to be true in NV; e.g. at 50 repair I am able to repair my weapons to 100%.
The repair kit can be used on unique weapons. Unique weapons can also be repaired using the standard model for their type, e.g. the Ratslayer uses standard Varmint rifles to repair.