Agent Skills
› aiming-lab/MetaClaw
› git-workflow
git-workflow
GitHub提供Git工作流最佳实践,涵盖提交规范、分支管理及PR准则。适用于版本控制操作、代码审查及协作场景。
Trigger Scenarios
询问Git命令使用
解决合并冲突
创建或管理分支
代码审查
Install
npx skills add aiming-lab/MetaClaw --skill git-workflow -g -y
SKILL.md
Frontmatter
{
"name": "git-workflow",
"category": "coding",
"description": "Use this skill when working with git — making commits, creating branches, resolving merge conflicts, opening pull requests, or reviewing diffs. Apply whenever the user asks about version control operations."
}
Git Workflow Best Practices
Commits:
- Write commit messages in imperative mood:
Add feature X, notAdded feature X. - One logical change per commit. Do not bundle unrelated changes.
- Stage specific files (
git add <file>), notgit add .blindly.
Branches:
- Branch from the latest main/master:
git checkout -b feature/my-change. - Keep branches short-lived; merge or rebase frequently.
Pull Requests:
- Include a short description of why, not just what.
- Reference related issues (
Closes #123). - Keep PRs focused — one feature or fix per PR.
Never: force-push to shared branches, skip hooks with --no-verify, or commit secrets.
Version History
- 922caf3 Current 2026-07-25 11:08


