一键导入
conflicts
Continuously pull the latest main branch and resolve merge conflicts automatically. Polls every 90 seconds and exits after 10 consecutive clean cycles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Continuously pull the latest main branch and resolve merge conflicts automatically. Polls every 90 seconds and exits after 10 consecutive clean cycles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Automate the CI fix loop — trigger GitHub Actions (CI + audit), read failure logs, fix locally, push, and repeat until green. Use when CI is red and you want a hands-off remediation loop.
Create and push a version tag for a package (mobile, cli, or web) from the latest main branch.
Non-blocking approval flow for Permission Slip — request, optional push wake or detached watcher, heartbeat sweep backstop, end your turn, continue when woken.
Perform a comprehensive, multi-round code review on a GitHub PR. Leaves inline review comments prioritized by severity (Critical/High/Medium/Low) across up to 6 rounds, with 5-minute waits between rounds to check for fixes.
Poll a GitHub PR for new comments and PR reviews and act on them autonomously. Use when the user wants to monitor a PR for feedback and have Claude implement requested changes automatically.
| name | conflicts |
| description | Continuously pull the latest main branch and resolve merge conflicts automatically. Polls every 90 seconds and exits after 10 consecutive clean cycles. |
| disable-model-invocation | true |
Continuously fetch and merge the latest main branch into the current branch, resolving any merge conflicts automatically. Polls every 90 seconds and exits after 10 consecutive cycles with no conflicts.
Set these variables for the session:
IDLE_COUNT — 0 (tracks consecutive conflict-free cycles)MAX_IDLE — 10 (exit threshold)CYCLE — 0 (total cycle counter)Before starting the loop, ensure the working tree is clean. If there are uncommitted changes, commit or stash them before proceeding.
Poll every 90 seconds. On each cycle:
git fetch origin main
git merge origin/main --no-edit
If the merge succeeds with no new commits (already up to date):
IDLE_COUNT by 1.Cycle N: clean (IDLE_COUNT/MAX_IDLE consecutive clean cycles)If the merge succeeds with new commits but no conflicts (fast-forward or clean merge):
IDLE_COUNT to 0 — new commits merged counts as activity.Cycle N: merged new commits from main (no conflicts)If the merge produces conflicts, resolve them:
git diff --name-only --diff-filter=U to list all conflicted files.git diff origin/main..HEAD -- <file>) to understand what this branch intended to change.
c. Read the base branch version (git show origin/main:<file>) to understand what changed upstream.
d. Understand intent from both sides — check recent commit messages on both sides for context:
git log --oneline HEAD..origin/main -- <file>
git log --oneline origin/main..HEAD -- <file>
e. Resolve the conflict by editing the file to preserve the intent of both sides. Do NOT blindly accept "ours" or "theirs" — merge the logic correctly so both changes coexist. If the changes are truly incompatible (e.g., both sides renamed the same function differently), prefer the current branch's version.
f. Stage the resolved file with git add <file>.git commit -m "Merge origin/main: resolve conflicts in <list of files>"
make test) and build (make build) to verify the resolution didn't break anything. If tests fail, investigate and fix before proceeding.IDLE_COUNT to 0 — conflict resolution counts as activity.git push -u origin <current-branch>
Cycle N: resolved conflicts in <files> and pushedIf the conflict cannot be resolved confidently (e.g., large-scale structural changes on both sides that require product decisions):
git merge --abort)IDLE_COUNT to 0 (there was activity, even though it couldn't be resolved)If IDLE_COUNT >= MAX_IDLE (10 consecutive clean cycles with no conflicts):
No merge conflicts for 10 consecutive cycles (15 minutes). Exiting.Sleep for 90 seconds, then go back to step 1.
After exiting the loop, log a summary:
Conflicts skill session complete.
- Total cycles: N
- Conflicts resolved: X
- Clean cycles before exit: 10