一键导入
git-commit-log-writer
Fast, low-token commit message generation with optional direct git commit execution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Fast, low-token commit message generation with optional direct git commit execution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | git-commit-log-writer |
| description | Fast, low-token commit message generation with optional direct git commit execution. |
Generate mode.Execute mode only for explicit commit-now intent (commit this/now/just commit/go ahead and commit, including equivalent Chinese intent).Execute mode, rebase with upstream before commit when an upstream branch exists.Run in this order and stop as soon as confident:
git status --short
git diff --staged --name-status
git diff --name-status
If still unclear, inspect only target files:
git diff --staged -- <file>
git diff -- <file>
Only when needed, use full patch views:
git diff --staged
git diff
Optional style fallback:
git log -30 --pretty=%s
<Verb> <primary component/change> [and <secondary change>]Add, Refactor, Enhance, Implement, Update, Fix, RemoveSubject: <one-line subject>
Body (optional):
- <change point 1>
- <change point 2>
Commands:
git pull --rebase --autostash # when upstream exists
git add <files or -A>
git commit -m "<subject>"
Body form when needed:
git commit -m "<subject>" -m "<bullet 1>" -m "<bullet 2>"
git rev-parse --abbrev-ref --symbolic-full-name '@{u}'@{u} in PowerShell; it is parsed as a hash literal before Git receives it.git pull --rebase --autostash.git add <scoped files>.git add -A only when user intent is clearly commit-all.Committed: <subject>
Commit: <short-hash>
Files: <count or list>
Use git log -1 --oneline for the hash. If nothing is commit-ready, state it clearly.
update stuff.--amend unless explicitly requested.