본문으로 건너뛰기
cccskills
무료GitHub에 공개

rebase-post-merge

Rebase the branch past a merge so a follow-up PR carries only new work

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md1.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Your task: rebase past the merge

This card's previous PR was merged, and a follow-up PR is now open on the same branch. The branch still carries the commits that PR merged, so the follow-up's diff replays work that has already landed. Your job is to drop those commits and leave only the work done since.

Workhorse tried this automatically and hit conflicts, which is why you have it.

The user message names the base branch and the merged PR's number.

  1. git fetch origin to refresh remote refs
  2. Get the merged PR's head commit: gh pr view <number> --json headRefOid -q .headRefOid. That commit is the last one the merge covered, so everything up to and including it is already on the base branch
  3. git rebase --onto origin/<base-branch> <that-sha> — this drops the merged commits by range rather than replaying them, which is what keeps the rebase clean. Do NOT use a plain git rebase origin/<base-branch>: it replays the already-merged commits and conflicts against the squashed form of the branch's own work
  4. Resolve any conflicts as they come. These are against genuine upstream changes, so use the card's specs, description, and conversation history to decide which side to favour. git add the resolved files and git rebase --continue
  5. Force-push with git push --force-with-lease origin <branch>
  6. Check for soft conflicts — the branch now sits on newer upstream code, so inspect the diff against local specs and code for assumptions the upstream changes invalidated. Use your judgement about what matters
  7. Report what the branch now contains, any conflicts you resolved and how, and any soft conflicts you found

If the rebase turns out to be unsalvageable, git rebase --abort and explain what blocked it rather than leaving the branch mid-rebase.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Check whether this card's code meets the acceptance criteria

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

beyondessential/tamanu92026년 10월 20일 업데이트

Summarise the unit and e2e tests a branch/PR adds, run only those, and produce a paste-ready report (e.g. for a Linear card). Use when asked to 'summarise added tests', 'run the new tests', 'what tests did this PR add', or to prove a card's test coverage.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

beyondessential/tamanu92026년 10월 20일 업데이트

Run a quick UX/UI workshop using ASCII-art sketches

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

beyondessential/tamanu92026년 10월 20일 업데이트

Write automated tests for unticked scenarios in this card's test cases

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

beyondessential/tamanu92026년 10월 20일 업데이트

Review code changes on this card for likely bugs, regressions, and missed edges

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

beyondessential/tamanu92026년 10월 20일 업데이트

Maintain a support docs pack — dedup, length budgets, and no splintering — and land changes as a reviewed pull request. Use when a support thread, or a hand-off from Support assist, surfaces a new resolution, a correction to an existing one, or a deployment quirk worth recording. Not for ordinary code changes.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

beyondessential/tamanu92026년 10월 20일 업데이트

beyondessential의 스킬 모두 보기

이 스킬의 문제 신고