/dev-flow:commitfrom dev-flow
建立符合 Conventional Commits 規範的語義化提交訊息,支援 Git Flow + Semantic Release 工作流程。Use when creating git commits, "commit 這些變更", "幫我提交", "建立 commit", "semantic commit".
Ships in dev-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
產生並建立遵循 Conventional Commits 規範的提交訊息。
git status && git branch(確認在正確分支,非 main/develop 直接提交)git diff --staged(未 stage 則先逐檔 git status --short 指名 add,禁止 git add -A)git diff --cached --name-only,多出非本次的檔就 git restore --staged <檔> 移出(見「多 agent 並行安全」)quality-check 的「commit 前驗證原則」,沒讀到 exit code 不提交git commit -m "..."repo 是 submodule 容器、或要提交的是子模組時,commit 後的 push 與上層 pointer bump 走
submodule-relay。
同一個 checkout/同一條分支常有別的 agent 或 session 同時在動,HEAD 與暫存區在兩次工具呼叫之間就可能被改過。
git add -A/git add .:一律從 git status --short 清單逐檔指名。全量 add 會把別人 pre-staged 的檔包進你的 commit。add && 計數 && commit && push 一條串完——計數印出異常也擋不住後面的步驟。
順序固定為:① 逐檔 git add;② 單獨 git diff --cached --name-only 檢查;③ 確認後才 commit。git commit 會提交整個暫存區:別人預先暫存的刪除、新增都會被一起帶走。rm,不用 git rm:git rm 立刻改暫存區,別人的 commit 會把你的刪除帶上遠端;要 commit 當下才逐檔 git rm/git add。commit --amend、rebase -i:--amend 不檢查 HEAD 是誰的,別的 session pull --rebase 後,
你的 amend 可能塞進別人已 push 的 commit,造成本機與遠端分叉。一律開新 commit。git log -1 --format='%h %s' 確認 HEAD 是自己剛做的,且 git rev-list --count origin/<分支>..HEAD ≥ 1(還沒推上去)。git log -1 出現不是你寫的 commit message → 停下,別在上面疊 amend。worktree 從 origin/<分支> 另開一份作業。fetch 看 ahead/behind;被拒不要 force,pull --rebase --autostash 後再推。| 類型 | 說明 | 版本影響 |
|---|---|---|
feat | 新功能 | MINOR |
fix | Bug 修復 | PATCH |
perf | 效能改進 | PATCH |
feat! | 破壞性變更 | MAJOR |
| 類型 | 說明 |
|---|---|
docs | 文件變更 |
style | 格式調整 |
refactor | 重構 |
test | 測試 |
build | 建置系統 |
ci | CI/CD |
chore | 維護 |
Scope 依專案實際模組命名,取變更集中的區域。常見面向:
domain, application, persistence, presentation, api, ui
db, docker, ci, deps, tests, config, build
沒有明確 scope 時可省略;不要硬套不存在的模組名。
# 功能開發
git flow feature start user-auth
git commit -m "feat(auth): implement JWT authentication"
git flow feature finish user-auth
# 發布版本
git flow release start auto
git flow release finish -n auto # -n 跳過自動 tag
-n 跳過 Git Flow 自動 tag(版本號交給 Semantic Release / CI)git add -A / git add .——逐檔指名 add,提交前複驗 staged 只含本次變更commit --amend / rebase -i--no-verify 或繞過用的環境變數重試;把 hook 訊息原文交給使用者What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kerryhuang/kerryhuang-plugins --plugin dev-flow17 skills in this plugin
/agent-orchestration適用於多階段 agent chain(≥2 個 agent 接力)、需要用 output file 交棒、把多步工作流展示給使用者確認、偵測到「工作完成」需清理階段性產物、跨 agent 任務串接決策。涵蓋 chain 規範、output 路徑、清理流程、工作流呈現格式、subagent 作為 context 隔離工具的使用時機。觸發語:「召喚某 agent」「多階段流程」「派 subagent」「工作流規劃」「agent 交棒」「orchestration」。/context-hygieneUse when 對話很長 / context 變長 / context 快滿 / 感覺 Claude 變笨 / 連續修同一錯誤失敗 / 即將切換到無關任務 / 要讀大量檔案探索 / agent 交接(handoff)/ 使用者說「對話太長」「感覺變笨」「context 滿了」「要不要清一下」「clean context」時。/convention-first適用於在既有 codebase 撰寫任何新元件(class / module / handler / component 等)、審查程式碼是否引入新風格、判斷「該自己發揮還是模仿既有寫法」。先 grep 既有實作當樣板,禁止單方面引入新模式。慣例 > 創新。觸發語:「這樣寫對嗎」「有沒有既有寫法」「該模仿哪個」「引入新 pattern」「convention first」「follow existing pattern」。/debuggingTDD 系統性除錯——先寫失敗測試重現 bug,追根因、修復、驗證無回歸。Use when 遇到 bug、測試失敗、或非預期行為需要追蹤根因, "除錯", "debug", "重現 bug", "測試失敗", "找根因", "systematic debugging"./dual-tool-mirror讓 Claude Code 與 Codex 共用同一份專案設定——`.claude/` 是單一來源,用腳本鏡像 skills/agents/rules 到 Codex 讀得到的位置並在 SessionStart 注入 rules;副本不手改,CLAUDE.md/AGENTS.md 平行維護。Use when 專案要同時給 Claude Code 與 Codex 用、「Codex 看不到 skill/rule」「同步 .agents/skills」「AGENTS.md 要不要跟 CLAUDE.md 對齊」「設定鏡像」。/feature開新功能分支並做領域邊界規劃——分析受影響層級、建議檔案結構、產出實作鷹架。Use when starting new feature development with planning, "開新功能", "start feature", "規劃新功能", "建功能分支".