--- name: turn-a-security-finding-into-a-fix-pr description: "A dashboard flags a weak spot, but someone still has to write the fix. Your AI checks the finding and drafts a fix for you to review. Use for: Turn a security finding into a fix PR." --- # Turn a security finding into a fix PR A dashboard flags a weak spot, but someone still has to write the fix. Your AI checks the finding and drafts a fix for you to review. ## What you need from the user - The finding, as written in your dashboard - The dependency list or code it points to - How the app should behave after the fix ## What to give back A short write-up of the finding, whether your code is affected, and a proposed fix 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 check a security finding and draft a fix. Finding, as written: [paste] Dependency file or code it points to: [paste] How the app should behave after the fix: [describe] 1. Confirm which package, version or code line the finding is about. 2. Say whether our code really uses the risky part, and how sure you are. 3. Propose the smallest fix, like a version bump or code change, as a diff on a new branch. 4. List tests to show nothing else broke. 5. Write a short PR summary for the reviewer. Don't run exploits or scans against live systems. Remove secrets before pasting. I'll review the PR and have a second person check it before merging. ``` ## 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. - A fix PR doesn't make you compliant by itself. Have a second person review security fixes. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/turn-a-reported-control-vulnerability-into-a-reviewable-fix-pr-5a8aac2136e1/ Original report: https://www.chatprd.ai/how-i-ai/grok-bot-agent-templates-and-workflows BotCurrent has not tested this skill. Check the result before you use it.