commit-generate skillA

commit-generate is agent-read markdown (skill) from agenvoy/skill-commit-generate: Generate bilingual (English + Traditional Chinese) commit message from git changes..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Commit Message Generator

從 git diff 產生雙語 commit message(英文 subject + 繁體中文 body)。

## Input

僅處理 staged 變更。若無 staged 檔案,直接報錯並停止,不 fallback 到工作區 diff。

## Steps

1. 同一輪並行取得四份資料(彼此無依賴):
   - `git diff --cached` — 本次要描述的變更,唯一的內容來源
   - `git status --short` — 找出與 staged 檔案相關但未 stage 的檔案
   - `git log --oneline -10` — 本 repo 實際在用的 tag 詞彙與描述顆粒度
   - `git branch --show-current` — 分支名常帶意圖(`fix/token-expiry`)
2. 若 `git diff --cached` 為空,回應:「目前沒有 staged 變更,請先執行 `git add` 選擇要提交的檔案。」並停止
3. 判斷是否為跨主題變更(見 **Multi-Topic Detection**)
4. 依 **Tag Upgrade Signals** 由上而下掃描訊號,命中即強制升級 Tag,未命中才可依意圖選 lower tag
5. 套用下方規則產生 commit message
6. 若命中跨主題:先輸出拆分建議,再輸出單一概括 message;否則直接輸出 message
7. 輸出為純文字,不加額外說明

**四份資料的權重:** `git diff --cached` 決定寫什麼——message 只描述 staged 的內容,未 stage 的改動不寫進去。`git log` 與分支名只影響**用詞**(同一個模組在既有 log 裡叫什麼、慣用哪個 tag),不影響 Tag 的選擇;**Tag Upgrade Signals** 與 **Output Format** 蓋過 log 裡的任何既有寫法,既有 log 與本規範衝突時以本規範為準。

**未 stage 的相關檔案:** `git status --short` 顯示與 staged 檔案同模組、卻停在 ` M` 的檔案時,在 message 之前加一行提醒並列出檔名。不改變「只描述 staged 內容」的規則——提醒的是使用者可能漏 `git add`,判斷權在他。

## Multi-Topic Detection

**偵測條件(任一命中即視為跨主題):**

- diff 同時觸及 2 個以上 primary tag 類別(`feat` / `fix` / `refactor` / `breaking` / `security`)
…

Read the whole file at its exact version.

How to install

Latest version
mdr add agenvoy/skill-commit-generate/commit-generate@git:20260921.8d1e499
Exact content
mdr add agenvoy/skill-commit-generate/commit-generate@sha256:decab9e67cf9b22d

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ksofjsh4f3lxqtvu.svg)](https://markdownregistry.com/a/art_ksofjsh4f3lxqtvu)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260921.8d1e499 latest2026-09-21 8d1e499 6,717 BA view · diff
git:20260424.f1e49752026-04-24 f1e4975 5,676 BA view · diff
git:20260301.a122dd02026-03-01 a122dd0 2,893 BA view · diff
git:20260222.f5fb8df2026-02-22 f5fb8df 2,336 BA view · diff
git:20260222.99606b62026-02-22 99606b6 2,263 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6717 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

agenvoy/skill-commit-generate · 2 stars · license MIT · pushed 2026-09-21 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_ksofjsh4f3lxqtvu
GET https://markdownregistry.com/api/v1/resolve?ref=agenvoy/skill-commit-generate/commit-generate
GET https://markdownregistry.com/api/v1/blob/decab9e67cf9b22d20234b377a23439e04b93d1b65ea474b29a8c24ac3f2beca

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Browse by kind, by grade A, or by owner.