一键导入
jksync
Sync the current branch with the repo's primary branch (main, master, preprod, etc). Pulls primary, switches back, merges in, pushes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Sync the current branch with the repo's primary branch (main, master, preprod, etc). Pulls primary, switches back, merges in, pushes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | jksync |
| description | Sync the current branch with the repo's primary branch (main, master, preprod, etc). Pulls primary, switches back, merges in, pushes. |
Detect the repo's primary branch: check git remote show origin for HEAD, then fall back to looking for main/master/preprod/develop in that order.
Steps:
git stashgit switch <primary> and git pullgit switch <original-branch>git pull (if an upstream is set for this branch)git merge <primary> — or git rebase <primary> if the branch's existing commits are already pushed and rebase is clearly wrong; default to mergegit pushgit stash popIf there are merge conflicts, stop immediately and describe which files conflict and what the conflict looks like. Do not attempt to resolve conflicts automatically.
Report what you did when finished: primary branch name detected, whether a stash was needed, final push status.
Format up an LLM answer into consistent personal markdown style — sentence-case headings and bullet lead-ins, plain dash bullets, no emoji, straight em-dash handling, italics not bold, optional 100-col wrap. Pass a file path to clean in place, or paste raw text to get the cleaned result back in chat.
A decorator on top of /loop with 5-minute timer and autocancel
Action GitHub PR review comments. Provide a PR URL to fix all open comments, or a specific comment URL to fix one.
Review the current branch's diff from a skeptic's perspective before pushing. Optional arg selects the reviewer persona.
Review a GitHub PR. Provide a URL to review without checking it out locally, or omit the URL if the branch is already checked out.
Commit, push, and open a draft PR with a written description. Use when ready to share work in progress for review.