fix-merge-conflicts
Sync the branch with the latest `origin/main`, merge `origin/main`, resolve conflicts end-to-end, then commit and push the current branch.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Sync the branch with the latest `origin/main`, merge `origin/main`, resolve conflicts end-to-end, then commit and push the current branch.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Refresh MoonMind services from git by fetching and pinning a branch snapshot, pulling compose images, then restarting changed containers with optional orchestrator inclusion.
Provide the shared fan-out engine used by provider-specific Jira and GitHub batch presets to enqueue child workflows with inherited runtime and stable evidence.
Discover open Dependabot version-bump PRs and enqueue one `pr-resolver` workflow for each.
Master orchestrator to resolve a PR by diagnosing state and delegating to specialized skills.
Verify a GitHub issue against the current repository state, then post a GitHub issue comment with a PASS, PARTIAL, FAIL, or BLOCKED verdict. Works in two modes: (a) feature-branch mode, comparing a checked-out branch to its base ref; or (b) main/trunk mode, verifying that an issue is already implemented on the current default branch. Optionally close the issue as completed after a PASS. Use when a user asks whether a branch or merged change completes a GitHub issue, or needs an issue-visible verification comment.
Resolve GitHub PR feedback end-to-end for the branch you are on. Use when you need to fetch all comments on the branch PR, evaluate whether each comment still applies, decide whether it should be addressed, implement fixes, run compile/tests with retry-on-failure, then commit and push the result.
| name | fix-merge-conflicts |
| description | Sync the branch with the latest `origin/main`, merge `origin/main`, resolve conflicts end-to-end, then commit and push the current branch. |
| metadata | {"publish":{"mode":"auto","owner":"agent","requiresEvidence":true,"verifyRemoteHead":"exact"},"required-capabilities":["git"]} |
Run this as an end-to-end sync and conflict resolution workflow:
main from origin.origin/main into the current branch.Fetch the latest main branch from origin, merge origin/main into the current branch, resolve all merge conflicts, verify no conflict markers remain, then commit and push.
git_local_name="$(git config --local --get user.name || true)"
git_local_email="$(git config --local --get user.email || true)"
git_env_name="${GIT_AUTHOR_NAME:-${GIT_COMMITTER_NAME:-${MOONMIND_GIT_USER_NAME:-MoonMind}}}"
git_env_email="${GIT_AUTHOR_EMAIL:-${GIT_COMMITTER_EMAIL:-${MOONMIND_GIT_USER_EMAIL:-noreply@moonmind.local}}}"
if [ -z "$git_local_name" ] || [ -z "$git_local_email" ]; then
if [ -z "$git_env_name" ] || [ -z "$git_env_email" ]; then
echo "git user.name and user.email are required for merge/commit; set them in environment or local config."
exit 1
fi
git config user.name "$git_env_name"
git config user.email "$git_env_email"
fi
main.git fetch origin main --prune.git status.main into the current branch.git merge origin/main.git diff --name-only --diff-filter=U.<<<<<<<, =======, and >>>>>>> blocks.git add <file> or git add -A.git commit (or git commit -m "Merge origin/main and resolve conflicts").git diff --name-only --diff-filter=U returns nothing.rg '^(<<<<<<<|=======|>>>>>>>)'git pushHEAD with git rev-parse HEAD and verify the exact same SHA is visible on the remote branch with git ls-remote origin refs/heads/<current-branch> or an equivalent trusted GitHub path.HEAD exactly matches the remote branch head.python3 .agents/skills/_shared/publish_evidence.py write-pushed \
--skill-id fix-merge-conflicts \
--repo "$REPO" \
--branch "$BRANCH"
python3 .agents/skills/_shared/publish_evidence.py write-no-op \
--skill-id fix-merge-conflicts \
--repo "$REPO" \
--branch "$BRANCH"
publish_unavailable:
python3 .agents/skills/_shared/publish_evidence.py write-blocked \
--skill-id fix-merge-conflicts \
--repo "$REPO" \
--branch "$BRANCH" \
--reason publish_unavailable
Do not report success.Provide:
git merge origin/main was clean, fast-forward, or conflicting.HEAD hash, plus pushed/verified branch.