One-shot prompting means including one completed example of the task you want an AI model to perform. The example shows an input and the kind of output you expect.
Use it when a sample can explain your preferred structure or style more clearly than instructions alone. The aim is to show a useful pattern, then give the model a new input to process.