Promptles
Context

Set the Scene

Before asking Claude to add code, describe your project's structure. Claude Code can explore files, but giving it the lay of the land upfront means it writes code that fits your architecture instead of inventing its own.

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 Developer

    You're working on a Node.js/Express API and need Claude Code to add a new `GET /api/reports` endpoint. The project follows a specific structure: `src/routes/` holds Express routers, `src/middleware/` has auth and validation middleware, `src/models/` contains Sequelize models,…

  • The Merge Conflict

    You merged `main` into your feature branch and hit a conflict in `src/config.ts`. Both branches changed the same `MAX_RETRIES` constant: `main` set it to `5` for a reliability fix, while your branch set it to `3`. You know the reliability fix should win, but you still need your…

Other principles in Context