一键导入
git-sync-rebase
Safely sync a branch with origin/main using fetch + rebase, with an optional "accept current" conflict policy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Safely sync a branch with origin/main using fetch + rebase, with an optional "accept current" conflict policy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | git-sync-rebase |
| description | Safely sync a branch with origin/main using fetch + rebase, with an optional "accept current" conflict policy. |
Use this skill when you need to:
origin/main,git status --porcelain=v1 -bgit diff --statgit fetch --prune origingit add -A (or the user-specified scope)git rebase origin/maingit diff --name-only --diff-filter=UIf the user requested “accept current”:
For each conflicted file:
git checkout --ours -- <file>git add <file>Continue: git rebase --continue
If Git reports an empty commit: git rebase --skip
git status -sb should be cleangit push --force-with-lease and ask for confirmation.Improve acceptance criteria so they are testable, unambiguous, and complete.
Add an MCP integration section (tools, auth, error handling, observability, tests) to an existing spec.
Extract MUST/SHOULD/MAY requirements, constraints, flows, and open questions from long epic/PRD text (PDF/TXT export).
Identify edge cases, security/privacy issues, operational risks, and delivery risks in a spec.
Propose a safe rollout/migration plan with monitoring and rollback steps.
Produce a clear, review-ready SDD specification skeleton in Markdown.