Break the Workflow into Steps
Number each step so Claude builds pieces, not monoliths.
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
Architect Before You Ask
Ask for a Plan First
Request a plan before any multi-file change — approve the approach, then let it code.
Combine Context with Action
Coordinate Across Files
Delegate to a Subagent
Spawn a subagent for research-heavy subtasks; brief it on scope, limits, and report shape.
Describe Environments and Stages