2.8 script help for new Operator!

I would like to add a new operator in the N panel in 2.8

this would simply call an operator to make a selected object smooth
and re calculate the normal then add the Data normal smooth with angle = 30 degrees

is there any script example to do that ?

thanks
happy bl