Agent Skills
› FradSer/dotclaude
› commit-and-push
commit-and-push
GitHub用于通过标准 Git 命令创建符合 Conventional Commits 规范的原子化提交并推送到远程仓库。
Trigger Scenarios
commit and push
push changes
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


