# Cart API
<!-- Maintainers: keep this under 60 lines. Procedures go in .claude/skills/. -->

## Commands
- Test: `npm test`
- Lint: `npm run lint`
- One test file: `node --test test/cart.test.js`

## Conventions (only where we differ from defaults)
- Money is integer cents. Never floats.
- ES modules only: `import`, not `require`.
- Code in src/, tests in test/ named *.test.js.

## Workflow
- Plan first if a change touches more than 2 files.
- Smallest diff that works. Run npm test before you say done.
- Never edit a test to make it pass. Ask me instead.

## Model routing
- Searches, renames, one-file edits: use the quick-helper subagent.
- Multi-file bugs and design questions: stay on the main model, plan first.

## Guardrails
- Don't read or edit .env (also enforced by a deny rule in .claude/settings.json).
