General way is to use Python as Menu script:
from itertools import chain
node = hou.pwd()
geo = node.geometry()
attribs = [a.name() for a in geo.pointAttribs()]
return list(chain(*zip(attribs, attribs)))
attributes_menu.hipnc
It is possible to avoid it in many cases. When you promote parameter it will usually pick the menu script (if it exist) from the node. It is not necessary to have such menu on the target node, as you may promote parameter from a different node (example).