开发与测试
git-workflow
Commit message format and git workflow rules. ALWAYS use this skill for every git commit — no exceptions — and whenever rewording an existing commit message.
motlin · 已有静态检查记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add motlin/claude-code-plugins --skill git-workflow技能说明
name: git-workflow description: Commit message format and git workflow rules. ALWAYS use this skill for every git commit — no exceptions — and whenever rewording an existing commit message.
Git Workflow
Commit with the git:commit skill.
Commit Message Format
Every commit message is a single line: no body, no bullet list, no extra paragraphs. It:
- Starts with a present-tense verb (Add, Fix, Replace, Remove, Update, …)
- Is 60-120 characters
- Ends with a period
- Avoids praise adjectives (comprehensive, robust, essential, best practices)
A task description or prompt is intent, not the message. Distill a long or multi-line prompt to one line; never copy it verbatim. This applies to new commits and to rewording existing ones with git history reword.
Conflicts and Rebasing
Resolve conflicts with the git:conflicts skill.
Rebase the current branch on upstream with the git:git-rebase skill.
Prefer Modern Git Commands
git switchinstead ofgit checkoutfor switching branchesgit switch -cinstead ofgit checkout -bfor creating branchesgit restoreinstead ofgit checkout --for restoring filesgit restore --stagedinstead ofgit reset HEADfor unstaging filesgit replay --ontoinstead ofgit rebase --ontofor non-interactive onto rebasesgit history rewordinstead of interactive rebase or amending for editing commit messagesgit history splitinstead of interactive rebase for splitting commits