The SW API allow to obtain a Sketch pointer from a Feature pointer with:
var sketch = (Sketch)feature.GetSpecificFeature2();
There is a way to obtain a Feature pointer from a Sketch pointer?
SolidworksApi macrosvar sketch = modelDoc.GetActiveSketch2();
var feature = .......................;