Follow the existing pattern

How can I configure Cursor so that it always follows the same pattern?

For example, if I create a modal dialog using a specific structure, I want Cursor to use that same pattern whenever I ask it to create a new one — instead of generating a different approach each time.