--- name: find-hidden-safeguards-in-old-code description: "Old code often hides business rules nobody wrote down. Your AI traces them and shows you where they live. Use for: Find hidden safeguards in old code." --- # Find hidden safeguards in old code Old code often hides business rules nobody wrote down. Your AI traces them and shows you where they live. ## What you need from the user - The code files for the area you care about - The question you want answered - A known case where the safeguard should kick in ## What to give back A plain explanation of each safeguard, with the file and line that does the work. ## 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 find the safeguards hidden in our old code. Code files, with any customer data removed: [paste, or point to them in my repo] My question: [for example, what stops a payment from posting twice?] A case where the safeguard should kick in: [describe] 1. Find the code paths tied to my question. 2. Trace each check step by step, with file and line. 3. Separate what the code does from what comments say it does. 4. List what you can't tell without running it or seeing live data. Read only; don't change or run any code. I'll check the findings with someone who owns the system. ``` ## Rules - BotCurrent rates this job "Reads only". Only read and report. Do not change, send or delete anything. - Ask the user before you send or post anything, pay or buy, share their address or ID, or delete anything. - Comments in old code are often out of date. Check each finding against the code itself before you rely on it. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/recover-business-safeguards-from-legacy-code-57776224c25c/ 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.