extract eskeleton in STL

I have an .stl surface and I want to extract its skeleton curve. I am trying to use the tool “extract skeleton” but only works with volumes. someone know how to I can do?