Preheat the oven to 175°C (350°F). Melt the butter in a cast-iron skillet (or whatever you can use in the oven) over a medium heat.
Pepper and salt the chicken thighs and place them in the pan.
Fry the thighs until golden for a few minutes before flipping to the other side.
In a food processor, combine basil leaves, olive oil, and pine nuts. Salt to taste.
Turn off the heat under the pan and spread the resulting pesto sauce over the thighs.
Place a ring of tomato and mozzarella on top.
Bake for 30 minutes until chicken is cooked through and cheese is melted and golden.