.agents/skills/pr-review-merge-prep/SKILL.md
git checkout <base> -- <paths> writes the base version to the index as well, so restoring with git checkout -- <paths> reads back from that index and silently discards every fix made during review. Commit or amend first and restore with git checkout HEAD -- <paths>, or copy the files aside and put them back by hand. Confirm with git diff --stat before trusting the next test run.refs/heads/, such as refs/reviews/pr-<number>. Agents must not depend on FETCH_HEAD.git commit or git rebase: the repository's configured identity is already the right one. Check with git log -1 --format='%an <%ae> / %cn <%ce>' before every push, because merged history cannot be fixed.GIT_EDITOR=true).HEAD:<head-branch> refspec, since the work happens on a detached HEAD. The fork's repository name can differ from the upstream one; query it.Branch? row names a branch that has since shipped, the description keeps wording the review already corrected, and the component prefix can name the wrong package. Leave exactly one status label, and none the diff no longer justifies.Co-Authored-By trailers, no credit to AI tools anywhere: code, commit messages, PR titles and bodies, review comments, issue comments.