Promptles
Constraints

Pin Your CI Environment

Say which language version, lockfile, and secrets CI must use, so every run matches what you ship.

CI (the checks that run automatically on every change) only helps if it gives the same answer every time. When asking for a CI setup, say what's fixed for your project: the language version you ship on, installing exactly what the lockfile lists, and which secrets each step may use. Claude can choose the rest. Vague: "Add CI." Specific: "Add CI that runs our tests on Node 20, the version we deploy on, and installs exactly the package versions in our lockfile. Only the publish step may read the npm token. Show me a passing run."

Where you'll practice this

One Promptles scenario teaches this principle directly.

  • Check Every Pull Request

    Courtside has `npm run lint` and `npm test` scripts, but nothing runs them on pull requests, so contributors' changes reach Esther's review untested. You want GitHub Actions to check every pull request to `main`. Contributors often push three or four small fixes to one pull…

Other principles in Constraints