I need help in contour detection and save contour lines as shape file?

How to find the contour for RGB image using scikit image library and after saving the lines to shapefile ?