commit-session

Commit and push files modified in this session

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026⬇️1downloads

When & Why to Use This Skill

This Claude skill automates the essential developer workflow of validating, committing, and pushing code. It ensures project integrity by running local CI checks—such as formatting, linting, and testing—before selectively committing only the files modified during the current session, complete with automated commit message generation.

Use Cases

  • Automated Quality Gates: Automatically execute 'just format', 'clippy', and 'test' suites to ensure that no broken or unformatted code is pushed to the remote repository.
  • Focused Version Control: Isolate and commit only the specific files touched during a single coding session, preventing the accidental inclusion of unrelated local changes or 'work-in-progress' files.
  • Streamlined Developer Productivity: Reduce manual overhead by consolidating multiple Git and CI commands into a single automated action, allowing developers to focus on logic rather than workflow management.
  • Consistent Documentation: Generate concise and standardized commit messages (optimized for Japanese-speaking teams) to maintain a clean and professional Git history.
namecommit-session
descriptionCommit and push files modified in this session
allowed-toolsBash(git:*), Bash(just:*), Bash(cargo:*), Bash(leptosfmt:*)

Commit Session

Instructions

今回のセッションで修正したファイルのみをcommit、pushする。

  1. コミット前にCIチェックを実行
    • just format (自動修正)
    • just clippy
    • just test
  2. 全て通ったらセッション中に修正したファイルのみをgit add
  3. 変更内容を簡潔に日本語で記述したコミットメッセージを作成
  4. 現在のブランチにpush

Notes

  • コミットメッセージは日本語で簡潔に
  • セッション中に修正したファイルのみを対象とする
  • 全ての未コミット変更ではなく、今回の作業分のみ
  • CIチェックが失敗したらコミットせず、修正を行う