--- author: 'Diego Moreira' description: 'Create or prepare a confectionery order from confirmed customer and item details. Use when a user asks to register an order or counter sale; confirm before sending it to an external system.' extras: 'Add `references/recipe-schema.md` and `references/order-schema.md`; test invalid quantities and missing delivery details.' focus: 'Define recipe and order workflows for a confectionery domain.' id: 'confectionary-skill-hub' improve: - 'This is a catalog of three capabilities, not one discoverable skill; split recipe creation, recipe search, and order creation into packages.' - 'Add valid frontmatter and state the system of record, validation rules, and mutation approval boundary.' - 'Move JSON schemas to focused references so only the relevant workflow loads.' name: 'confectionery-orders' path: '../submitted-skills/Diego%20Moreira/skills/confectionary-skill-hub/SKILL.md' status: 'Split required' title: 'Confectionery skill hub' wins: - 'Useful domain vocabulary and input shapes.' - 'Concrete examples make the intent easy to understand.' --- # confectionery-orders ## Inputs Customer, pickup or delivery choice, items, quantities, prices, and optional discount. ## Workflow 1. Validate required fields and positive quantities. 2. Calculate the proposed total and show a concise order summary. 3. Ask for confirmation before creating or transmitting an order. 4. Return the saved identifier or a clearly labeled draft. ## Rules - Do not invent recipe availability, prices, addresses, or customer details. - Keep payment and personal data out of logs. - Read `references/order-schema.md` when mapping to the order system. ## Output Return a valid order payload plus validation warnings and confirmation state.