Skip to lesson
Exit
Cursor Product & Developer-Workflow Fluency1 / 2

1 min lesson

Rules are the artifact you'll coach most

Use the example in "Rules are the artifact you'll coach most" to explain the main idea in plain words.

Step 1 of 2

Rules are the artifact you'll coach most

This example requires TypeScript strict mode, the internal httpClient, colocated failing-path tests and integer cents for money. It also sends uncertain domain terms to docs/glossary.md instead of inventing them.

This project rule requires TypeScript strict mode, the internal httpClient, colocated failing-path tests, integer cents for money and docs/glossary.md for domain terms
# Conventions for the payments service
- Language: TypeScript, strict mode. No `any` without a comment justifying it.
- HTTP: use the internal `httpClient`, never raw fetch - it handles retries + tracing.
- Tests: colocate as `*.test.ts`; every new handler needs a failing-path test.
- Money: integer cents only. Never floats for currency.
- When unsure about a domain term, check `docs/glossary.md` before inventing one.