Electrical work sign convention
Your sketch is right.
Positive charges do repel each other. So moving two positive charges closely together needs some positive work to overcome the repelling force.
A positive and a negative charge do attract each other. So moving them closely together you need negative work (gain of energy).