Skills Plugins MCP Prompt Model 博客 我的中心

pull-changes-resolve-conflicts

Standard workflow for pulling updates from main or other branches on multi-contributor projects (including Flows apps) without silently discarding work. Guides fetching/merging, requires listing merge conflicts explicitly, analyzing ours vs theirs using conversation history and repo context, presenting prioritized recommendations, and obtaining user answers before editing conflict markers or completing the merge. Triggers: pull main, merge main, merge origin, rebase, merge conflict, unmerged paths, both modified, integrate branch, sync with main, git merge abort, resolve conflicts, UU status, theirs vs ours, feat branch update.

DeepseekModel 官方收录技能 质量 良好 · 64 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=cognitedata-builder-skills-skills-pull-changes-resolve-conflicts-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name pull-changes-resolve-conflicts description Standard workflow for pulling updates from main or other branches on multi-contributor projects (including Flows apps) without silently discarding work. Guides fetching/merging, requires listing merge conflicts explicitly, analyzing ours vs theirs using conversation history and repo context, presenting prioritized recommendations, and obtaining user answers before editing conflict markers or completing the merge. Triggers: pull main, merge main, merge origin, rebase, merge conflict, unmerged paths, both modified, integrate branch, sync with main, git merge abort, resolve conflicts, UU status, theirs vs ours, feat branch update. allowed-tools Read, Glob, Grep, Shell, Write metadata {"argument-hint":""} Pull changes & resolve merge conflicts Use this skill whenever integrating another branch (usually main ) into the current feature branch, or when git status shows unmerged paths after a merge or rebase. Applies to any Git-based team workflow; Flows/React apps are a common case where conflicts cluster in app shells and shared libraries. Goals Preserve intentional work on the current branch; do not assume “main wins” or “ours wins” without analysis. Make trade-offs visible to the user before any conflict resolution edits. Order discussion by impact : structural / feature / API / data-model changes before styling, copy, or spacing. Hard rules No silent resolution — Do not remove <<<<<<< / ======= / >>>>>>> or run git add on conflicted files until the user has agreed to the plan (or explicitly says “use your recommendations”). Stop at conflicts — If a merge or rebase introduces conflicts, pause and report; do not bulldoze through large files by picking one side wholesale unless the user explicitly requests that. Prioritize impact — When presenting conflicts, group and order roughly as: P0 — Structural / product: removed routes, deleted modules, dropped features, changed data or API contracts, SDK or schema changes, auth or routing shell. P1 — Behavior: logic, hooks, queries, filters, error handling, loading states. P2 — UI structure: layout regions, new or removed sections, navigation. P3 — Presentation: tokens, spacing, class names, copy tweaks. Workflow 1. Fetch and integrate (or diagnose) Prefer git fetch then git merge origin/main (or the named branch) unless the user asked for rebase. If merge is already in progress, run git status and list every unmerged file. 2. Report conflicts to the user (explicit) Output a clear list: Branch state: current branch, target branch (e.g. origin/main ), merge vs rebase. Unmerged files: paths only, then optionally git diff --name-only --diff-filter=U . Per file (short): one line on what diverged (e.g. “ AlertsPage — layout + new data scope”) if inferable from paths and git diff without resolving. 3. Analyze before editing Use all of: Conversation history — What was the user or team trying to ship on this branch? Repo signals — Product or architecture docs if present (e.g. PRD.md ), recent commits on the current branch, file ownership (e.g. large feature module vs shared lib/ ). Conflict hunks — git show :2:path (ours) vs git show :3:path (theirs) during merge, or read conflict markers; identify duplicated vs orthogonal changes. Classify each conflicted area as: Orthogonal — safe to combine (e.g. import sort + new prop). Overlapping — must choose or manually merge (same lines). Corruption risk — duplicated blocks (common after bad merges); flag and recommend reconstructing from one side then re-applying the other side’s intent manually. 4. Recommendations + questions (required) Present to the user: Summary table or bullets — file → recommended side or “manual merge” → one-line why . Ordered by P0 → P3 — call out anything that removes a feature or changes public behavior first. Explicit questions — anything ambiguous (e.g. “Keep main’s global behavior or the branch’s scoped variant?”). Ask for direction — e.g. “Reply with: (a) follow recommendations, (b) keep branch for file X, (c) keep main for file Y, (d) abort merge.” Only after the user confirms (or gives a precise mapping), apply resolutions: Prefer small, surgical edits; preserve both sides’ intent when possible. Re-run git status ; ensure no conflict markers remain; run tests or lint the user cares about for touched areas. 5. If the user wants to abort git merge --abort or git rebase --abort as appropriate; confirm they lose in-progress integration state for that operation. Anti-patterns (do not do) Picking --ours / --theirs on the whole repo without user approval. “Resolving” by deleting a feature branch’s work because main touched the same file. Hiding conflict lists inside a long code dump without a short executive summary. Fixing low-impact style conflicts first while leaving P0 decisions implicit. Quick reference Ours vs theirs (merge): stage 2 = current branch ( HEAD ), stage 3 = incoming ( MERGE_HEAD ). Verify with git checkout --conflict=merge <file> if needed. Typical high-touch paths in full-stack or Flows apps: root app shell, top navigation, route modules, and shared lib/ or hooks/ . For optional command snippets and a merge message template, see reference.md .
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。