Claude-skill-registry git-hex-pr-workflow
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/git-hex-pr-workflow" ~/.claude/skills/majiayu000-claude-skill-registry-git-hex-pr-workflow && rm -rf "$T"
manifest:
skills/data/git-hex-pr-workflow/SKILL.mdsource content
Git-hex PR Workflow
When to use this Skill
This skill should be used when:
- The user wants to prepare a branch for PR submission with clean history
- The user is iterating on a PR after receiving review feedback
- The user asks about combining git-hex with GitHub/PR workflows
Trigger phrases include: "prepare a PR", "open a PR", "create a pull request", "address PR feedback", "update the PR", "force-push after rebase".
Workflow
-
Local craft (git-hex) - shape commits before pushing:
- Use
to inspect current historygit-hex-getRebasePlan - Use
+git-hex-createFixup
to clean upgit-hex-rebaseWithPlan - Use
if commits need to be broken apartgit-hex-splitCommit
- Use
-
Push to remote:
(safe force push)git push --force-with-lease
-
Remote collaboration - work with teammates:
- If the GitHub Plugin is installed: use its tools to create/update PRs, add reviewers, respond to comments
- Otherwise: use GitHub CLI (
) commands:gh
- create a pull requestgh pr create
- view PR detailsgh pr view
- update PR title/body/reviewersgh pr edit
- add commentsgh pr comment
-
After review feedback:
- Return to step 1 for more local craft
- Use
if a cleanup went wronggit-hex-undoLast
Tools to prefer
- Local craft: all git-hex tools (see branch-cleanup skill)
- Remote: GitHub plugin tools if installed, otherwise
CLIgh
Key insight
git-hex handles the local craft of shaping commits. Remote collaboration (via the GitHub Plugin from the Official Claude Plugin Marketplace, or standard
gh CLI) handles working with teammates.
Together, they cover the complete pull request lifecycle.