원클릭으로
commit
Use when the current session has changes ready to commit.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when the current session has changes ready to commit.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when updating the toolkit to a new version.
Use when code changes need review before merging or completing.
Use when diagnosing toolkit health issues or optimizing configuration.
Use when contributing generic improvements back to the toolkit repo.
Use when setting up or reconfiguring the toolkit for a project.
Use when existing code needs iterative quality improvement.
| name | commit |
| description | Use when the current session has changes ready to commit. |
| user-invocable | true |
| model | haiku |
| allowed-tools | ["Bash","Read","Grep","Glob"] |
Create a local commit containing only files touched in this session that are currently uncommitted. Does nothing if there are no uncommitted changes from the session.
| Rule | Description |
|---|---|
| 1. Session files only | Never commit files you did not touch in this session; cross-reference conversation history with git status. |
2. Never git add . | Always stage specific files by name; bulk staging risks committing unrelated changes. |
3. Use -F for messages | Write the commit message to a temp file and use git commit -F to avoid shell escaping and guard hook issues. |
| 4. No push, no amend, no force | Only create new local commits; never push, amend, or use --force/--no-verify. |
Run git status to find all uncommitted changes (staged, unstaged, and untracked files):
git status --porcelain
If the output is empty, stop immediately and tell the user there is nothing to commit.
From the uncommitted changes, identify which files were touched in this Claude Code session.
Detection strategy: Rely on your conversation history to identify files you created or modified during this session. Cross-reference with git status output to confirm they are actually uncommitted. Specifically:
git status --porcelain output to find files that are both session-touched AND uncommitted.Only include files that you (the AI assistant) created or modified during this session. Do NOT include:
If no session files have uncommitted changes, stop and tell the user there is nothing to commit.
Read the diff for the files to be committed:
git diff <files>
git diff --cached <files>
For untracked files, read their contents to understand what was added.
Stage only the session files:
git add <file1> <file2> ...
NEVER use git add . or git add -A. Only stage specific files you touched in this session.
Based on the diff, write a concise commit message that:
Write the message to a temporary file, then commit:
git commit -F /tmp/commit-msg.txt
Include the Co-Authored-By trailer:
Co-Authored-By: Claude <noreply@anthropic.com>
Show the user the commit hash and a brief summary:
Committed <hash>: <message>
Files: <list of committed files>
git add . -- always stage specific files by name--force or --no-verify-F for commit messages -- write message to a file first to avoid shell escaping issues