Creates a commit with repo-matching style and intentional staging.
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
git add path/to/file1 path/to/file2
# or:
git add -A # when all changes belong to the commit to create
Verify the staged set before committing:
git diff --cached --stat
git diff --cached
If the staged diff contains unrelated changes, STOP and ask what to do.
Write a concise commit message
Infer commit style from recent subjects:
If recent subjects look like type(scope): msg, use Conventional Commits.
Otherwise, match the common pattern (caps, prefixes, ticket IDs, etc.).
Subject rules:
Imperative mood, no trailing period
Prefer ≤ 72 chars (or match repo norm)
Include scope only if the repo typically does
Body rules:
Add a body only if it answers "why" or prevents confusion:
Why this change is needed
Key tradeoffs or constraints
Notable side effects/follow-ups
Use a heredoc for the full message — it avoids all quoting/escaping issues.
Create the commit
Always use git commit -F - with a quoted heredoc delimiter so the shell
does not expand variables or backticks inside the message.
git commit -F - <<'COMMIT_MSG'type(scope): concise summary
COMMIT_MSG
# or with body:
git commit -F - <<'COMMIT_MSG'type(scope): concise summary
Body paragraph that can span multiple lines naturally.
No artificial splits, no embedded-newline breakage.
COMMIT_MSG