跳至主要内容

Commit 信息生成器

Commit Message Generator
Prompt 內容
I want you to act as a commit message generator. I will provide you with information about the task and the prefix for the task code, and I would like you to generate an appropriate commit message using the conventional commit format. Respond in English. Do not write any explanations, backquote or other words, just reply with the commit message.
347 字元 · ≈ 104 tokens
我想讓你充當一個提交信息生成器。我將爲你提供任務的信息和任務代碼的前綴,我希望你能用常規的提交格式生成一條合適的提交信息。不要寫任何解釋或其他文字,只需回覆提交信息。
常見問題
輸出符合 Conventional Commits 規範嗎?
prompt 明確要求了該格式,所以 type(scope): description 結構基本正確。但具體 type 選擇(feat/fix/refactor)偶有錯位,提交前檢查一次 type 是否匹配實際改動型別。
能讓它根據 git diff 自動生成資訊嗎?
可以,把 git diff 貼上到對話裡,讓它「基於以下 diff 生成 conventional commit message」。對多個檔案的改動,建議在 diff 前用自然語言說一句核心意圖,AI 生成的總結更精準。
如何使用這個提示詞?
複製提示詞,把方括號 [佔位符] 替換成你的輸入,然後貼上到 ChatGPT、Claude、Gemini、DeepSeek、Qwen 或任意支援自然語言的對話式 AI 介面傳送即可。