Bit of both with me.When playing a melody instrument, e.g. a mandolin, I always start from the melody point of view when, for example, composing a new tune.
On the other hand, when composing on the guitar, I tend to work from chord progressions, usually in open tunings, from which a decent melody may later emerge if I'm lucky.
mooman