done

Installation
SKILL.md

Done

Ship the current branch — either by updating an existing PR or merging locally to main.

Workflow

0. Pre-flight — verify repo requirements

Find and read whichever convention/instruction files apply to this repo and harness (e.g. AGENTS.md, CLAUDE.md, CONTRIBUTING.md, .cursor/rules/*, .github/copilot-instructions.md, .clinerules, etc. — follow any @-includes). Verify the branch satisfies the rules; fix or surface gaps before continuing.

1. Check for an existing PR

gh pr list --head "$(git branch --show-current)" --state open --json number,url --jq '.[0]'
  • If a PR exists → go to Step 2a (update PR)
  • If no PR exists → go to Step 2b (local merge)

2a. Update existing PR

Stage, commit, and push the current branch:

wt step push

Then post a comment on the PR summarizing the changes.

2b. Local merge to main

Merge the current branch into main using worktrunk:

wt merge --no-remove

Then push main to remote:

git push origin main

3. Update related ticket

If a related ticket is known (Jira, Linear, GitHub issue, etc. — from branch name, commit messages, PR body, or conversation context), update its status to reflect the ship:

  • PR updated → move ticket to "In Review" (or equivalent) if not already there
  • Merged to main → move ticket to "Done" / "Closed" / "Shipped"

If no ticket is obviously linked, skip this step — don't guess.

4. Confirm

Report what happened:

  • PR updated: print the PR URL
  • Merged locally: print the commit hash on main
  • Ticket updated: print the ticket ID and new status (if applicable)

Reference

For wt command details, see references/worktrunk.md.

Related skills
Installs
11
Repository
bonkey/skills
First Seen
Apr 5, 2026