/skills:gitfrom skills
Automates Git workflows: commit/push with DCO sign-off, fork-and-PR creation, listing PRs, and squashing commits. Activates on PR, push, or fork requests.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Git workflow automation: commit/push and full PR lifecycle. Bundled helpers are in scripts/.
Set SKILL_DIR in the shell to the absolute parent directory of the loaded SKILL.md, not the current working directory or a host-provided variable. Run commands from the intended working directory (the target checkout for repo-local commands), not from SKILL_DIR.
Commit changes with DCO sign-off and push to origin.
git status, git diff --stat, git log --oneline -5git add -A)git commit -s -m "$(cat <<'EOF'
type: descriptive title
Detailed description of changes.
EOF
)"
git push origin $(git branch --show-current)git statusConventional types: feat, fix, docs, refactor, test, chore
Fork repos, create branches, commit changes, and submit PRs. Idempotent and safe to re-run.
# 1. Fork, clone, and create branch
bash "$SKILL_DIR/scripts/01-fork-and-setup.sh" \
owner/repo ~/code 1 main my-feature
# 2. Make your changes (use Edit tool)...
# 3. Auto-commit and create PR
bash "$SKILL_DIR/scripts/03-create-pr.sh" \
main "PR title" "PR description"
01-fork-and-setup.sh <repo> [work_dir] [depth] [base_branch] [feature_branch]
upstream and origin remotes, creates feature branch03-create-pr.sh <base_branch> <pr_title> [pr_body] [commit_message]
Current directory mode — use . as work_dir:
bash "$SKILL_DIR/scripts/01-fork-and-setup.sh" owner/repo . "" main fix/issue-123
bash "$SKILL_DIR/scripts/03-create-pr.sh" main "Fix issue #123"
# Your open PRs
bash "$SKILL_DIR/scripts/show-prs.sh"
# PRs requiring your review
bash "$SKILL_DIR/scripts/show-prs.sh" --require-review
Status: 🚧 Draft | ✅ Approved | ⚠️ Changes Requested | 👀 Needs Review
Squash all commits in a PR into a single commit with DCO sign-off.
gh pr view $PR_NUMBER --json commits,title,body
gh pr checkout $PR_NUMBER
N=$(gh pr view $PR_NUMBER --json commits --jq '.commits | length')
git reset --soft HEAD~$N
git commit --signoff -m "Comprehensive commit message"
git push --force-with-lease
Rebase a PR (or all open PRs) against target base branch and force push.
Single PR:
gh pr view $PR_NUMBER --json baseRefName,isCrossRepository
gh pr checkout $PR_NUMBER
git fetch $REMOTE
git rebase $REMOTE/$BASE_BRANCH
git push --force-with-lease
Batch mode — rebase all open PRs:
gh pr list --author "@me" --state open \
--json number,headRefName,baseRefName,isCrossRepository
For each PR: determine remote (upstream for forks, origin for same-repo), rebase, resolve conflicts, force push.
| Condition | Default Remote |
|---|---|
Fork PR (isCrossRepository: true) | upstream |
| Same-repo PR | origin |
gh CLI installed and authenticated, Git configured with name/email, SSH keys for GitHub-s flag)--force-with-lease for safe force pushingWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
git-automation, pull-requests, commit-signoff, fork-workflow
Other plugins' skills for the same job
16 skills in this plugin
/animateMake a black-and-white comic-style animated product demo — a single HTML page of timed scenes (logo slam, terminal walkthroughs, sessions messaging each other, feature grids) that loops in the browser and renders to a crisp GIF/MP4 for a README or landing page. Use whenever the user wants an animated intro, demo video, product showcase, README GIF, "动画介绍 / 动图 / 宣传动画", or asks for a comic / manga / ink / hand-drawn look for a demo — even if they only say "make the intro video better" or "the README GIF looks dull"./auto-devAutonomous development workflow - understand an issue, plan changes, implement with change notes, and run an iterative verify-fix loop until passing. Use this skill when the user mentions auto dev, fix a bug, implement a feature, develop a fix, autonomous development, work on an issue, debug this, make it work, implement this change, help me fix this test, or wants an end-to-end code-change workflow. Do NOT trigger for code explanation or review requests where no code changes are needed./auto-researchGenerate a program.md for autonomous AI research experiments (Karpathy's autoresearch paradigm). Interviews user about codebase, metric, and constraints, then produces a tailored program for an AI agent to iterate autonomously./chessRun or record a Chinese chess (象棋, Xiangqi) match between two models. Use for `/chess <red-model> vs <black-model>` and requests to set up a San Session Group showmatch, adjust its board or clean spectator view, or save game checkpoints. Not for Western chess or standalone position analysis./find-skillFind, compare, and optionally install agent skills from skills.sh, GitHub, and official sources. Use when someone asks what skills fit a task or project, wants to compare candidates, or asks to install a named skill. Installation requires explicit approval./jiraJira operations — sprint board, my issues, create/update/close/link issues. Triggers on sprint, issues, create, update, close, link, or any ACM-xxx mention.npx claudepluginhub yanmxa/skills --plugin skills