skills/merge-conflicts/SKILL.md
Resolve merge conflicts on a pull request by merging the target branch into the source branch and fixing conflicts. Use when a PR has merge conflicts, a branch needs to be updated, or when asked to fix conflicts. Triggers on: fix merge conflicts, resolve conflicts, merge conflicts on PR, update branch, rebase PR.
npx skillsauth add mdmagnuson-creator/yo-go merge-conflictsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
⛔ CRITICAL: Check
git.autoCommitbefore completing merge commitTrigger: Before running
git commit --no-editin Step 5.Check: Read
project.json→git.autoCommit
- If
true(default): Proceed with commit normally- If
false: NEVER rungit commit— failure to comply violates project constraintWhen autoCommit is disabled:
- Stage resolved files:
git add <resolved-files>- Report: "Conflicts resolved and staged. Run
git commit --no-editto complete merge."- Wait for user confirmation before pushing
Resolve merge conflicts on a pull request by merging the target branch into the source branch and fixing all conflicts.
The user provides a PR number or URL. If not provided, ask for it.
Use gh pr view <PR> --json headRefName,baseRefName,title,body to get:
main)git fetch origin <baseRefName> <headRefName>
git checkout <headRefName>
Make sure the local branch is up to date with the remote:
git pull origin <headRefName>
git merge origin/<baseRefName> --no-edit
If there are no conflicts, you're done — skip to Step 6.
If there are conflicts, git merge will exit non-zero and list the conflicted files. Continue to Step 4.
For each conflicted file:
<<<<<<<, =======, >>>>>>>)HEAD side is the source branch (your PR's changes)main)git add <file>package-lock.json, bun.lock, go.sum, etc.): Delete the file, regenerate it by running the appropriate install command (npm install, bun install, go mod tidy, etc.), then stage it.git status for rename detection. If a file was renamed on one side and modified on the other, apply the modifications to the renamed path.After resolving all files, confirm no conflict markers remain:
grep -rn '<<<<<<< ' . --include='*' | grep -v node_modules | grep -v .git
If any markers are found, go back and fix them.
Once all conflicts are resolved and staged:
git commit --no-edit
This uses the default merge commit message that git prepared.
git push origin <headRefName>
data-ai
Generate verification contracts before delegating tasks to sub-agents, defining how success will be measured. Triggers on: verification contract, delegation contract, task verification, contract-first delegation.
testing
Verify that Vercel environment variables point to the correct Supabase project for each environment to prevent staging/production cross-wiring. Triggers on: vercel supabase check, environment alignment, env var check, supabase environment.
development
Manage codebase and database vectorization for semantic search. Use when initializing, refreshing, or querying the vector index. Triggers on: vectorize init, vectorize refresh, vectorize search, semantic search, vector index, enable vectorization.
testing
Patterns for XCUITest UI tests for native Apple apps (macOS/iOS). Use when writing or reviewing XCUITest tests for Swift apps. Triggers on: XCUITest, xcuitest, native app testing, Apple UI tests, SwiftUI tests, AppKit tests, UIKit tests.