Promptles
Multi-Step

Describe the Request Flow

When asking Claude to build an API endpoint that spans multiple files, describe how a request travels through the system: from route to middleware to model. This helps Claude understand the architecture and wire everything together correctly.

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 New Route

    You're building a Node.js/Express API and need to add a new POST `/api/comments` endpoint. The project is organized into separate directories: `routes/` for route handlers, `middleware/` for validation logic, and `models/` for Mongoose schemas. A comment has a `body` (required…

  • The Internal API

    Your team needs a simple Express API in a file called `deals-api.js` with three endpoints for managing sales deals. `GET /api/deals` should list all deals, filterable by query parameters `stage` (string) and `date_from`/`date_to` (ISO dates). `POST /api/deals` should create a…

Other principles in Multi-Step