AgentSkillsCN

git-pushing

以常规提交消息规范提交、暂存并推送 Git 更改。当用户希望提交并推送更改、提及要推送到远程仓库,或要求保存并推送其工作时,可选用此技能。当用户说“推送更改”、“提交并推送”、“推送这个”、“推送到 GitHub”或其他类似的 Git 工作流请求时,此技能也会自动激活。

SKILL.md
--- frontmatter
version: 4.1.0-fractal
name: git-pushing
description: Stage, commit, and push git changes with conventional commit messages. Use when user wants to commit and push changes, mentions pushing to remote, or asks to save and push their work. Also activates when user says "push changes", "commit and push", "push this", "push to github", or similar git workflow requests.

Git Push Workflow

Stage all changes, create a conventional commit, and push to the remote branch.

When to Use

Automatically activate when the user:

  • Explicitly asks to push changes ("push this", "commit and push")
  • Mentions saving work to remote ("save to github", "push to remote")
  • Completes a feature and wants to share it
  • Says phrases like "let's push this up" or "commit these changes"

Workflow

ALWAYS use the script - do NOT use manual git commands:

bash
bash skills/git-pushing/scripts/smart_commit.sh

With custom message:

bash
bash skills/git-pushing/scripts/smart_commit.sh "feat: add feature"

Script handles: staging, conventional commit message, Claude footer, push with -u flag.