xiaohongshu
xiaohongshu
Detect potential file conflicts between active PRs and current work
Full skill instructions
Category: Operations Last Updated: January 2026
Proactively detect potential merge conflicts by comparing files changed in your current branch with:
Use Cases:
/conflict-check, "check conflicts", "file overlap"# Get current branch name
git branch --show-current
# Get files changed in current branch vs master
git fetch origin master
git diff --name-only origin/master...HEAD
Store as: current_branch_files
# List all open PRs (excluding current branch)
gh pr list --state open --json number,title,headRefName,files
Parse output:
FOR EACH PR:
- PR number
- Title
- Branch name
- Files changed
FOR EACH active PR:
overlap = intersection(current_branch_files, pr_files)
IF overlap is not empty:
ADD to conflicts list:
- PR #, title, branch
- Overlapping files
# Files changed in master since branch diverged
git log origin/master --name-only --pretty=format: --since="$(git log -1 --format=%ci HEAD~10)" | sort -u
Compare with current_branch_files for additional overlap risk.
If no conflicts:
✅ No file conflicts detected
Your branch: {branch-name}
Files changed: {N} files
Active PRs checked: {M} PRs
Safe to proceed with merge.
If conflicts detected:
⚠️ Potential Conflicts Detected
Your branch: {branch-name}
Files changed: {N} files
Overlapping PRs:
──────────────────
PR #{number}: {title}
Branch: {branch}
Overlapping files:
- src/server/api/SomeFile.cs
- src/client/pcf/Component/index.ts
PR #{number2}: {title2}
Branch: {branch2}
Overlapping files:
- CLAUDE.md
Recommendations:
1. Coordinate with PR owners on shared files
2. Consider merging one PR first, then rebase
3. If same session: designate file ownership
Run rebase after other PR merges:
git fetch origin master
git rebase origin/master
git push --force-with-lease
# Full conflict check (run this skill)
/conflict-check
# Manual: See files in other PRs
gh pr list --json number,title,files --jq '.[] | "\(.number): \(.title) - \(.files | length) files"'
# Manual: See specific PR files
gh pr view 101 --json files --jq '.files[].path'
# Manual: Compare branches
git diff --name-only HEAD origin/feature/other-branch
# Manual: See master changes since you branched
git log origin/master --name-only --oneline HEAD..origin/master
At project planning time, check for overlapping work:
DURING Step 1 (Validate SPEC.md):
→ Identify likely files to be modified (from spec scope)
→ Run /conflict-check to detect overlap with active PRs
→ WARN if significant overlap detected
→ ASK: Proceed anyway, coordinate, or wait?
At end of each task:
AFTER task completion, BEFORE commit:
→ git fetch origin master
→ Check if master has changes to files you modified
→ IF overlap: Recommend rebase before push
Before creating/updating PR:
DURING Step 1 (Pre-flight checks):
→ Run conflict check
→ IF conflicts: WARN and recommend resolution strategy
Running /conflict-check
│
├─ Fetch current branch files
│
├─ Fetch active PR files
│
├─ Calculate overlaps
│
└─ Overlaps found?
│
├─ NO → "✅ Safe to proceed"
│
└─ YES → Show overlapping files
│
├─ Same session owns both → "Merge PR #{X} first, then rebase"
│
├─ Different owners → "Coordinate with PR owner"
│
└─ Can split work → "Consider file ownership split"
User: /conflict-check
Output (no conflicts):
✅ No file conflicts detected
Your branch: feature/dark-mode
Files changed: 12 files
Active PRs checked: 3 PRs
Safe to proceed with merge.
Output (conflicts found):
⚠️ Potential Conflicts Detected
Your branch: feature/dark-mode
Files changed: 12 files
Overlapping PRs:
──────────────────
PR #98: chore: project planning updates
Branch: work/project-planning-and-documentation
Overlapping files:
- .claude/skills/INDEX.md
- CLAUDE.md
Recommendations:
1. PR #98 is close to merge - wait for it to complete
2. After merge: git fetch origin && git rebase origin/master
3. Then push your updated branch
worktree-setup - Parallel session managementpush-to-github - Pre-push conflict detectionproject-pipeline - Project planning overlap detectiontask-execute - End-of-task sync checkThis skill enables proactive conflict detection for parallel Claude Code development workflows.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience