How should I repair flaking paint?
I am assuming you have quite a divot that needs some filling.  I recommend using lightweight Spackle. It is very easy to apply, and you can smooth it with fine sandpaper and a damp sponge about 15 mins after you apply it and paint it within an hour.