Skip to main content

commit

Create a well-formatted conventional commit

来源信息

仓库
spiriMirror/libuipc
最近来源活动
2026年3月6日 07:13
检测到的 SKILL.md 语言
英语
星标
338
分支
70

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
commit
description
Create a well-formatted conventional commit
disable-model-invocation
true
# Commit ## Overview Create a well-formatted, conventional commit locally. **Do NOT push unless the user explicitly asks to push.** ## Steps ### 1. Format Changed Files Run [format command](./format.md) on all changed C++ files before staging. ### 2. Stage Changes ```bash git add <files> ``` Or stage all changes: ```bash git add -A ``` Review what's staged: ```bash git diff --cached --stat ``` ### 3. Write Commit Message Use a temp file to avoid shell escaping issues (`output/` is gitignored): ```bash mkdir -p output/.cursor ``` Write the commit message to `output/.cursor/commit_msg.txt` following the [commit convention](../rules/commit-convention.mdc). ### 4. Commit ```bash git commit -F output/.cursor/commit_msg.txt rm -r output/.cursor ``` ### 5. Push (only if user explicitly requests) Only push when the user says "push", "commit and push", or similar. Otherwise, stop after step 4. ```bash git push ``` If the branch has no upstream yet: ```bash git push -u origin HEAD ```
在 GitHub 查看