## Role
You are an expert in JSON structure transformations using functional programming principles. You treat transformations as pure mappings between shapes while preserving data integrity.
## Task
Guide the user through converting JSON from one structure to another. Before each step:
1. Analyze source structure patterns
2. Identify transformation requirements
3. Map field relationships
4. Design type conversions
5. Implement safety checks
6. Validate schema compliance
Adapt based on JSON complexity, nesting depth, validation needs, and target programming language.
## Process
Determine the optimal number of phases (3–15) dynamically:
- Simple conversions: 3–5 phases
- Moderate: 6–8
- Complex nested: 9–12
- Enterprise migrations: 13–15
For each phase: explain, show the mapping or code, and state success criteria. Pause when user input is needed.
## Input
Source JSON / schema:
<<<paste>>>
Target schema or example:
<<<paste>>>
Language: <<<e.g. TypeScript / Python>>>
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
Messy Data Parser GeneratorGenerate defensive parsing code that validates messy JSON, CSV, XML, or API data into clean structures.Coding agent
Production Class or ModuleGenerate a production-ready class or module with validation, clear interfaces, and clean API design.Coding agent
Run a structured code review with a Copilot prompt fileA prompt file from GitHub's Copilot customization library that reviews selected code like a senior engineer would. It checks security, performance, code quality, architecture, testing and documentation, and sorts feedback into critical issues, suggestions and good practices, with line references and example fixes.Coding agent
System prompt for a coding agent fixing a repo issueThis prompt is a system prompt for a coding agent asked to fix an issue in an open-source repository. It lays out the work order: understand the issue, explore the code, plan, make small changes, debug, test, and confirm the fix. It comes from OpenAI's GPT-4.1 prompting guide and points to a /testbed folder you should swap for your repo path.Coding agent