Skip to main content

mergiraf

Resolve Git merge, rebase, cherry-pick, or revert conflicts with Mergiraf as a deterministic first pass before using agent reasoning on remaining merge conflicts.

Datos de origen

Repositorio
nickytonline/skills
Última actividad en el origen
13 de septiembre de 2026 a las 14:29
Idioma detectado de SKILL.md
inglés
Estrellas
5
Forks
0

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Explorador de archivos
2 archivos

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
mergiraf
version
1.0.0
description
Resolve Git merge, rebase, cherry-pick, or revert conflicts with Mergiraf as a deterministic first pass before using agent reasoning on remaining merge conflicts.
user-invocable
true
argument-hint
[merge conflict or Git operation]
# Mergiraf Use deterministic conflict resolution before spending agent context reasoning about a merge conflict. ## Workflow 1. Ensure Mergiraf is installed: ```bash command -v mergiraf >/dev/null 2>&1 || "${SKILL_DIR}/scripts/install-mergiraf.sh" ``` 2. If you are **about to start** a merge, rebase, cherry-pick, or revert, check whether Mergiraf is already configured and applicable as Git's merge driver. Check the driver configuration: ```bash git config --get merge.mergiraf.driver ``` For files involved in the operation, check the applicable merge attribute where practical: ```bash git check-attr merge -- <file> ``` If Mergiraf is already active, run the Git operation normally. Git will give Mergiraf the deterministic first pass. Do not run `mergiraf solve` again on conflicts from that same operation just for the sake of running it. 3. If conflicts **already exist** and Mergiraf was not active for the operation, list unresolved files: ```bash git diff --name-only --diff-filter=U ``` Run Mergiraf on each appropriate unresolved file: ```bash mergiraf solve <file> ``` 4. Recheck unresolved paths: ```bash git diff --name-only --diff-filter=U ``` 5. Review Mergiraf's resolutions. A syntactically valid merge is not necessarily semantically correct. 6. Use agent reasoning only for conflicts that remain. Understand the intent of both sides. Never blindly choose `ours`, `theirs`, or concatenate both versions. 7. Run the project's available validation before continuing the interrupted Git operation. Use relevant tests, type checking, linting, formatting, and/or builds. ## Guardrails - Do not modify the user's Git configuration. - Do not abort an in-progress Git operation unless the user asks or continuing safely is impossible. - Do not commit unrelated changes. - Do not push unless the surrounding user task requires it. - Preserve compatible behavior from both sides of a conflict whenever possible.
Ver en GitHub