一键导入
fix-jj-conflicts
Fix merge conflicts in a jj change and its ancestors, starting from the oldest conflict. Use only in clones that use Jujutsu.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Fix merge conflicts in a jj change and its ancestors, starting from the oldest conflict. Use only in clones that use Jujutsu.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review Rust changes for correctness, robustness, documentation quality, and test coverage.
Guidelines for writing Rust tests in OpenFirma.
Write Rust tests for OpenFirma crates while avoiding redundant coverage.
Review changes ahead of opening a new PR, modifying an existing one or on demand by the user.
Edit a pre-existing GitHub pull request for OpenFirma. Use whenever you are asked to make changes to commits, branches or bookmarks that would affect an open GitHub PR.
Open a GitHub pull request for OpenFirma. Use whenever you are asked to open a PR.
| name | fix-jj-conflicts |
| description | Fix merge conflicts in a jj change and its ancestors, starting from the oldest conflict. Use only in clones that use Jujutsu. |
Resolve all conflicts in a set of jj changes, starting from the oldest, then verify the result.
If $ARGUMENTS is empty, default to -b @.
$ARGUMENTS accepts one of these forms:
-s <rev> or --source <rev>: the revision and all descendants-b <rev> or --branch <rev>: the whole branch-r <revs> or --revisions <revs>: only the specified revisionsIf no flag is provided, treat the argument as -s <rev>.
jj log -r '(<target-revset>) & conflicts()'
Process conflicts from oldest to newest. In jj log output, the oldest change is closest to the bottom.
If no conflicts are found, report that and stop.
For each conflicted change:
jj log -r <conflicted-change>
jj diff -r <conflicted-change>
jj new -A <conflicted-change>
Resolve the files, remove all conflict markers, and describe the fix:
jj describe -m "CONFLICT FIX: <short description>"
If unsure about the correct resolution, ask the user rather than guessing.
Run:
just check
After each fix:
jj log -r '(<target-revset>) & conflicts()'
Skip downstream conflicts that disappeared after the ancestor fix.
After all conflicts are resolved, confirm no conflicts remain and verify the final state:
jj log -r '(<target-revset>) & conflicts()'
just check
Ask the user whether to squash fix changes into their parents:
jj squash --from <fix-change> --into <conflicted-change> -u
--ignore-immutable to a jj command.