Promptles
Multi-Step

Break the Workflow into Steps

Number each step so Claude builds pieces, not monoliths.

For multi-step automations, number each step and describe what it does independently. This lets Claude build and test each piece rather than generating one fragile monolith. When step 3 fails, you can fix step 3: not re-prompt the entire workflow. Numbered steps also make it easy to add, remove, or reorder stages later.

Where you'll practice this

2 Promptles scenarios teach this principle directly. Each one drops you into a real engineering ticket and asks you to write the prompt you'd send to Claude Code.

  • The Multi-Step Workflow

    You want to automate your end-of-week reporting with a Node.js script called `weekly-report.js`. The workflow has four steps: (1) fetch this week's data from a Google Sheet using the Sheets API v4 (sheet ID is in the `GOOGLE_SHEET_ID` env var), (2) clean the data by removing…

  • The First Workflow

    Your Node project has `npm run lint` and `npm test` scripts but nothing runs them automatically. You want a GitHub Actions workflow that runs both on every pull request to `main`, so broken code can't merge unnoticed. The repo uses Node 20 and pins dependencies in…

Other principles in Multi-Step