
Scrub the potatoes and place them, unpeeled, in a pot of cold salted water. Bring to a gentle boil and simmer for 25 to 35 minutes, depending on size, until a knife slides through easily. Drain them well and let the steam escape for several more minutes.
Peel the potatoes while still warm, taking care not to burn your fingers, and press them through a potato ricer onto a clean work surface. Spread them out briefly to release excess moisture. Avoid using a blender, which makes the potatoes unpleasantly sticky.
Sprinkle the flour and salt over the warm potato, make a shallow well, and add the lightly beaten egg. Bring everything together with your hands into a soft dough, using only enough flour to stop sticking. Do not knead the tender mixture like bread dough.
Divide the dough into four portions and roll each one into a long rope about two centimeters thick. Cut the ropes into small pillows and roll each piece gently over a fork to make ridges. Dust the gnocchi lightly with flour and keep them spread apart.
Bring a large pot of salted water to a gentle boil. Drop in the gnocchi in batches and stir once to prevent sticking. Cook until they float to the surface, then allow another 30 to 60 seconds before lifting them out very carefully with a slotted spoon.
Warm the olive oil over low heat in a wide skillet and add the thinly sliced garlic. Cook gently until fragrant but not browned, then add the drained gnocchi and toss to coat. Stir in a splash of cooking water if the oil needs help coating every piece.
Turn off the heat and add torn fresh basil, black pepper, and freshly grated Parmesan if using. Toss gently once more and divide among warmed plates. Serve immediately while the gnocchi are tender and the fragrant olive oil remains aromatic and silky.





