Agent skill
crafting-commits
Generates git commit messages following conventional commit standards with collaborative attribution. Use when user requests commit message creation, drafting, or help with formatting.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/crafting-commits
SKILL.md
Crafting Git Commits
A professional git commit message drafting service that follows modern conventional commit standards, provides collaborative attribution, and includes quality validation for reliable development workflows.
This skill follows the principle of progressive disclosure. This file contains the core workflow and high-level guidance. For more detailed information, please refer to the linked reference files.
Core Workflow
- Analysis: I start by analyzing the staged changes to understand the context.
git statusgit diff --stagedgit log --oneline -5
- Planning: I identify the commit type, scope, and assess any potential impact, including breaking changes.
- Validation: I use a detailed checklist to ensure the commit message meets all quality standards. See validation.md for the full checklist.
- Execution: I draft the commit message, add attribution, and execute the commit, verifying it in the git history.
Reference Documents
For detailed information, please refer to these files:
- examples.md: A comprehensive list of commit message examples for different scenarios (features, bug fixes, docs, etc.).
- validation.md: Detailed checklists for validating commits at all freedom levels.
- patterns.md: Advanced patterns, formatting best practices, attribution guidelines, and freedom levels.
- troubleshooting.md: A guide to common Git errors and recovery procedures.
Utility Scripts
This skill includes executable scripts for validation and analysis.
scripts/validate_commit.sh: Checks if a commit message follows the conventional commit format.scripts/check_attribution.sh: Validates theCo-Authored-Byformat in a commit message.scripts/analyze_changes.sh: Provides a summary of staged changes to help draft a commit message.
System Requirements
- Git version 2.25.0 or higher
- Bash shell access
- Standard Unix tools (
ls,grep, etc.)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?