Prompt file imported from JDKoll1982/MTM_Receiving_Application (
.github/prompts/copilotforms/copilotforms-improvement-refactor.prompt.md). Copyright stays with the author.
CopilotForms Improvement Refactor
Read the linked export from docs/CopilotForms/outputs/improvement-refactor/ and refactor the targeted code for maintainability or structure improvements.
Workflow
- Read the linked export completely.
- Confirm the requested scope and risk level.
- Inspect the smallest set of types and call paths needed to understand the current structure.
- Refactor only within the requested scope.
- Preserve behavior unless the export explicitly allows behavior changes.
- Validate against the exported success criteria and listed tests.
- Summarize the refactor shape, behavior preservation, and follow-up debt if any remains.
Output Expectations
- Keep the refactor coherent and minimal.
- Respect repo architecture and naming patterns.
- Do not expand the scope without explaining why.
