Repository navigation
chore(skills): land a pull request and take the branch down - #73
Merged
Merged
Conversation
Landing has four commands and one trap: gh finishes a merge by switching the local checkout to main, which a worktree setup refuses, so the error it prints is the switch failing rather than the merge. Writing that down means the next session confirms what happened instead of believing the exit code. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Landing a pull request is four commands and one trap, and the trap costs a session every time it meets it:
gh pr mergefinishes by switching the local checkout tomain, which this repository's worktree setup refuses, so a merge that went through printsfatal: 'main' is already used by worktree at ...and reads as a failure. Themerge-and-clean-upskill writes the sequence down, including that the state of the pull request is what says whether it merged — not the exit code.What changes
.agents/skills/merge-and-clean-up/SKILL.md— wait for the checks, squash-merge, confirm againstgh pr view, thenfetch --prune, detach ontoorigin/mainand delete the branch. A failing check ends it rather than being merged past, and the worktree itself is never removed..claude/skills/merge-and-clean-up— the symlink the other skills use.Test plan
pnpm format— passfatal: 'main' is already used by worktree,gh pr view 72saidMERGED, andfetch --pruneplusswitch --detachplusbranch -Dtook the branch down on both sidesRisk
Documentation for an agent, with no code path behind it. A skill that is wrong makes a session do the wrong thing by hand, and the wrong thing here is a merge; that is why the skill stops on a red check and confirms the merge against GitHub rather than the exit code.
🤖 Generated with Claude Code