Build the smallest correct solution that matches the spec.
- No code comments (no
//,/* */,#). - Prefer small functions and descriptive names over comments.
- Don't change unrelated files.
- Avoid fixed pixels; use
vars.spacefrom@cutting/component-libraryfor spacing. - Prefer existing npm packages over reimplementing functionality.
- Keep diffs minimal.
- If you change behavior, update any docs/tests that describe it.
- Install:
npm install - Run:
npm run scan - Test:
npm test(if no tests exist, add a single smoke test and wire this command)
- Never swallow errors: don’t use empty catch blocks; if you catch, return a structured error and always log to stderr with enough context (site, step, message) and rethrow
Stop and ask for clarification before coding.
- Do NOT modify code unless explicitly asked
- When the user complains about something, ask if they want it changed
- Do not add features that weren't requested
- Do not add code comments