首页/ AI 技能 / @skilllib/skill-2014279375246536706
Skill站外收录 @skilllib/skill-2014279375246536706

commit-workflow

提供标准化的代码提交流程,自动分析暂存区变更、生成符合规范的提交信息,并同步更新文档,确保每次提交清晰表达意图、类型明确且与项目文档保持一致。

0.0 (0) 761 次安装 原作者 编程导航
收录于 2026-01-22
开发运维 AI 技能

Skills.MD

# Commit Workflow Complete workflow for creating commits following project standards. ## Process 1. **Use commit-creator agent** - Run `/commit-staged [context]` for automated commit handling - Or follow manual steps below 2. **Analyze staged files only** - Check all staged files: `git diff --cached --name-only` - Read diffs: `git diff --cached` - Completely ignore unstaged changes 3. **Commit message format** - First line: `{task-type}: brief description of the big picture change` - Task types: `feat`, `fix`, `refactor`, `docs`, `style`, `test`, `build` - Focus on 'why' and 'what', not implementation details - For complex changes, add bullet points after blank line 4. **Message examples** - `feat: implement user authentication system` - `fix: resolve memory leak in data processing pipeline` - `refactor: restructure API handlers to align with project architecture` 5. **Documentation update** - Check README.md for: - New features that should be documented - Outdated descriptions no longer matching implementation - Missing setup instructions for new dependencies - Update as needed based on staged changes 6. **Execution** - Commit uses HEREDOC syntax for proper formatting - Verify commit message has correct format - Don't add test plans to commit messages ## Best Practices - Analyze staged files before writing message - Keep first line concise (50 chars recommended) - Use active voice in message - Reference related code if helpful - One logical change per commit - Ensure README reflects implementation

评论 0

还没有评论,来抢沙发。