{"id":"ops-emergency-contact-list-cleanup-csv","audience":"office","category":"operations-work","track":"operations","technique":"format","level":"intermediate","title":"Clean a messy emergency contact list into CSV and flag the gap","free":false,"task":"Write a prompt for exactly one code block of CSV with the header name,role,phone. Write names in title case, expand \"mgr\" to Manager and capitalize roles, write phones as 555-0123 style, and remove exact duplicate rows. If a person has no phone number, write NEEDS CHECK. Keep the order of first appearance. After the block add one line: \"Duplicates removed: N\".","materialLabel":"Your material (attached to your prompt automatically)","material":"EMERGENCY CONTACTS - Reno site (copied from three old lists)\n\nDev Patel - ops mgr - 555-0171\nAlicia Brandt, lead, (555) 0138\nmei zhao  safety coordinator  555.0214\nTom Reyes - supervisor - 5550192\nAlicia Brandt - lead - 555-0138\nJoel Pike - dock lead - call the front desk\nNora Whitfield, ops director, 555-0100\n\nNotes: Do not guess phone numbers. The safety coordinator will verify any NEEDS CHECK entries by Friday. Phone formats vary because the lists were typed by different people. The HR system is the source of truth for names.","rules":[{"type":"codeBlocks","count":1},{"type":"maxCodeLines","max":8},{"type":"maxProseWords","max":8}],"promptHints":[{"label":"Quotes the header","patterns":["name,role,phone"]},{"label":"Normalizes phones","patterns":["555-0171","hyphen","style"]},{"label":"Handles missing numbers","patterns":["needs check","never guess"]},{"label":"Removes duplicates","patterns":["duplicate","duplicates removed"]}],"mistakes":[{"title":"Inventing a number","why":"The AI makes up a phone number for Joel Pike.","fix":"Say: \"If there is no number, write NEEDS CHECK. Never guess.\"","checks":["r2"]},{"title":"Odd phone formats left alone","why":"The AI copies (555) 0138 and 555.0214 as written.","fix":"Say: \"Phones as 555-0171 style.\"","checks":["r1"]},{"title":"Duplicate kept or header changed","why":"The AI keeps both Alicia rows.","fix":"Say: \"Remove exact duplicate rows; end with Duplicates removed: N.\"","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, formatting rules, the missing-number rule and the final line.","mission":"Clean the messy emergency contact list.","musts":["One CSV code block","No phone: NEEDS CHECK","Drop exact duplicates"],"rubricLabels":["The code block has the header name,role,phone and exactly six data rows in order of first appearance (Dev Patel, Alicia Brandt, Mei Zhao, Tom Reyes, Joel Pike, Nora Whitfield)","Names are in title case, \"ops mgr\" becomes Ops Manager, roles are capitalized, and phones read 555-0171, 555-0138, 555-0214, 555-0192 and 555-0100","Joel Pike's phone is NEEDS CHECK (no number invented), Alicia appears once, and the line after the block is exactly \"Duplicates removed: 1\""]}