Promptles
Prompt Engineering Basics

Decomposition

intermediate

Definition

Breaking a complex request into smaller, manageable pieces. Instead of asking for an entire feature at once, you split it into steps that each build on the last. This produces more reliable results because each step is easier to verify.

In the wild

Instead of 'Build a shopping cart,' decompose it: first ask for the data structure, then the add-to-cart function, then the total calculation, then the UI. Each piece is small enough to check before moving on.

More from Prompt Engineering Basics