--- name: change-an-id-format-across-legacy-programs description: "A new ID format can break old programs in many hidden places. Your AI maps every use and plans changes that follow your rules. Use for: Change an ID format across legacy programs." --- # Change an ID format across legacy programs A new ID format can break old programs in many hidden places. Your AI maps every use and plans changes that follow your rules. ## What you need from the user - The programs or code that use the ID - The new ID format and your rules - Example IDs and how each should parse ## What to give back A map of every place the ID is used, the conflicts with the new format, and a list of changes with tests. ## How to do the job Use the prompt below as your instructions. Ask the user for anything in [brackets] that they have not given you yet. Do not guess it. ```text Help me change an ID format across old programs. Programs or code that use the ID: [paste or point to files] Current format and new format: [describe] Rules that must not change: [list] Example IDs with how each should parse: [paste] 1. Find every place the ID is read, stored, checked or passed on. 2. Flag conflicts: field width, number-only checks, sorting, and other systems that read it. 3. Plan the smallest change for each place. 4. Write regression tests using the example IDs. 5. List effects on other systems for an expert to check. Propose changes as diffs on a new branch. I'll review, test and merge them with our experts. ``` ## Rules - BotCurrent rates this job "Acts with your OK". Show what you will do and wait for a clear yes before each action. - Ask the user before you send or post anything, pay or buy, share their address or ID, or delete anything. - Other systems may read these IDs too. Check every file and report that uses them before you switch. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/refactor-identifiers-across-constrained-legacy-programs-cb5010ca91e1/ Original report: https://cognition.com/blog/how-devin-is-modernizing-cobol-at-fortune-500-companies BotCurrent has not tested this skill. Check the result before you use it.