Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/tools-only/X-Skills --skill merge-safe명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Index of Build Systems Skills
Coordination patterns for distributed dataflow systems including barriers, epochs, and distributed snapshots
Windowing, sessionization, time-series aggregation, and late data handling for streaming systems
SOC 직업 분류 기준
SKILL.md 표시 중
| name | merge-safe |
| description | Check for conflicts before merging branches safely |
| shortcut | gm |
| category | git |
| difficulty | intermediate |
| estimated_time | 1 minute |
Analyzes potential merge conflicts before actually merging, showing you exactly what will conflict and suggesting resolution strategies.
You are a Git merge expert who helps avoid merge disasters. When user runs /merge-safe or /gm:
Identify current and target branches:
# Current branch
git branch --show-current
# Ask: "Which branch do you want to merge into current?"
Simulate the merge (don't actually merge):
# Test merge without committing
git merge --no-commit --no-ff [target-branch]
# Check for conflicts
git status
Analyze results:
If NO conflicts:
Merge will be clean!
Merging [target] into [current] will succeed without conflicts.
If conflicts exist:
️ Conflicts detected in [N] files:
1. src/api/users.js (12 conflicts)
2. src/components/Header.jsx (3 conflicts)
3. package.json (1 conflict)
Abort test merge:
git merge --abort
Suggest resolution strategy:
Ask user's choice:
Options:
1. Proceed with merge (I'll help resolve conflicts)
2. Review conflicts first (show me details)
3. Abort (not ready to merge yet)
Scenario 1: Clean merge
Checking merge safety: feature/add-login → main
SAFE TO MERGE
Analysis:
- 15 files will be changed
- 234 insertions, 12 deletions
- No conflicts detected
Proceed with merge? (yes/no)
Scenario 2: Conflicts detected
Checking merge safety: feature/redesign → main
️ CONFLICTS DETECTED
Files with conflicts:
1. src/styles/main.css
- You changed: line 45-67 (new button styles)
- They changed: line 50-60 (different button colors)
- Conflict type: Overlapping changes
2. README.md
- You changed: Installation section
- They changed: Same section (different content)
- Conflict type: Same lines modified
Strategy suggestions:
- main.css: Keep your styles, they're more complete
- README.md: Merge both changes (complementary)
Options:
1. Proceed and resolve conflicts now
2. Review detailed diff first
3. Merge specific files only
4. Abort and sync with team first
Example 1: Clean merge
User: /gm
You: Which branch to merge into [current: feature/dashboard]?
User: main
You:
Checking merge safety: main → feature/dashboard
SAFE TO MERGE
Changes:
- 8 files changed
- 145 insertions(+), 23 deletions(-)
- No conflicts
Files to be merged:
- src/api/auth.js (updated)
- src/components/Login.jsx (new)
- package.json (dependencies updated)
- ... (5 more files)
Proceed with merge? (yes/no)
User: yes
You:
git merge main
Result:
Merged successfully!
Updated feature/dashboard with latest from main.
Example 2: Conflicts found
User: /gm
You: Which branch to merge?
User: develop
You:
Checking merge safety: develop → feature/api-redesign
️ 3 CONFLICTS DETECTED
Conflict #1: src/api/users.js
├─ Your changes (lines 45-60): New validation logic
├─ Their changes (lines 50-65): Different validation approach
└─ Resolution: Choose which validation to keep (likely yours is newer)
Conflict #2: package.json
├─ Your changes: Added "axios": "^1.4.0"
├─ Their changes: Added "axios": "^1.3.0"
└─ Resolution: Keep higher version (1.4.0)
Conflict #3: src/config/database.js
├─ Your changes: Connection pooling settings
├─ Their changes: Different pool size
└─ Resolution: Merge both (they're compatible)
Recommended approach:
1. Resolve automatically: package.json (simple version conflict)
2. Review carefully: users.js (logic conflict)
3. Merge both: database.js (compatible changes)
Options:
1. Proceed with guided resolution
2. Show me full diff of conflicts
3. Abort and talk to team first
Your choice?
If on main/master branch:
️ You're on main branch
Merging INTO main is usually done via pull requests, not direct merge.
Better workflow:
1. Create feature branch: /branch-create
2. Make changes and commit
3. Create PR: /pr-create
4. Merge via GitHub/GitLab UI
Still want to merge? (yes/no)
If no target branch specified:
Which branch do you want to merge?
Common options:
- main (merge latest from main)
- develop (merge from develop branch)
- [other branch name]
Enter branch name:
If target branch doesn't exist:
Branch "feature/nonexistent" not found
Available branches:
- main
- develop
- feature/dashboard
- fix/memory-leak
Try again: /merge-safe
/commit-smart or /gc: Commit before merging/branch-create or /gb: Create new branchAlways check before merging - Prevents surprise conflicts
Merge main into your branch regularly - Reduces conflicts when creating PR
Resolve conflicts incrementally - Don't let branches diverge too far