--- name: resolve-code-merge-conflicts-with-a-decision-log description: "Merge conflicts get fixed fast and the reason gets lost. Your AI proposes a fix that keeps both goals and writes down why. Use for: Resolve code merge conflicts with a decision log." --- # Resolve code merge conflicts with a decision log Merge conflicts get fixed fast and the reason gets lost. Your AI proposes a fix that keeps both goals and writes down why. ## What you need from the user - The conflicting code from both branches - One or two lines on what each change was meant to do - Your tests, or how you check the code works ## What to give back A proposed fix for each conflict, a note on how it keeps both goals and a list of tests to run. ## 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 resolve a merge conflict and log each decision. Goal of branch A: [describe] Goal of branch B: [describe] Conflicting code, both sides: [paste] How I check it works: [tests or steps] 1. Explain what each side changed and why it clashes. 2. Propose a merged version that keeps both goals. 3. If the goals truly conflict, stop and ask me to choose. 4. List tests that would prove both goals still work. 5. Write a short log entry for each decision. Suggest code only. I'll apply it, run the tests and push it myself. ``` ## 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 clean build doesn't prove both changes still work. Run the tests for both goals before you merge. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/reconcile-conflicting-agent-changes-with-an-explicit-decision-log-cddc8db28b7c/ Original report: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/autonomous-ai-agents/agent-merge-conflict-arbiter/SKILL.md BotCurrent has not tested this skill. Check the result before you use it.