commit-docs

shin902's avatarfrom shin902

未コミットの変更を分析し、適切な粒度でコミットを作成してプッシュする。複数の独立した変更がある場合は論理的に分割し、各コミットが独立して動作することを保証する。コミットメッセージは日本語で記述し、「何をしたか」ではなく「なぜしたか」を伝える。

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 28, 2025⬇️1downloads

When & Why to Use This Skill

This Claude skill automates the Git version control workflow by intelligently analyzing uncommitted changes and organizing them into logical, atomic commits. It streamlines the development process by generating high-quality Japanese commit messages that focus on the 'why' behind changes, ensuring a clean and maintainable project history while automating the push to remote repositories.

Use Cases

  • Scenario 1: Organizing a cluttered workspace by automatically splitting multiple unrelated code changes into independent, logical commits to maintain repository integrity.
  • Scenario 2: Improving team collaboration by generating descriptive Japanese commit messages that explain the rationale and intent of code modifications rather than just the technical actions.
  • Scenario 3: Enhancing developer productivity by automating the repetitive cycle of checking status, staging files, committing with proper documentation, and pushing to remote branches.
namecommit-docs
description未コミットの変更を分析し、適切な粒度でコミットを作成してプッシュする。複数の独立した変更がある場合は論理的に分割し、各コミットが独立して動作することを保証する。コミットメッセージは日本語で記述し、「何をしたか」ではなく「なぜしたか」を伝える。

Git Commit & Push

未コミットの変更をコミットし、リモートにプッシュする。

手順

  1. git status --porcelain と git diff --stat で状況把握
  2. 関連する変更をグループ化し、適切な粒度でコミット
  3. git push でリモートに反映(必須)

コミットメッセージ

  • 日本語で記述
  • 最初の行は50文字以内
  • 動詞で開始(追加、修正、更新など)

注意

  • 機密情報や一時ファイルが含まれていないか確認
  • 複数の独立した変更は複数のコミットに分割