done
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.
More from bonkey/skills
skills-manual
Guidelines for creating well-structured AI agent skills. Use when building a new skill, reviewing skill quality, or unsure how to organize a skill.
12decision-log
Lightweight ADR decision log that auto-captures plans. Use when planning a new feature, proposing architecture changes, tracking implementation decisions, exiting plan mode, or asking 'should I write a decision log'. Includes a Claude Code hook for automatic capture on ExitPlanMode.
12pr
Create, update, and manage pull requests. Use when asked to 'create a PR', 'update PR', 'close PR', 'check PR status', 'open a pull request', '/pr', or any pull request workflow.
11claude-plugin-creator
Create Claude Code plugins, skills, commands, agents, hooks, MCP servers, and marketplace files. Use when building a plugin, packaging skills for sharing, creating a marketplace, converting standalone config to a plugin, or deciding between plugin vs skill vs MCP vs standalone.
11