commit

Split current code changes into granular commits with structured messages using Git operations.

Updated Apr 17, 2025
One-click install
npx skills add https://github.com/nikawa2161/blog --skill commit-nikawa2161
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit
Source: https://github.com/nikawa2161/blog/tree/main/.claude/skills/commit
Command: npx skills add https://github.com/nikawa2161/blog --skill commit-nikawa2161

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers avoid messy, hard-to-review commit histories by splitting current changes into appropriately granular commits and proposing them automatically when changes are completed.

Core Features & Use Cases

  • Granular commit proposals: Groups related file modifications into meaningful commits to improve traceability.
  • Automatic commit messages: Generates clear, conventional messages for each group.
  • Use Case: When implementing a feature or fixing bugs across multiple files, you can review grouped changes and apply only the relevant commits.

Quick Start

To start, review your repository changes with git status and git diff, then categorize changes into logical groups. For each group, stage the files and create a commit with a structured message like "feat: describe the change".

Frequently Asked Questions about commit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I split mixed git changes into smaller, logical commits?

To split mixed git changes into granular commits, group related file modifications from your git diff and stage them separately. This ensures a clear, traceable Git history by creating structured commits for distinct features or bug fixes.

What is the best way to generate conventional commit messages automatically?

Generating conventional commit messages automatically involves inspecting the git diff, grouping related changes, and proposing structured formats like "feat: describe the change". This maintains consistency across software development workflows.

Do I need standard Git operations to group related file changes?

Yes, you need standard Git operations to group related file changes. The process requires using git status and git diff to inspect current changes before categorizing them into logical groups to perform structured commit actions.

When do I need to categorize repository changes into multiple commits?

You need to categorize repository changes into multiple commits when implementing features, fixing bugs, or refactoring across multiple files. This prevents messy, hard-to-review histories by proposing appropriately granular commits for each logical group.

Can I review and apply only specific grouped commits from my working directory?

Yes, you can review grouped changes and apply only specific commits. By categorizing changes into logical groups from your git status, you stage the relevant files for each group and create a commit independently.