From workflow
Use this skill when the user wants to prepare a branch for production, open a pull request, or hand off work for review. Trigger on phrases like "ship this", "prep for PR", "get this ready to merge", "open a PR", "create PR", "tạo PR", "make pull request", "push this up".
How this skill is triggered — by the user, by Claude, or both
Slash command
/workflow:ship-readyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create a pull request from the current branch to a destination branch. Use simple, short English for title and body.
Create a pull request from the current branch to a destination branch. Use simple, short English for title and body.
If user did not specify destination branch, ask:
"Which branch do you want to merge into? (e.g., main, develop, staging)"
Wait for user reply before continuing.
Run these commands in parallel:
git branch --show-current — get current branch namegit status --porcelain — check if working tree is cleangit log origin/$(git branch --show-current)..HEAD --oneline 2>/dev/null || echo "NOT_PUSHED" — check if branch is pushed to remotegit log main..HEAD --oneline 2>/dev/null || git log $(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')..HEAD --oneline 2>/dev/null — get commits ahead of basegit diff --stat HEAD~1 2>/dev/null || git diff --stat — get changed files summaryIf git status is NOT clean (output from git status --porcelain is non-empty):
"You have uncommitted changes: [show the dirty files]
Continue anyway? (yes/no)"
If branch NOT pushed to remote (remote tracking branch does not exist or commits ahead):
"Branch '[branch-name]' is not pushed to remote yet.
Continue anyway? (yes/no)"
If user says no to either → stop, tell user to fix then retry.
If user says yes → push branch first with git push -u origin [branch-name] then continue.
Analyze: current branch name + commits + changed files.
Rules for title:
feature/AUTH-123-... → include AUTH-123)Rules for body:
Use gh pr create:
gh pr create \
--base [destination-branch] \
--title "[generated title]" \
--body "$(cat <<'EOF'
[generated body]
EOF
)"
If gh not installed or not authenticated: tell user to run gh auth login first.
Show PR URL after creation. Done.
| Error | Action |
|---|---|
gh: command not found | "Install GitHub CLI: brew install gh then gh auth login" |
gh auth error | "Run gh auth login first" |
| Branch already has open PR | Show existing PR URL, ask if user wants to update description instead |
| Push rejected | Show error, ask user to fix conflict then retry |
| Destination branch does not exist on remote | Warn user, confirm to continue |
PR created: https://github.com/org/repo/pull/42
Title: Add user authentication with JWT
Branch: feature/auth → main
npx claudepluginhub nguyenhuy158/skills --plugin workflowGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.