commit

Solid

Use when 使用者要求把工作區的變更寫進版本歷史,不論用詞是 commit、提交、送進 git 還是「整理一下」;需要拆成多筆時同樣適用。NOT for 把 clade 改動散播到 consumer(走 /clade-publish),NOT for 建 / 合併 worktree(走 /wt)。

Code & Development 45 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
55
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

<!-- 🔒 LOCKED — managed by clade Source: plugins/hub-core/skills/commit/ Edit at: $CLADE_HOME Local edits will be reverted by the next sync. --> ## User Input ```text $ARGUMENTS ``` 政策與禁止事項見 `.claude/rules/commit.md`。本檔定義執行流程,commit 類型 / emoji 對照表在 Step 3。 ## Step 0-Lock: 單一 session 防呆(**必做第一步**) ```bash node .claude/scripts/commit-lock.mjs acquire ``` 失敗(exit 1)代表另一個 session 正在跑 `/commit` → **停下**,向使用者回報鎖資訊,**不要**自行 `rm` 清鎖或重試。 成功後此 session 取得獨占權,直到最後一步釋放。**中斷處理**:若 `/commit` 流程中途失敗 / 使用者中斷,仍**必須**在終止前呼叫 `node .claude/scripts/commit-lock.mjs release`;漏釋放的鎖會在 30 分鐘後被下次 acquire 自動清除(可用 `COMMIT_LOCK_STALE_MINUTES` 調整)。 ## Step 0-Coord: Cross-Session Staged Pollution Detection 跑 3 個 detection signal(index.lock mtime、publish stash sidecar、wt-helper baseline stash)warn-only 偵測別 session 的 staging 活動。全部 silent → 直接進 Step 0-Scope。任一命中 → AskUserQuestion 二擇一(等候重試 / 強制繼續)。 觸發 0-Coord 命中時 **MUST** 先完整讀 [gates.md](gates.md) § 0-Coord 的 signal 定義與命中處置流程再繼續。 ## Step 0-Codex: 派 codex 跑 commit 工作時的路由規約 主線從 commit SKILL 派 codex 跑 commit 工作時(例如 `/wt` worktree 內派 codex commit phase),**MUST** 走 [`rules/core/agent-routing.pi-watch-protocol.md`](../../../../rules/core/agent-routing.pi-watch-protocol.md) § Codex 派工的標準流程 + Codex Watch Protocol。**禁止** `Agent` tool with `subagent_type: screenshot-review` 派視覺 QA — sonnet wrapper 派工已多次驗證 self-rationalize(per [[pitfall-screenshot-review-sonnet-wrapper-self-rationalize]])。 ## Step 0-Scope: WIP 預設全部納入(果斷,不徵詢) **預設行為**:所有 `git status` 顯示的 unc...

Details

Author
YuDefine
Repository
YuDefine/nuxt-supabase-starter
Created
7 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

commit

按照 git 规则自动分析变更并提交代码

0 Updated 3 days ago
pkulijing
Code & Development Listed

commit

提交当前暂存区已有的内容到本地仓库并推送到远程(依次 git commit → git push;不执行 git add,只提交用户已自行 git add 到暂存区的内容;若无远程仓库则先用 gh repo create --public 创建一个再推送)。当用户输入 commit 时触发。git commit 之前对暂存区已有内容做敏感内容扫描 + cache 文件/目录检测(cache 命中则自动加入 .gitignore),任一命中即彻底终止本次流程——不 commit/push,需重新 /commit 走完整流程;push 之后再检测项目标配(README 中英双语+LOGO+徽章+版权署名(含版权人/署名引用名字归一为 All Contributors)+英文版 README 跳中文版链接文字统一为「简体中文」+Agent 拟人名、LICENSE.md、GitHub About 英文简介+标签、仓库 Sponsors 按钮),缺失则自动补上,齐全则记入项目级 CLAUDE.md 缓存跳过重复检测;push 之后另做版本滞后检测(仅当项目根有 VERSION 文件:若 VERSION 标注版本已在 GitHub Release 发布且仓库有该版本后的新提交,则由智能体自主决定 bump 幅度并直接更新 VERSION/package.json/CHANGELOG 等各文件版本号,不阻塞、每次必查不缓存)+ 版本号一致性检测(项目根有 VERSION 文件才查:各文件版本号须与 VERSION 一致,不一致则以 VERSION 为准自动同步各文件,不阻塞、每次必查不缓存)。

0 Updated 2 weeks ago
xhqing
Code & Development Solid

commit

提交当前变更到 Git。 当需要把已完成的工作落为一次 Git 提交时使用。

84 Updated today
fitlab-ai