All recipes

Git recipe

Resolve a merge conflict without losing intent

Understand both sides of a merge and work toward a resolution that preserves their behavior.

Step 1. Install the skill

Run this in your terminal. Select your agent and installation scope when prompted.

npx skills add latestaiagents/agent-skills --skill merge-conflict-surgeon

Requires Node.js and npm. CLI documentation

Step 2. Start with this prompt

Open your project in your agent and add any task-specific context.

Help resolve my current merge conflicts. Inspect git status, each conflicting file, and the intent of both branches. Explain the tradeoffs and propose a resolution that preserves intended behavior. Check for uncommitted work before making changes, and suggest tests for the combined result. Do not discard changes or rewrite history.

More recipes

Code review

Review a diff before you open the PR

Debugging

Find the root cause of a failure