원클릭으로
rebase
Resolve conflicts and rebase a branch that has fallen behind its base to restore PR mergeability
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Resolve conflicts and rebase a branch that has fallen behind its base to restore PR mergeability
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Implement a feature or bug fix in this codebase based on the provided task description
Debug Syrus deployments via the /api/v1/admin REST API. Use when the operator asks about stuck Jobs, failed Runs, queue starvation, MCP / claude-session issues, or any "what's going on with X" question that would otherwise need kubectl exec + Rails runner.
| name | rebase |
| description | Resolve conflicts and rebase a branch that has fallen behind its base to restore PR mergeability |
$ARGUMENTS
Your job is to make it mergeable again. Specifically:
git fetch origin <base_branch> (the base branch name is given in the context above) so you have the latest base.git rebase origin/<base_branch> (you are already on the branch specified in the context).git add <resolved files> && git rebase --continue)
until it completes.git rebase --abort) and explain
in submit_summary. Do NOT push a half-rebased branch.Syrus will force-push the rebased branch to origin once you finish — your only job is to leave the working tree on a clean rebased HEAD.
Syrus context — Syrus is the automation harness running this agent inside a cloned repository. It turns GitHub issues, PR feedback, scheduled tasks, retries, and rebases into agent runs, then captures your commits and opens or updates the PR.
Before you start, Syrus may run setup commands from .syrus.yml
at the repo root. Supported shape:
prepare: - bundle install - npm ci
prepare: [] or prepare: false opts out. If .syrus.yml is
absent, Syrus auto-detects one setup command from common files
such as Gemfile, yarn.lock, pnpm-lock.yaml,
package-lock.json, or package.json. Do not edit .syrus.yml
unless the task asks you to fix setup itself.
Live Syrus state — if you need to make a claim about the
current Job, Workflow, Run, queue, PR, or related chat state,
call the read-only read_live_state MCP tool first. Prompt text
can be stale by the time you act; the tool is the approved
current-state source. Do not use it to mutate jobs or queues.
Git pipeline contract — Syrus runs your work through:
commit_agent_changes → git diff origin/<default_branch>...HEAD → push → open PR
For that pipeline to work, your branch's HEAD must share history with the repo's default branch. Don't break that invariant. In particular, NEVER run any of these mid-run:
git checkout --orphan ... / git switch --orphan ...git reset --hard <unrelated commit>git rm -r . followed by re-adding everythingrm -rf .git && git initgit update-ref on HEAD or refs/heads/*git commit-tree produced by yourself, then attached to HEADIf a tool gives you trouble (a Rails task fails because dev gems aren't installed, a linter blows up, etc.), surface that in the run's requested reporting channel instead of working around it via destructive git ops. Syrus would rather record "I couldn't do X because Y" and let the operator decide than have your branch silently land on an orphan and lose the work.
Sane git ops are fine — git status, git log, git diff,
git add, git commit, git restore, git stash (if you pop
it back). git rebase and git merge against <default_branch>
are also fine — they preserve history.