generating-conventional-commits
Generates conventional commit messages using AI. It analyzes code changes and suggests a commit message adhering to the conventional commits specification. Use this skill when you need help writing clear, standardized commit messages, especially a...
- License 许可
- MIT
- 最近更新
- 2025-12-18
- Stars
- ★ 29
- Forks
- 9
01 前言 Front Matter
- name
- generating-conventional-commits
- license
- MIT
- description
- Generates conventional commit messages using AI. It analyzes code changes and suggests a commit message adhering to the conventional commits specification. Use this skill when you need help writing clear, standardized commit messages, especially a...
- allowed-tools
- [ "Read", "Write", "Edit", "Grep", "Glob", "Bash" ]
02 资源文件 14
- 资产文件assets/commit_message_template.txt3.8 KB
- 资产文件assets/example_code_diff.txt3.4 KB
- 资产文件assets/README.md225 B
- 参考文档references/cli.md4.9 KB
- 参考文档references/coverage.md3.9 KB
- 参考文档references/overlap.md3.6 KB
- 参考文档references/python-api.md4.1 KB
- 参考文档references/README.md352 B
- 参考文档references/refget.md3.1 KB
- 参考文档references/tokenizers.md2.4 KB
- 脚本scripts/generate_commit_message.py7.6 KB
- 脚本scripts/README.md356 B
- 脚本scripts/suggest_commit_type.py10.7 KB
- 脚本scripts/validate_commit_message.py4.2 KB
03 SKILL.md 正文
Overview
This skill helps you create well-formatted, informative commit messages that follow the conventional commits standard, improving collaboration and automation in your Git workflow. It saves you time and ensures consistency across your project.
How It Works
- Analyze Changes: The skill analyzes the staged changes in your Git repository.
- Generate Suggestion: It uses AI to generate a commit message based on the analyzed changes, adhering to the conventional commits format (e.g.,
feat: add new feature,fix: correct bug). - Present to User: The generated commit message is presented to you for review and acceptance.
When to Use This Skill
This skill activates when you need to:
- Create a commit message after making code changes.
- Ensure your commit messages follow the conventional commits standard.
- Save time writing commit messages manually.
Examples
Example 1: Adding a New Feature
User request: "Generate a commit message for these changes."
The skill will:
- Analyze the staged changes related to a new feature.
- Generate a commit message like
feat: Implement user authentication.
Example 2: Fixing a Bug
User request: "Create a commit for the bug fix."
The skill will:
- Analyze the staged changes related to a bug fix.
- Generate a commit message like
fix: Resolve issue with incorrect password reset.
Best Practices
- Stage Changes: Ensure all relevant changes are staged before using the skill.
- Review Carefully: Always review the generated commit message before accepting it.
- Customize if Needed: Feel free to customize the generated message to provide more context.
Integration
This skill integrates with your Git workflow, providing a convenient way to generate commit messages directly within Claude Code. It complements other Git-related skills in the DevOps Automation Pack, such as /branch-create and /pr-create.
04 同仓库更多 Skills
testing-visual-regression
Detect visual changes in UI components using screenshot comparison. Use when detecting unintended UI changes or pixel differences. Trigger with phrases like "test visual changes", "compare screenshots", or "detect UI regressions".
generating-unit-tests
Automatically generate comprehensive unit tests from source code covering happy paths, edge cases, and error conditions. Use when creating test coverage for functions, classes, or modules. Trigger with phrases like "generate unit tests", "create tests for", or "add test coverage".
generating-test-reports
Generate comprehensive test reports with metrics, coverage, and visualizations. Use when performing specialized testing. Trigger with phrases like "generate test report", "create test documentation", or "show test metrics".
orchestrating-test-execution
Coordinate parallel test execution across multiple environments and frameworks. Use when performing specialized testing. Trigger with phrases like "orchestrate tests", "run parallel tests", or "coordinate test execution".
managing-test-environments
Provision and manage isolated test environments with configuration and data. Use when performing specialized testing. Trigger with phrases like "manage test environment", "provision test env", or "setup test infrastructure".
generating-test-doubles
Generate mocks, stubs, spies, and fakes for dependency isolation. Use when creating mocks, stubs, or test isolation fixtures. Trigger with phrases like "generate mocks", "create test doubles", or "setup stubs".