{"id":"proc-tail-spend-vendors-to-categories-csv","audience":"procurement","category":"operations-work","track":"operations","technique":"format","level":"beginner","title":"Sort eight small vendors into spend categories as CSV","free":false,"task":"Write a prompt for exactly one code block of CSV with the header vendor,category,annual_spend and one row per vendor in the order listed. Use only these categories: Facilities, Safety, Packaging, Office, Uncategorized. If the notes don't make a vendor's category clear, use Uncategorized. Write spend as plain numbers with no commas or dollar signs. After the block add one line: \"Total: N\" with commas.","materialLabel":"Your material (attached to your prompt automatically)","material":"TAIL SPEND REVIEW - vendors under $5,000 a year\n\n1. Brightway Cleaning - janitorial supplies - $1,200\n2. SafeStep Gear - work gloves and hi-vis vests - $850\n3. Boxwell Co - corrugated shipping boxes - $3,400\n4. Pixel Ink - printer toner - $600\n5. Harlan Fire Equipment - extinguisher inspections and refills - $2,250\n6. Orbit Trading - \"misc items per invoice\" - $1,500\n7. Strapline - strapping and pallet wrap - $900\n8. GreenLeaf Supply - floor mats and trash liners - $1,100\n\nProcurement wants to see where consolidation might be possible. A buyer decides whether to consolidate; this sheet only groups the spend.","rules":[{"type":"codeBlocks","count":1},{"type":"maxCodeLines","max":9},{"type":"maxProseWords","max":6}],"promptHints":[{"label":"Quotes the header","patterns":["vendor,category,annual_spend"]},{"label":"Lists allowed categories","patterns":["facilities","safety","packaging","office","uncategorized"]},{"label":"Handles unclear vendors","patterns":["unclear","uncategorized"]},{"label":"Sets number format","patterns":["no commas","plain numbers","no dollar"]}],"mistakes":[{"title":"Guessing for Orbit Trading","why":"The AI invents a category for 'misc items'.","fix":"Say: \"If unclear, use Uncategorized.\"","checks":["r1"]},{"title":"Money formatting breaks the CSV","why":"The AI writes $1,200 inside the rows.","fix":"Say: \"Plain numbers, no commas or dollar signs.\"","checks":["r2"]},{"title":"Wrong header or extra text","why":"The AI adds notes or a consolidation plan.","fix":"Quote the header and say one code block plus one line.","checks":["r0"]},{"title":"Extra text around the code","why":"The AI adds explanations, extra blocks or comments around the output.","fix":"Say \"exactly one code block, nothing else\" and cap the rows.","checks":["codeBlocks","maxCodeLines","maxProseWords"]}],"hint":"Give the header, the allowed categories, the unclear rule and the number format.","mission":"Sort eight small vendors into spend categories.","musts":["Unclear means Uncategorized","Spend without commas or $","Total line with commas"],"rubricLabels":["The code block has the header vendor,category,annual_spend and eight data rows in the listed order","Categories are Facilities (Brightway, GreenLeaf), Safety (SafeStep, Harlan), Packaging (Boxwell, Strapline), Office (Pixel Ink) and Uncategorized (Orbit Trading)","annual_spend values are plain numbers (1200, 850, 3400, 600, 2250, 1500, 900, 1100) and the line after the block is exactly \"Total: 11,800\""]}