Agent Skills › CelestoAI/celesto › resolving-merge-conflicts

resolving-merge-conflicts

GitHub

用于解决 Git 合并或变基过程中产生的冲突。通过检查冲突文件、分析变更意图,保留双方逻辑并消除矛盾,随后运行自动化检查修复潜在问题,最终完成提交或继续变基流程。

.agents/skills/resolving-merge-conflicts/SKILL.md CelestoAI/celesto

触发场景

Git merge conflict detected Git rebase conflict encountered

安装

npx skills add CelestoAI/celesto --skill resolving-merge-conflicts -g -y
更多选项

非标准路径

npx skills add https://github.com/CelestoAI/celesto/tree/main/.agents/skills/resolving-merge-conflicts -g -y

不安装直接使用

npx skills use CelestoAI/celesto@resolving-merge-conflicts

指定 Agent (Claude Code)

npx skills add CelestoAI/celesto --skill resolving-merge-conflicts -a claude-code -g -y

安装 repo 全部 skill

npx skills add CelestoAI/celesto --all -g -y

预览 repo 内 skill

npx skills add CelestoAI/celesto --list

SKILL.md

Frontmatter
{
    "name": "resolving-merge-conflicts",
    "description": "Use when you need to resolve an in-progress git merge\/rebase conflict."
}
  1. See the current state of the merge/rebase. Check git history, and the conflicting files.

  2. Find the primary sources for each conflict. Understand deeply why each change was made, and what the original intent was. Read the commit messages, check the PRs, check original issues/tickets.

  3. Resolve each hunk. Preserve both intents where possible. Where incompatible, pick the one matching the merge's stated goal and note the trade-off. Do not invent new behaviour. Always resolve; never --abort.

  4. Discover the project's automated checks and run them, typically typecheck, then tests, then format. Fix anything the merge broke.

  5. Finish the merge/rebase. Stage everything and commit. If rebasing, continue the rebase process until all commits are rebased.

版本历史

  • 4740edc 当前 2026-10-18 21:50

同 Skill 集合

.agents/skills/cli-docs-guidelines/SKILL.md
.agents/skills/domain-modeling/SKILL.md
.agents/skills/handoff/SKILL.md
.agents/skills/improve-codebase-architecture/SKILL.md
.agents/skills/prototype/SKILL.md
.agents/skills/readme-guidelines/SKILL.md
.agents/skills/research/SKILL.md
.agents/skills/tdd/SKILL.md
.agents/skills/teach/SKILL.md
.agents/skills/triage/SKILL.md
.agents/skills/wait-what/SKILL.md
.agents/skills/wayfinder/SKILL.md
.agents/skills/wizard/SKILL.md
.agents/skills/writing-for-agents/SKILL.md
.claude/skills/cli-docs-guidelines/SKILL.md
.claude/skills/readme-guidelines/SKILL.md
.agents/skills/grill-me/SKILL.md
.agents/skills/grill-with-docs/SKILL.md

元信息

文件数
0
版本
4740edc
Hash
639b4508
收录时间
2026-10-18 21:50

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-02 03:46
浙ICP备14020137号-1