tpisoftwareospo/digirunner-open-source/git-commit-standardizer
Claude Code and agent skill by tpisoftwareospo/digirunner-open-source
- community
Checking that the SKILL.md file is still in the repository.
分析 git 暫存區(staged)變更,依本專案既有慣例產出 Conventional Commits 風格的繁體中文 commit 訊息。當使用者要求撰寫 commit message、產生提交訊息、整理本次 commit 或詢問改動應如何提交時使用。
Install
npx vskill@latest install tpisoftwareospo/digirunner-open-source/git-commit-standardizerSKILL.md
Git Commit Standardizer
當觸發此 skill 時:
- 使用 shell 執行
git diff --cached分析暫存區變更(不猜測未暫存內容)。若暫存區沒有任何變更,提醒使用者先git add要提交的檔案,不要臆測變更內容。 - 依差異判斷
type、scope、subject、Release Note 分類與 QA 測試需求,以繁體中文產出結果。
格式約束(必須嚴格遵守)
- Header:
<type>(<scope>): <subject>(括號不可省略) - QA 免測 Header:確認免測時,固定在 Header 結尾加上
(QA test free);不得使用其他拼法或大小寫變體 - Allowed type:
feat,fix,docs,refactor,chore,test,style,perf,ci,other other保留給真的無法歸入其他 type 的變更(本專案既有歷史 commit 大量使用other:),新 commit 應優先嘗試標準 type,只有明確歸不進去時才用other。- Subject:繁體中文、具體、不含空泛用語(「更新檔案」「修正問題」等),且 <= 50 字元
Release Note 與 QA 分類
每一則 commit message 都必須在 body 結尾輸出下列 Git trailer,供每週 Release Note 與 QA 清單自動彙整:
Release-Note 允許值
user:使用者可感知的功能、修正或效能改善,列入使用者版 Release Note。qa:不一定對外公告,但 QA 需要知道的產品或測試影響。internal:RD、建置、CI、文件或開發工具調整,僅列入內部紀錄。none:純機械性且無須列入 Release Note 的變更。review:無法從 staged diff 安全判斷,需人工確認。
QA 允許值
required:需要 QA 測試;應加上QA-Area: <受影響功能與建議驗證範圍>。not-required:QA 免測;Header 必須加上(QA test free),且必須加上QA-Reason: <免測理由>。review:無法安全判斷,需由 QA 或 RD 人工確認;Header 不得加上(QA test free)。
判定原則
- 只要涉及 runtime code、UI、API、權限、資料處理、i18n、套件、環境設定、build 或部署行為,預設
QA: required;資訊不足時使用QA: review。 refactor、chore、docs等 type 不等於 QA 免測,必須依 staged diff 的實際影響判斷。- 只有純文件、註解、AI/RD 本地開發工具設定、測試工具等明確不進入產品執行路徑的變更,才可判定
QA: not-required。 - dependency、build、CI、environment 或部署腳本即使屬內部調整,至少使用
QA: review,除非 staged diff 足以證明不影響產品與交付流程。 - 混合變更採較高風險分類;不得因部分內容屬 RD 調整,就將整筆 commit 標成免測。
Release-Note與QA是兩個獨立判斷,不得只依 Conventional Commit type 相互推定。
Scope 選擇規則
依 layout/ 底下的功能代碼分類,或依變更所在的共用層命名:
多處同時變更:選最核心或使用者最有感的模組作 scope。
Body
說明段落仍為選填,只有非直覺或較複雜的變更才加入,簡短說明「為何」與「採用的方法」。Header 與 body 之間空一行;結尾的 Release-Note 與 QA trailers 為必填。
預設輸出
預設輸出純 commit message 文字:
若使用者明確要求可執行指令,才改輸出:
若為 QA: required 或 QA: not-required,可執行指令的最後一個 -m 也必須分別包含 QA-Area 或 QA-Reason。
不要主動執行 git commit,除非使用者明確要求你直接送出提交。
範例
fix(ac05): 修正 Job 排程時間計算邏輯,避免跨時區誤判feat(ai00): 新增 AI Prompt Template 使用者自訂設定頁refactor(services): 統一 api-base.service.ts 的 rtnCode 錯誤處理docs(shared): 補充 dialog.component.ts 的動態掛載說明chore(config): 調整 angular.json 的 production budget 上限
QA 免測範例:
需要 QA 測試範例:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdgrv4_Gateway_serv/srcAngular/.agents/skills/git-commit-standardizer/SKILL.md
Popularity
- Repository stars
- 307
- Repository forks
- 15
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tpisoftwareospo/digirunner-open-source/git-commit-standardizer)