commit-format
Ensures all git commits follow the Conventional Commits specification with consistent types and scopes. Use this skill when making any commit to maintain consistent commit message format, improve git history readability, and enable automatic changelog generation.
Best use case
commit-format is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Ensures all git commits follow the Conventional Commits specification with consistent types and scopes. Use this skill when making any commit to maintain consistent commit message format, improve git history readability, and enable automatic changelog generation.
Teams using commit-format should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/commit-format/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How commit-format Compares
| Feature / Agent | commit-format | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Ensures all git commits follow the Conventional Commits specification with consistent types and scopes. Use this skill when making any commit to maintain consistent commit message format, improve git history readability, and enable automatic changelog generation.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Commit Message Format All commits MUST follow the [Conventional Commits](https://www.conventionalcommits.org/) specification. ## Format Structure ``` <type>(<scope>): <description> [optional body] [optional footer] ``` ### Format Rules - **Type** (required): One of the types below, lowercase - **Scope** (optional, but recommended): Area of codebase affected, lowercase, in parentheses - **Description** (required): Short summary in imperative mood (e.g., "Add feature" not "Added feature") - **Body** (optional): Detailed explanation, wrapped at 72 characters - **Footer** (optional): Breaking changes or issue references ## Commit Types - `feat`: New feature for users - `fix`: Bug fix - `docs`: Documentation changes - `style`: Code style changes (formatting, whitespace, etc.) - `refactor`: Code refactoring (no feature change or bug fix) - `perf`: Performance improvements - `test`: Adding or updating tests - `build`: Build system or dependency changes - `ci`: CI/CD configuration changes - `chore`: Other changes (maintenance tasks, tooling, etc.) ## Common Scopes Scopes help categorize commits by area of the codebase. Examples: - `api`: API layer - `auth`: Authentication/authorization - `db`: Database related - `ui`: User interface components - `core`: Core business logic - `utils`: Utility functions - `tests`: Test files - `docs`: Documentation - `scripts`: Scripts and tooling - `config`: Configuration files - `deps`: Dependencies **Note**: Choose scopes that match your project structure. Scopes should be lowercase and descriptive. ## Examples ### Feature Commits ``` feat(api): Add GET /health endpoint feat(auth): Implement OAuth2 authentication feat(ui): Add user dashboard component feat(core): Add data validation layer ``` ### Fix Commits ``` fix(api): Handle shutdown state in health endpoint fix(db): Correct connection pool timeout fix(ui): Fix form validation error display fix(core): Resolve race condition in cache ``` ### Documentation Commits ``` docs(readme): Update setup instructions docs(api): Add API endpoint documentation docs(contributing): Add contribution guidelines ``` ### Test Commits ``` test(api): Add integration tests for health endpoint test(core): Add unit tests for validation layer test(ui): Add component rendering tests ``` ### Refactoring Commits ``` refactor(core): Extract validation logic into separate module refactor(api): Simplify error handling middleware refactor(db): Optimize query performance ``` ### Multi-scope Commits When changes span multiple areas, use the primary scope or omit scope: ``` feat: Implement authentication with API and UI updates fix: Resolve validation errors across core and api modules ``` ### Detailed Commits (with body) ``` feat(api): Implement GET /health endpoint - Track server start time for uptime calculation - Track shutdown state for unhealthy status (503) - Return status, timestamp (ISO 8601), uptime_seconds, version - Complete within 100ms Tests: - Add 5 integration tests for health endpoint - Test healthy status (200), timestamp format, uptime precision - Test response time (<100ms), shutdown status (503) Files: - src/api/main.py: Add /health endpoint with state tracking - tests/integration/api/test_health.py: Add comprehensive tests - docs/api.md: Update API documentation ``` ## Best Practices 1. **Be specific**: "Add health endpoint" is better than "Update API" 2. **Use imperative mood**: "Add feature" not "Added feature" or "Adds feature" 3. **Keep first line short**: < 72 characters when possible 4. **Include scope**: Helps categorize and filter commits 5. **Reference acceptance criteria**: Use AC-X.Y.Z format when applicable 6. **List files changed**: Especially useful for larger commits 7. **Group related changes**: One logical change per commit ## When to Use Each Type - **feat**: New functionality that users/consumers will see or use - **fix**: Correcting bugs or incorrect behavior - **docs**: Only documentation (README, comments, plans, etc.) - **test**: Only test files (new tests, test updates, test infrastructure) - **refactor**: Code restructuring without changing behavior - **chore**: Maintenance tasks, dependency updates, tooling changes ## Multiple Commits for Large Changes For large features, you may make multiple commits: ``` feat(api): Implement GET /health endpoint test(api): Add integration tests for health endpoint docs(api): Update API documentation ``` Or combine into a single detailed commit if all changes are tightly coupled. ## Common Edge Cases ### Handling Breaking Changes Use the `BREAKING CHANGE:` footer for breaking changes: ``` feat(api): Change response format BREAKING CHANGE: Response now uses snake_case instead of camelCase ``` ### Referencing Issues Reference issues in the footer: ``` fix(game): Resolve validation bug Fixes #123 ``` ### Combining Multiple Related Changes When multiple related files are changed for a single feature: ``` feat(core): Add timeout handling - Add timeout configuration to service layer - Implement timeout enforcement with ThreadPoolExecutor - Add fallback mechanisms for each service stage Files: - src/core/service.py: Core timeout logic - tests/integration/test_service.py: Timeout tests - docs/architecture.md: Update architecture documentation ```
Related Skills
pre-commit-validation
Ensures all quality checks pass locally before committing changes. Use this skill to validate code quality, tests, and type checking before creating commits to catch issues early and avoid CI failures.
test-writing
Defines patterns for writing tests, including subsection tests for incremental development and acceptance criteria verification. Use when writing any tests to ensure consistent naming, structure, and coverage patterns.
subsection-implementation
Complete workflow for implementing a single subsection from the implementation plan. Orchestrates all project skills to ensure consistent, high-quality implementation with full test coverage. Use when implementing any subsection (e.g., 5.1.1, 5.2.3) to automate the entire workflow from requirements to commit.
si
Short alias for /subsection-implementation. Implements a single subsection from docs/implementation-plan.md with full automation. Usage: /si 5.1.1
phase-implementation
Guides implementation of features following an established workflow pattern. Use when implementing any feature to ensure consistent process: read requirements, create todos, implement code, write tests, update documentation, commit and push.
implementation-plan-updates
Defines the pattern for updating project documentation when completing features. Use when marking features as complete to ensure consistent documentation of implementation status, test coverage, and deliverables.
api-endpoint-implementation
Defines patterns for implementing FastAPI REST endpoints, including route definition, request/response models, error handling, and integration tests. Use when implementing any API endpoint to ensure consistency and best practices across endpoints.
phase-space-transformation
Coordinate changes preserving dynamics
implementing-security-information-sharing-with-stix2
Create, validate, and share STIX 2.1 threat intelligence objects using the stix2 Python library. Covers indicators, malware, campaigns, relationships, bundles, and TAXII 2.1 publishing.
implementing-iso-27001-information-security-management
ISO/IEC 27001:2022 is the international standard for establishing, implementing, maintaining, and continually improving an Information Security Management System (ISMS). This skill covers the complete
subagent-commit
git-commit-message-generatorエージェントを利用して、commitメッセージを生成する
contextual-commit
Write contextual commits that capture intent, decisions, and constraints alongside code changes. Use when committing code, finishing a task, or when the user asks to commit. Extends Conventional Commits with structured action lines in the commit body that preserve WHY code was written, not just WHAT changed.