commit-and-push
创建 git 提交并推送
📖 中文导读:创建 git 提交并推送 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: commit-and-push allowed-tools: Bash(git add:), Bash(git status:), Bash(git commit:), Bash(git push:), Bash(gh pr create:*) description: Create a git commit and push
Context
- Current git status: !
git status - Current git diff (staged and unstaged changes): !
git diff HEAD - Current branch: !
git branch --show-current - Recent commits: !
git log --oneline -10
Your task
- Analyze the diff in depth - understand what changed and why
- Create a single commit with a clear, descriptive message
- Push to origin
- If on a feature branch: create a PR using
gh pr create - If on main: just push (no PR needed)