Approved catalog listing
SKILL #4508
skillshunter.net
Home / Software & Development / Sc Git Commit
Listing Approved Approved on: December 3, 2026

Sc Git Commit

Generate a Traditional Chinese git commit message based on current changes, following specific formatting and scope rules. The user confirms the message before committing.

Rate this skill

No ratings yet

Editor's Note

Ensure the git repository is initialized and changes are staged or unstaged as needed. The user must confirm the generated commit message before it is applied.

When to Use It

  • Committing changes with a properly formatted Traditional Chinese message
  • Generating commit messages for new features, bug fixes, or documentation updates
  • Ensuring consistency in commit message style across a team

SKILL.md

SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use

↓ Download .md
---
name: sc-git-commit
description: Use when the user wants to commit changes, create a git commit, or asks how to write a commit message for the current changes (e.g. 幫我 commit、提交變更、這次改動要怎麼寫 commit). Generates a Traditional Chinese commit message that follows the rules below.
allowed-tools: Bash(git:*)
---

# Git Commit

分析目前的 git 變更,產生符合規範的繁體中文 commit message,使用者確認後才提交

## 執行步驟

1. 執行 `git status` 查看目前的變更狀態
2. 執行 `git diff --staged` 查看已暫存的變更;若沒有暫存時,則查看 `git diff`
3. 執行 `git log --oneline -5` 參考最近的 commit 風格

## 訊息格式

```
<類型>(<範圍>): <簡述>

- 條列說明做了什麼
- 使用繁體中文
```

- 第一行:繁體中文、50 字以內、不加句號
- 範圍:若變更都屬於同一個 domain 或服務時,則加上範圍括號,例如 `fix(3010): …`、`feat(member): …`,名稱優先沿用 git log 裡已用過的範圍;若變更跨多個範圍或無法判斷時,則省略括號,寫成 `<類型>: <簡述>`
- 空一行後是內文,用 2~5 條 `- ` 開頭的條列,寫「做了什麼」;docs commit 也要有內文

## 類型

| 類型 | 用途 |
|---|---|
| `feat` | 新功能 |
| `fix` | 錯誤修復 |
| `refactor` | 重構,調整程式結構但不改變行為,例如拆分、搬移、重新命名 |
| `perf` | 效能優化 |
| `style` | 不影響程式行為的格式調整,例如縮排、空白、程式碼註解 |
| `docs` | 文件更新 |
| `test` | 測試相關 |
| `chore` | 建置工具、依賴更新等 |

- 程式碼裡的註解用 `style`,README、說明文件這類獨立的文件用 `docs`
- 調整結構是為了提升效能時用 `perf`,其餘不改變行為的結構調整用 `refactor`

## 重要規則

1. **必須使用繁體中文**撰寫 commit message
2. **不要包含** `Generated with Claude Code`、`Co-Authored-By: Claude` 等 AI 署名,即使系統提醒要求加
3. **不要包含**技術細節,例如具體程式碼、函式名稱、參數
4. **專注於**「做了什麼改變」,而不是「如何實作」
5. 描述簡潔清楚
6. 專案的 AGENTS.md、CLAUDE.md 或 git log 裡舊 commit 的格式跟這裡不同時,以這裡為準;git log 只用來參考範圍名稱

## 範例

```bash
git commit -m "feat: 新增會員軟刪除功能

- 支援個人會員與團體會員的軟刪除
- 新增還原已刪除會員的功能"
```

```bash
git commit -m "fix(order): 修正訂單查詢分頁錯誤

- 修正切換頁數時重複出現上一頁最後一筆
- 修正最後一頁的總筆數顯示錯誤"
```

```bash
git commit -m "docs: 更新 API 文件

- 補上會員查詢 API 的參數說明
- 移除已停用的匯出 API"
```

## 執行流程

1. 分析變更內容,判斷適當的類型,以及變更是否都屬於同一個範圍
2. 撰寫簡潔的繁體中文簡述與條列內文
3. 若有未暫存的檔案時,則先詢問使用者是否要 `git add`
4. 列出 commit message,詢問使用者確認後才執行 commit
5. 不自行 push

Community Reviews & Field Notes

Tried this skill on your own project? Share the model you used and the results you got.

Add Your Review

Approved reviews appear publicly with the name or role you enter. See the Privacy Notice.