一键导入
commit-generator
Generate and validate repo-compliant commit messages using the local scaffold script and standards checker.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate and validate repo-compliant commit messages using the local scaffold script and standards checker.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | commit-generator |
| description | Generate and validate repo-compliant commit messages using the local scaffold script and standards checker. |
| argument-hint | Commit subject and optional metadata such as agent, role, or artifacts |
Use this skill when you need to create a normal repo commit and want to follow the repo's required LOG-* commit format without guessing.
Use it with:
LOG-* idLOG-* id that the local prepare-commit-msg hook will acceptUse this skill for normal commits that should carry the standard repo provenance body:
timestamp:changes:rationale:checks:notes: when neededproject:, agent:, role:, and commit: trailersDo not use this skill as a substitute for the commit checker. The script generates and registers the scaffold; the hooks and checker remain the enforcement gate.
Choose the commit subject and metadata.
--agent, --role, and optional --artifacts when they differ from the defaults.Generate a fresh scaffold.
sh scripts/new-commit-message.sh --subject "..." --agent <agent-id>.LOG-* id is new and locally registered.Fill in the body.
TODO entries under changes:, rationale:, and checks:.Validate before commit.
sh scripts/check-commit-standards.sh <path-to-message>.commit: id already exists, generate a new scaffold instead of editing the old LOG-* manually.Commit with the validated message.
git commit -F <path-to-message>.git commit -m ...; the repo hook should reject normal commits that did not come from the generator.Clean up temporary scaffold files when they are no longer needed.
When you are about to make a normal commit, prefer this flow over hand-writing the commit body from scratch.
If the operator asks you to commit, the safe default is:
Escalate instead of guessing when:
role: or artifacts: values are ambiguouschanges:, rationale:, and checks: concrete and auditable