/git:commitfrom git
Commit and push with a fixed safety floor — stage by name, refuse staged secrets, match the repository's message style. Use when the user asks to commit, save, or push code (e.g. "commit this", "提交代码", "push my changes").
Ships in git. 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.
None: SKILL.md is the whole skill.
Committing and pushing run the same flow every time: stage only what belongs to this change, refuse to commit secrets, and write a message that explains why.
This flow mirrors the host's standard commit workflow, spelled out so it holds identically on every host.
git status, git diff, and git log in parallel: what changed, what is untracked, and the repository's existing commit message style.git add -A or git add ...env files, private keys, credential files, tokens. If any are staged, stop and report instead of committing. Never create an empty commit.git log. Write the message in another language only when the user explicitly asks for it in this session.--no-verify or --no-gpg-sign; never touch git config.git push --force, never amend pushed commits, and never use git reset --hard to discard work.Report the commit message, the hash, and whether it was pushed.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mywsq/plugins --plugin git4 skills in this plugin
/cleanDelete local branches whose upstream is gone, along with their linked worktrees. Use when the user asks to clean up stale or gone branches (e.g. "clean up old branches", "清理分支", "clean gone"). Deletes only branches whose remote tracking branch is marked [gone]./prCommit, push, and open a pull request without ever switching the working tree's branch. Use when the user asks to open a PR, ship changes as a pull request, or says things like "open a PR", "commit and open a PR", "提交并开 PR". On the default branch it publishes the commit as a new remote branch instead of checking one out./pushCommit and push the current branch to its upstream, without opening a PR or changing branches. Use when the user asks to commit and push in one step, or says things like "commit and push", "提交并推送", "push this up". Pushes the branch that is already checked out, including the default branch.