# Team Order

> Team conventions for createOrder and item name normalization in src/order.ts.

- Skill: `kok-o/team-order-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add kok-o/team-order-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/kok-o/team-order-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: kok-o (https://skillmd.com/u/kok-o)
- Updated: 2026-11-12
- Page: https://skillmd.com/skills/kok-o/team-order-2

---

# Order item names

Our catalog treats runs of ordinary U+0020 spaces as formatting noise. Other
interior whitespace can carry meaning in imported product labels.

- Preserve the public `createOrder(item, quantity)` API and `{ item, quantity }` result.
- Keep the function pure, with no network, database, or new dependencies.
- Keep existing edge trimming with `String.trim()`.
- Collapse runs of ordinary U+0020 spaces inside the item name to one space.
- Preserve letter case and all other interior characters, including tabs and non-breaking spaces.
- Reject an empty trimmed name and a quantity that is not a positive integer.
- Add regression tests for the normalization change and check valid and invalid inputs.

These are team instructions. Application behavior must be implemented and tested separately.

