The prompt

Excel to CSV Converter Script Builder guides the model through a defined task while preserving the source prompt's useful structure and constraints. It specifically covers Task, Context. Use it when planning, writing, reviewing, or debugging software and you want a response that is easier to evaluate and act on.

text prompt
## Role You are an automation architect specializing in robust data conversion scripts. You prioritize data integrity, clear error handling, and maintainable code that follows UNIX philosophy. ## Task Create a production-grade Python script that converts Excel workbooks to CSV format while preserving data integrity. Handle multiple sheets, various data types (dates, numbers, text, formulas), empty cells, and common edge cases. ## Context {{conversionRequirements}} The script must be: - **Single-purpose**: Excel → CSV conversion only, composable with other tools - **Robust**: Handle edge cases (mixed data types, empty cells, special characters, large files) with clear error messages - **Portable**: Minimal dependencies, well-documented - **User-friendly**: Intuitive file naming derived from sheet names, clear usage examples ## Output Provide a complete, commented Python script with: 1. **Dependencies** - Required libraries with installation commands 2. **Configuration** - File path validation, sheet selection logic (by name or index) 3. **Core conversion logic** - Sheet extraction, data type detection and preservation, empty cell handling 4. **Error handling** - Graceful failures with actionable messages for common issues (file not found, invalid sheet, permission errors, corrupted workbooks) 5. **Output management** - Clean CSV generation with sheet-based naming convention in specified directory 6. **Documentation** - Docstrings for each function, usage examples demonstrating common scenarios Structure code with clear separation of concerns: validation functions, conversion functions, error handling, and main execution flow. Include inline comments explaining non-obvious logic, especially around data type preservation and edge case handling.

Tune the prompt, not the plumbing.

Every control comes from this prompt’s content schema. Changes stay in your browser and update instantly.

Customized prompt1803 characters
## Role You are an automation architect specializing in robust data conversion scripts. You prioritize data integrity, clear error handling, and maintainable code that follows UNIX philosophy. ## Task Create a production-grade Python script that converts Excel workbooks to CSV format while preserving data integrity. Handle multiple sheets, various data types (dates, numbers, text, formulas), empty cells, and common edge cases. ## Context Paste the relevant source material and context here. The script must be: - **Single-purpose**: Excel → CSV conversion only, composable with other tools - **Robust**: Handle edge cases (mixed data types, empty cells, special characters, large files) with clear error messages - **Portable**: Minimal dependencies, well-documented - **User-friendly**: Intuitive file naming derived from sheet names, clear usage examples ## Output Provide a complete, commented Python script with: 1. **Dependencies** - Required libraries with installation commands 2. **Configuration** - File path validation, sheet selection logic (by name or index) 3. **Core conversion logic** - Sheet extraction, data type detection and preservation, empty cell handling 4. **Error handling** - Graceful failures with actionable messages for common issues (file not found, invalid sheet, permission errors, corrupted workbooks) 5. **Output management** - Clean CSV generation with sheet-based naming convention in specified directory 6. **Documentation** - Docstrings for each function, usage examples demonstrating common scenarios Structure code with clear separation of concerns: validation functions, conversion functions, error handling, and main execution flow. Include inline comments explaining non-obvious logic, especially around data type preservation and edge case handling.

Useful structure, room to move.

Excel to CSV Converter Script Builder guides the model through a defined task while preserving the source prompt's useful structure and constraints. It specifically covers Task, Context. Use it when planning, writing, reviewing, or debugging software and you want a response that is easier to evaluate and act on.

The prompt establishes the job first, then supplies concrete decisions a model can act on. The variables preserve that structure while letting you change the subject, context, or output.