From yangsonhung-awesome-agent-skills
Commits and pushes current branch changes, auto-generating Conventional Commit messages with segmented body. Handles staging, upstream check, and safe push. For single-branch delivery.
How this skill is triggered — by the user, by Claude, or both
Slash command
/yangsonhung-awesome-agent-skills:git-pushing-fast-cnThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
在当前仓库的当前分支上,快速、安全地提交并推送本地改动。
在当前仓库的当前分支上,快速、安全地提交并推送本地改动。
默认结果是一个聚焦的 Conventional Commit,再推送到当前分支跟踪的远端。对于非简单改动,需要写分段提交正文,让评审者能按主题快速理解改动内容。
这个流程适用于普通单分支交付,例如把当前工作保存到远端;不处理分支合并、历史改写或 PR 创建。
当用户要求执行以下操作时使用本技能:
以下场景不要使用本技能:
git reset --hard、git checkout -- <file> 等破坏性命令按以下流程顺序执行。目标仓库、分支或推送目的地不明确时,停止并说明阻塞原因,不要猜测执行。
检查仓库状态。
git status --short、git branch --show-current 和 git remote -v。git rev-parse --abbrev-ref --symbolic-full-name @{u} 检查 upstream。git diff --cached --stat;如果没有暂存改动,再看 git diff --stat。暂存改动。
git add -A。git status --short,确认目标文件已经暂存。生成提交信息。
type(scope): 中文摘要。fix、feat、docs、refactor、test、chore、ci。分段正文示例:
fix(module): 调整组件行为
行为:
- 调整受影响组件的默认状态。
- 对不支持的输入保持原有行为不变。
实现:
- 将重复逻辑移动到小型辅助函数。
- 更新相关配置以使用新的辅助函数。
测试:
- 补充更新行为的覆盖用例。
- 推送前运行相关校验。
提交。
-m 参数或其他无交互方式执行 git commit,确保正文被完整保留。--no-verify。推送。
git push。git push -u origin <current_branch>,除非仓库或用户指定其他远端。git fetch 并检查差异再决定下一步。汇报。
npx claudepluginhub yangsonhung/awesome-agent-skillsCommits and pushes current changes on a single branch using Conventional Commit messages. Handles staging, message building, and push for quick handoffs.
Commits working-tree changes and pushes to the current branch without creating or switching branches.
Stages all changes, creates a conventional commit, and pushes to the remote branch. Use when the user wants to commit and push changes to GitHub or remote.