Agent Skills
› FradSer/dotclaude
› commit-and-push
commit-and-push
GitHub使用标准 Git 命令创建符合 Conventional Commits 规范的原子化提交,并自动推送到远程仓库。适用于需要规范代码提交和推送的场景。
Trigger Scenarios
用户要求 commit and push
用户要求 push changes
完成提交后执行 git push
Install
npx skills add FradSer/dotclaude --skill commit-and-push -g -y
SKILL.md
Frontmatter
{
"name": "commit-and-push",
"description": "Creates clean conventional git commits using standard git and pushes changes to the remote repository. Use when the user asks to \"commit and push\", \"push changes\", or complete a commit followed by git push.",
"allowed-tools": [
"bash"
],
"argument-hint": "[optional commit message or instructions]",
"user-invocable": true
}
Commit and Push Skill (Standard Git)
Create clean, atomic Conventional Commits using standard git commands and push them to origin.
Workflow
- Inspect status and diff:
git status --porcelain git diff --staged git diff - Stage files:
git add <file1> <file2> ... - Commit:
Formulate a Conventional Commit message and commit:
git commit -m "<type>(<scope>): <summary>" - Push:
Detect current branch and push:
If pushing a new branch for the first time, appendBRANCH=$(git branch --show-current) git push origin "$BRANCH"-u:git push -u origin "$BRANCH"
Version History
- 6f2a0b2 Current 2026-08-20 10:58


