commit
Commit local changes with careful staging and single-line messages. Use for all git commit operations.
motlin · 已有静态检查记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add motlin/claude-code-plugins --skill commit技能说明
name: commit description: Commit local changes with careful staging and single-line messages. Use for all git commit operations.
Commit
Use the code:cli and git:git-workflow skills.
Inspect Context
git status
git diff --cached
git diff
git branch --show-current
git log --oneline -10
Stage Files
Stage only the files modified for the current task, individually:
git add <file1> <file2>
Never use git add ., git add -A, git commit -am, or anything else that stages unrelated changes.
Commit Message
If the user pasted a compiler or linter error, or the task is explicitly a fixup for a known commit, use git commit --fixup <sha>.
Otherwise write one line following the format in git:git-workflow. The prompt is the intent, not the message text: borrow its language, but distill a long or multi-line prompt to one line.
Echo exactly:
Running: `git commit --message "<message>"`
Then commit without confirming again with the user:
git commit --message "<message>"
If pre-commit hooks modify files, stage those files individually and retry. Never use git commit --no-verify.