AgentSkillsCN

commit-and-push

创建原子化的常规 Git 提交,并推送到远程仓库。

SKILL.md
--- frontmatter
name: commit-and-push
description: Create atomic conventional git commit and push to remote
user-invocable: true
allowed-tools: ["Bash(git:*)", "Read", "Write", "Glob", "AskUserQuestion", "Skill"]
argument-hint: "[no arguments needed]"
model: haiku
version: 0.1.0

Phase 1: Create Commits

Goal: Create all commits following conventional commits format

Actions:

  1. Invoke the /commit command to create all commits following conventional commits format

Phase 2: Push to Remote

Goal: Push commits to the remote repository

Actions:

  1. Once all commits are created, push the current branch to the remote repository
  2. Use git push (add -u origin <branch> if upstream is not set)