--- name: catch-code-changes-that-break-security-rules description: "Security rules quietly slip as code changes. Your AI checks each rule against the code and tells you what moved. Use for: Catch code changes that break security rules." --- # Catch code changes that break security rules Security rules quietly slip as code changes. Your AI checks each rule against the code and tells you what moved. ## What you need from the user - Your security rules in plain words - The code files or repo to check - Last check's results, if any ## What to give back A table of your security rules, each marked kept, broken or unclear, with the code lines behind it. ## 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 Check my code against our security rules. Our rules (for example, every API route checks login): [list] Code to check, with secrets and keys removed: [paste files, or point to my repo and branch] Last check's results: [paste, or say none] 1. For each rule, find the code that keeps or breaks it, with file and line. 2. Mark each rule: kept, broken or unclear. Say why. 3. Compare with last time and list what changed. 4. Suggest a fix for each broken rule as a diff on a new branch. Read only; don't run scans or send alerts. I'll review fixes and get a second person to check security changes. ``` ## 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. - Unclear isn't the same as safe. Have a second person review any security fix before you merge it. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/detect-regression-in-repository-security-rules-b67d2b0d7f50/ Original report: https://cursor.com/marketplace/automations/monitor-engineering-invariants BotCurrent has not tested this skill. Check the result before you use it.