--- name: find-gaps-and-conflicts-in-decision-rules description: "Big sets of if-then rules hide cases nobody covered and rules that clash. Your AI finds them and shows an example input for each. Use for: Find gaps and conflicts in decision rules." --- # Find gaps and conflicts in decision rules Big sets of if-then rules hide cases nobody covered and rules that clash. Your AI finds them and shows an example input for each. ## What you need from the user - Your rules as a table or code, with a version number - What each input can be, like ranges, units and blanks - The expected result for a few known cases ## What to give back A list of gaps, clashes and dead branches, each with an example input and a test you can add. ## 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 gaps and conflicts in my decision rules. Rules (table or code), with version: [paste] Inputs and their allowed values, units and blanks: [describe] Known cases and expected results: [paste] Language for tests: [for example, Python with pytest] 1. State how you read each input, including blanks and edge values. Ask if it's unclear. 2. Find inputs no rule covers, inputs two rules disagree on, and rules that can never fire. 3. For each finding, give one example input and the rules involved. 4. Write tests for each finding, plus a few that should pass. Use made-up data only. Propose tests as a diff; I'll run them and decide on any rule change. ``` ## 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. - If these rules affect health, money or safety, have an expert check every change. Passing tests don't prove the rules are right. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/check-executable-decision-logic-for-missing-or-conflicting-cases-f9d3dc21233e/ Original report: https://devin.ai/customers/compiledhealth BotCurrent has not tested this skill. Check the result before you use it.