AgentSkillsCN

git-push

快速完成 git add、commit 和 push 操作,并自动生成提交信息。

SKILL.md
--- frontmatter
name: git-push
description: Quick git add, commit and push with auto-generated message
argument-hint: [optional commit message]

Quick Git Push

Quickly commit and push all changes:

  1. Remove any problematic files (like Windows 'nul')
  2. Stage all changes with git add -A
  3. Create commit with provided message or auto-generate one
  4. Push to origin
bash
rm -f nul 2>/dev/null
git add -A
git commit -m "$ARGUMENTS"
git push

If no message provided ($ARGUMENTS is empty), generate a brief commit message based on the changed files.