ワンクリックで
commit-session
Commit files changed in the current Claude Code session, grouped into semantically coherent commits.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Commit files changed in the current Claude Code session, grouped into semantically coherent commits.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | commit-session |
| description | Commit files changed in the current Claude Code session, grouped into semantically coherent commits. |
| argument-hint | [--dry-run] |
| allowed-tools | Bash(*) Read Glob Grep |
Commit only the files that were changed during the current Claude Code session, organized into semantically coherent groups. Each group becomes a separate commit with a descriptive message.
Parse $ARGUMENTS for:
--dry-run (optional): Show the planned commit groups without actually committing. Default: false.Determine which files were changed in this session by examining the conversation context.
Scan the conversation history for:
cp, mv, script outputs).Cross-reference with git status --porcelain to confirm which of these files actually have uncommitted changes. Only include files that:
git status (modified, new, or deleted), ANDPresent the list:
## Session Changes
Modified:
- path/to/file1
- path/to/file2
New:
- path/to/file3
Deleted:
- path/to/file4
Not changed by this session (skipped):
- path/to/other_dirty_file (dirty but not from this session)
Group the session-changed files into semantically coherent commits. Criteria:
Use the conversation context to understand the purpose of each change and group accordingly. Changes made for the same user request or goal naturally belong together.
Present the grouping plan:
## Planned Commits
### Commit 1: <summary>
Files:
- path/to/file1 (modified)
- path/to/file2 (new)
Message: "<draft commit message>"
### Commit 2: <summary>
Files:
- path/to/file3 (modified)
Message: "<draft commit message>"
If --dry-run, stop here.
Otherwise, ask the user to confirm the plan. Accept adjustments (move files between groups, change messages, include/exclude files).
For each commit group, in order:
git add <file1> <file2> ...Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>.git status that the expected files were committed.Use heredoc format for commit messages:
git commit -m "$(cat <<'EOF'
<commit message>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
EOF
)"
Report:
## Commit Summary
| # | Commit | Files | Hash |
|---|--------|-------|------|
| 1 | <message> | N files | abc1234 |
| 2 | <message> | N files | def5678 |
...
Total: N commits, M files committed
Remaining dirty files: K (not from this session)
This skill is project-agnostic. Do NOT hardcode project-specific directory names, file patterns, or conventions into this file. Instead:
CLAUDE.md at runtime for project directory structure, conventions, and testing policies..gitignore at runtime for project-specific exclusion patterns.This keeps the skill portable across repositories.
git add -A or git add . — always add specific files.--no-verify).git log --oneline -10)./commit-all to handle those.