commit.detail

commit.detail is a cursor rule for Cursor from YuDefine/nuxt-supabase-starter. It costs 0 tokens per session (12,988 once invoked), scanned A, original, MIT.

A detailed checklist for making Git commits safely. It covers reviews, automated checks, documentation alignment, staged-file handling, and release-related safeguards.

In plain words
What is it for?
It is used before commits, especially when work spans code, configuration, documentation, or release files.
Why use it?
It reduces the risk of committing broken code, incorrect versions, unrelated work, or incomplete documentation.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/yudefine/nuxt-supabase-starter/commit.detail
Clone the repo
git clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starter

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for commit.detail

README.md
[![agentmods](https://agentmods.dev/badge/rules/yudefine/nuxt-supabase-starter/commit.detail.svg)](https://agentmods.dev/rules/yudefine/nuxt-supabase-starter/commit.detail)
Your own site
<a href="https://agentmods.dev/rules/yudefine/nuxt-supabase-starter/commit.detail"><img src="https://agentmods.dev/badge/rules/yudefine/nuxt-supabase-starter/commit.detail.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 12,988 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.12988
Opus 5 $0.00000 $0.06494
Sonnet 5 $0.00000 $0.02598
Haiku 4.5 $0.00000 $0.01299

Measured today against content hash e1244a85d66d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

commit.detail scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

template/.cursor/rules/commit.detail.mdc · 447 lines

How it starts

The opening of the file, as written. The whole thing — 447 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Commit(全文)

本檔是 [[commit]] 的下推全文。[[commit]] 常駐「強制入口 + WIP 處置禁令 / 話術關鍵詞表」,其餘全部在這裡。

理由

/commit 封裝了品質閘門,繞過等於讓壞 code / 壞版本號 / 壞 tag 進 repo。各 gate 一行定性如下,MUST 全綠才能 commit;執行細節一律見 /commit skill(.cursor/skills/commit/SKILL.md):

  • 0-A 程式碼審查:simplify(序跑第一)→ GPT-5.6-sol via Pi(effort: xhigh,經 codex-review-safe.sh)跨模型 review → Critical / Major 條件升 max;修正一律由主線執行。配額耗盡(exit 4)→ 主線 foreground 自 review,且 MUST 明示「跨模型 gate 未達成」並登記待補NEVER 改派 Claude subagent 充當跨模型 review(同池同模型,gate 實質為空),NEVER 靜默當作 0-A.1 通過。換池到 Cursor 池在 [[agent-routing]] 的 fallback 紀律上是正確形狀,但 TD-520 已確認該池的模型同 UID 且有 unrestricted Shell,拿到 OS 層隔離前 NEVER 用於 0-A.1
  • 0-B UI Design Review(條件觸發):.vue 模板 + 頁面/元件/佈局/互動/樣式變更時派 screenshot-review
  • 0-C format / lint / typecheck / test / doctor 全綠:scripts.check 不含 test → 額外跑 pnpm testscripts.doctor 必裝(缺裝 = block commit,要求先安裝 vite-doctor)。oxfmt batched --check 報未預期 diff 以單檔重跑為準([[pitfall-oxfmt-batched-check-false-positive]])
  • 0-D Doc Alignment(條件觸發):diff 觸及 docs / rules / snippets / audit script / 業務碼 / bug fix 時,檢查 cross-ref / 路徑引用 / pitfall status / 三方受眾文件忠實度(含 VitePress sidebar)四面向
  • 0-E evlog map 覆蓋率(條件觸發):diff 觸及 entry point(server/{api,routes,middleware,tasks}/ / pages / Next route handler)時跑 gate;@evlog/cli 必裝(缺裝 = block commit,比照 doctor)。判定是 strict:整個 repo 的每一個 entry point 零失敗 check、零 suppression不是只看本次 diff 觸及的那幾個 —— 既有 gap 一律要補
  • 並行:simplify 序跑完後 0-A.1 / 0-B / 0-C 三軸 MUST 並行(除非 fast-path 跳過 0-A.1);0-D / 0-E 在匯合後條件觸發
  • Step 1 Schema 同步檢查 — database.types.ts 與 migration 對齊
  • Step 5 版本號升級 + tag push — feat → minor、其他 → patch

Read the full file on GitHub · 447 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +10 lines e1244a85d66d
  2. 2d ago First seen · 437 lines · 0 tokens per session scan A 36b0619dad2f

Subscribe to this mod's changes

commit.detail is a cursor rule published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 12,988 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.