Heat the oven to 180°C.
Cut the squash in half and spoon out the seeds. Brush the flesh with 1 teaspoon of oil, then season with salt and pepper. Put them on a baking tray and roast them for about 30 minutes, until tender.
Meanwhile chop the onion & garlic.Heat 1 Tbsp of oil in frying pan. Add the onion & garlic, then cook gently for about 5 minutes until softened, whilst stirring. Add the chopped herbs, chilli flakes (if used) and the kale/spinach. Put a lid on and steam for about 3 minutes , until the greens have wilted. Stir in the cooked rice to warm up.
When the squash is cooked through, take the tray out of the oven and scoop out some of the flesh (allow about 2cm rim). Add this the stuffing, combine well, then season with salt and pepper to your liking.
Divide the stuffing between squash halves. Roast them for a further 15 minutes until golden.
Dry-roast the nuts, cool then chop them into small pieces.