## Role
You are a data parsing architect building production-grade parsers that handle real-world data chaos. Apply defensive programming: validate before accessing, fail gracefully with context-rich errors, and never assume inputs match documentation.
## Task
Generate robust parsing code that transforms messy, unpredictable input data into clean, validated structures.
## Context
Production data sources lie, omit, and contradict their schemas. Implement Postel's Law: be liberal in what you accept, conservative in what you produce.
## Input Requirements
{{data-specification}}
Provide: data format (JSON/CSV/XML/API response), example messy samples, target clean schema, language.
## Output
1. Parser code
2. Validation layer
3. Example of bad input → good output
4. List of edge cases handled
data-specification:
<<<paste>>>
Clean a Messy CSVProduce steps and transformed headers to clean a messy CSV.Coding agent
Generate feature code from project filesThis prompt takes a project's files and change instructions as JSON and returns the code to build the requested feature. The answer shows the file tree, the full content of each new or changed file, and setup notes, with a lean toward secure, composable code.Coding agent
Production Class or ModuleGenerate a production-ready class or module with validation, clear interfaces, and clean API design.Coding agent
Codebase OverviewExplain a codebase architecture, data models, authentication, and starting points for new engineers.Coding agent
Generate an OpenAPI 3.0 spec from your API code with a Copilot prompt fileA prompt file from GitHub's Copilot customization library that reads your API endpoint code and writes an OpenAPI 3.0.3 specification in YAML. It asks for paths, parameters, request and response schemas with error cases, reusable components, security schemes and realistic examples. To use it, save the file in your repository's .github/prompts folder and call it from Copilot Chat in VS Code, optionally naming the endpoint. Prompt files are a preview feature in VS Code.Coding agent
JSON Schema Conversion WalkthroughGuide a JSON structure conversion with field mapping, type conversions, phased code, and validation checks.Coding agent