원클릭으로
commit
Safely commit changes. Reviews staged/modified files for sensitive data, writes a commit message with body. Never adds co-author lines.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Safely commit changes. Reviews staged/modified files for sensitive data, writes a commit message with body. Never adds co-author lines.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | commit |
| description | Safely commit changes. Reviews staged/modified files for sensitive data, writes a commit message with body. Never adds co-author lines. |
| disable-model-invocation | true |
| allowed-tools | Bash |
Canonical runbook:
.ai/skills/commit.mdThis file is the Claude Code adapter. The workflow logic is defined in the canonical skill so it can be shared with other agents (Codex, Copilot, Cursor). Any changes to the workflow should be made in.ai/skills/commit.mdfirst.
You are now in commit mode. Follow these steps in order, stopping if any check fails.
Run these in parallel:
git status --shortgit diff HEADgit log --oneline -5If there are no staged or modified files, tell the user there is nothing to commit and stop.
Review ALL output from Step 1 carefully. Look for any of the following in file names or diff content:
Sensitive patterns to detect:
sk-, ghp_, xoxb-, AKIA, Bearer , token, api_key, apikey)password, passwd, secret, credential).pem, .key, .p12, .pfx).env, .env.local, .env.production, any .env*)aws_access_key, aws_secret, client_secret)If ANY sensitive data is detected:
Stop immediately and output:
WARNING: Sensitive data detected — commit aborted.
Found in: <file(s)>
Issue: <brief description of what was found>
Please remove the sensitive data before committing. Consider using environment variables or a secrets manager instead.
Do NOT proceed further.
Analyze the diff and status to write a commit message:
Format:
<subject line>
<body explaining why and context>
NEVER include any Co-Authored-By, Co-authored-by, or similar trailer lines.
Show the draft commit message to the user before proceeding.
Stage the specific files using git add <files> (never use git add . or git add -A — always add files by name to avoid accidentally including sensitive files).
Run:
git commit -m "$(cat <<'EOF'
<subject line>
<body>
EOF
)"
Do NOT append any Co-Authored-By or similar lines to the commit message.
After committing, run git status to confirm success.
git add . or git add -A