Agent skill

Smart Commit Gen

by rongxinzy in rongxinzy/RongxinAI

Conventional Commits 规范化工具:分析 git diff 自动生成符合规范的提交信息,支持自动检测作用域(scope)并智能推断提交类型(如 feat, fix, refactor)。当用户提及 commit message、提交信息、conventional commits、git commit、规范化提交、scope 检测,或提出“帮我写个 commit…

MITAuto-check passedDevelopment

Install Smart Commit Gen

skills CLI
$ npx skills add rongxinzy/RongxinAI --skill smart-commit-gen -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install rongxinzy/RongxinAI smart-commit-gen --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/rongxinzy/RongxinAI.git skills-src && mkdir -p .claude/skills && cp -r skills-src/SKILLs/smart-commit-gen .claude/skills/smart-commit-gen && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
smart-commit-gen
GitHub stars
154
Token cost
~709 tokens
SKILL.md length
138 words
Files
5 (incl. scripts)
Skills in repo
94
Repo updated
First seen
Licence
MIT

At a glance

Conventional Commits 规范化工具:分析 git diff 自动生成符合规范的提交信息,支持自动检测作用域(scope)并智能推断提交类型(如 feat, fix, refactor)。当用户提及 commit message、提交信息、conventional commits、git commit、规范化提交、scope 检测,或提出“帮我写个 commit…

  • Works in 4 steps: 获取 diff 分析结果 → 审查并调整 → Conventional Commits 规范参考 → …
  • Tasks that involve Commit messages
  • SKILL.md covers Quick Start, 使用流程(SOP), 参数说明 and 前置条件
  • Runs Python scripts from its folder; calls python3

What it does

Smart Commit Gen is an agent skill from rongxinzy/RongxinAI. Conventional Commits 规范化工具:分析 git diff 自动生成符合规范的提交信息,支持自动检测作用域(scope)并智能推断提交类型(如 feat, fix, refactor)。当用户提及 commit message、提交信息、conventional commits、git commit、规范化提交、scope 检测,或提出“帮我写个 commit message”、“这些改动应该怎么提交”、“分析一下 diff 生成提交信息”等请求时触发。

Its SKILL.md is about 710 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts (for example `scripts/analyze_diff.py` and `zhiyuan/metadata.yaml`).

It sits in Development, covering Commit messages. It works with Git. The repository describes itself as: An all-in-one local AI Agent workspace with a fully self-developed stack. The licence is MIT.

When your agent uses it

  • Tasks that involve Commit messages

Example prompts

  • “帮我写个 commit message”
  • “这些改动应该怎么提交”
  • “分析一下 diff 生成提交信息”
  • “/smart-commit-gen”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 获取 diff 分析结果
  2. 审查并调整
  3. Conventional Commits 规范参考
  4. Breaking Changes

What it can do on your machine

Read from SKILL.md and the folder at commit 26406d6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • conventionalcommits.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Smart Commit Gen loads about 709 tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 138 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~709

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from rongxinzy/RongxinAI at commit 26406d6, republished under its MIT licence (© rongxinzy). 138 words, ~709 tokens.

Download SKILL.mdSave it as .claude/skills/smart-commit-gen/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
smart-commit-gen
description
Conventional Commits 规范化工具:分析 git diff 自动生成符合规范的提交信息,支持自动检测作用域(scope)并智能推断提交类型(如 feat, fix, refactor)。当用户提及 commit message、提交信息、conventional commits、git commit、规范化提交、scope 检测,或提出“帮我写个 commit message”、“这些改动应该怎么提交”、“分析一下 diff 生成提交信息”等请求时触发。
license
MIT
metadata.type
tool
metadata.tags
git, conventional-commits, devops, productivity

Git Commit Helper

分析当前 git diff,自动生成符合 Conventional Commits 规范的 commit message,并智能检测 scope。

Quick Start

bash
# 分析未暂存的改动,生成 commit message
python3 scripts/analyze_diff.py

# 分析已暂存(staged)的改动
python3 scripts/analyze_diff.py --staged

# 指定仓库路径
python3 scripts/analyze_diff.py --repo /path/to/repo

# JSON 格式输出(便于程序集成)
python3 scripts/analyze_diff.py --staged --format json

# 手动覆盖 type 或 scope
python3 scripts/analyze_diff.py --staged --type-override feat --scope-override auth

使用流程(SOP)

1. 获取 diff 分析结果

在用户的 git 仓库中运行脚本,获取自动分析结果:

bash
python3 scripts/analyze_diff.py --staged --format json
2. 审查并调整

脚本会输出:

  • type:自动推断的提交类型(feat / fix / docs / style / refactor / test / chore / perf / ci / build)
  • scope:从文件路径中检测的作用域(如 auth、api、ui 等)
  • description:基于变更统计生成的简要描述
  • commit_message:组装好的完整 commit message

审查输出后,根据实际语义调整:

  • 如果 type 不准确(如脚本判断为 chore 但实际是 feat),用 --type-override 覆盖
  • 如果 scope 不合适,用 --scope-override 覆盖
  • description 建议根据实际改动内容手写,脚本输出仅作参考

注意:type 检测基于文件路径和变更统计,对 test/docs/ci/build 等类型的检测较准确,但对修改已有源代码文件的情况(feat vs fix vs refactor)需要你阅读 diff 内容后判断。

3. Conventional Commits 规范参考
<type>(<scope>): <description>

[optional body]

[optional footer(s)]
Type含义
feat新功能
fixBug 修复
docs文档变更
style代码格式(不影响逻辑)
refactor重构(不涉及新功能或修复)
test测试相关
chore构建/工具/依赖等杂项
perf性能优化
ciCI/CD 配置变更
build构建系统或外部依赖变更
4. Breaking Changes

如果改动包含不兼容变更,在 type 后加 !:

feat(api)!: change authentication endpoint response format

参数说明

参数说明默认值
--repoGit 仓库路径.
--staged仅分析已暂存的改动否
--format输出格式:text 或 jsontext
--type-override手动指定 commit type,跳过自动检测无
--scope-override手动指定 scope,跳过自动检测无

前置条件

  • Python 3.6+
  • git 已安装且在 PATH 中
  • 当前目录或 --repo 指向一个有效的 git 仓库

© rongxinzy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts) in SKILLs/smart-commit-gen of rongxinzy/RongxinAI.

  • SKILL.md
  • LICENSE
  • scripts/analyze_diff.py
  • zhiyuan/icon.png
  • zhiyuan/metadata.yaml

Open the folder on GitHubat commit 26406d6

Compare with similar skills

Smart Commit Gen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Smart Commit Gen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Smart Commit Gen this skillrongxinzy/RongxinAI154—~709Automated safety check: PassMIT
React Router Release Notes Prepremix-run/react-router57k—~1.1kAutomated safety check: PassMIT
ToolJet Multi-Repo CommitToolJet/ToolJet41k—~1.3kAutomated safety check: PassAGPL-3.0
Git Workflow and Versioningaddyosmani/agent-skills103k2 repos~3.5kAutomated safety check: NotesMIT
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Verdaccio Pull Request Workflowverdaccio/verdaccio18k—~1.9kAutomated safety check: PassMIT

Similar skills

  • React Router Release Notes Prep

    remix-run/react-router

    Polishes pending React Router change files before the versioning scripts run, and decides whether a long-form What's Changed section is warranted.

    57k GitHub stars~1.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Commits changes across ToolJet's root repo and its server/ee and frontend/ee submodules, writing messages from the diffs and updating submodule pointers in order.

    41k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Git Workflow and Versioning

    addyosmani/agent-skills

    Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.

    103k GitHub starsUsed in 2 repos~3.5k tokens
    DevelopmentAuto-check: notes
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Takes a change through a verdaccio pull request: branch, local checks, changeset, title and body, labels, CI and review rounds, and ports to other release lines.

    18k GitHub stars~1.9k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.

    23k GitHub stars~575 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from rongxinzy/RongxinAI

All 94 skills in this repo
  • SaaS Metrics Coach

    rongxinzy/RongxinAI

    SaaS financial health advisor. An agent skill from rongxinzy/RongxinAI.

    154 GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check passed
  • Churn Prevention

    rongxinzy/RongxinAI

    Reduce voluntary and involuntary churn through cancel flow design, save offers, exit surveys, and dunning sequences.

    154 GitHub starsUsed in 3 repos~2.6k tokens
    Auto-check passed
  • Presentation Studio

    rongxinzy/RongxinAI

    The only skill for creating a new PowerPoint deck. An agent skill from rongxinzy/RongxinAI.

    154 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Cantian Bazi

    rongxinzy/RongxinAI

    以命理场景为主的八字排盘、黄历查询与大运/流年/流月/流日/流时区间查询技能。用于用户请求“算八字”“四柱排盘”“阳历/农历转八字”“查黄历/宜忌”“查未来10年流年”“查下个月流日/流时”等场景;关键词包括:八字、四柱、命理、大运、流年、流月、流日、流时、时辰、阳历转八字、农历转八字、黄历、宜忌、干支日期。真太阳时换算属于辅助能力,仅在需要校时定盘时使用。

    154 GitHub starsUsed in 2 repos~2.1k tokens
    Auto-check passed
  • Zhiyuan Expert Manager

    rongxinzy/RongxinAI

    ZhiYuan Agent expert package lifecycle manager for the pi engine.

    154 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Lark Mail

    rongxinzy/RongxinAI

    飞书邮箱:Use when user mentions 起草邮件、写邮件、草稿、发送/回复/转发邮件、查阅邮件、看邮件、搜索邮件、邮件文件夹、邮件标签、邮件联系人、监听新邮件、邮件收信规则等;use for mail/email intent only.

    154 GitHub starsUsed in 4 repos~4.1k tokens
    Auto-check: warnings

Works with

Categories

Questions about Smart Commit Gen

What does Smart Commit Gen do?

Conventional Commits 规范化工具:分析 git diff 自动生成符合规范的提交信息,支持自动检测作用域(scope)并智能推断提交类型(如 feat, fix, refactor)。当用户提及 commit message、提交信息、conventional commits、git commit、规范化提交、scope 检测,或提出“帮我写个 commit…. Smart Commit Gen is an agent skill from rongxinzy/RongxinAI.

When should I use Smart Commit Gen?

Smart Commit Gen fits situations like: tasks that involve Commit messages.

How do I install Smart Commit Gen in Claude Code?

Run `npx skills add rongxinzy/RongxinAI --skill smart-commit-gen -a claude-code`. Or copy the skill folder (SKILLs/smart-commit-gen in rongxinzy/RongxinAI) into .claude/skills/smart-commit-gen in your project. Claude Code loads it when a task matches its description.

How do I install Smart Commit Gen in Codex?

Run `npx skills add rongxinzy/RongxinAI --skill smart-commit-gen -a codex`. Or copy the skill folder (SKILLs/smart-commit-gen in rongxinzy/RongxinAI) into .agents/skills/smart-commit-gen in your project. Codex loads it when a task matches its description.

Can I use Smart Commit Gen in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add rongxinzy/RongxinAI --skill smart-commit-gen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/smart-commit-gen, .gemini/skills/smart-commit-gen, .github/skills/smart-commit-gen and .opencode/skills/smart-commit-gen in your project.

What does Smart Commit Gen need to run?

Going by SKILL.md and its folder, Smart Commit Gen needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Smart Commit Gen access the network?

SKILL.md names 1 domain. As links in the text: conventionalcommits.org. This is read from the text; nothing was executed.

Is Smart Commit Gen safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Smart Commit Gen use?

Smart Commit Gen is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Smart Commit Gen use?

About 709 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Smart Commit Gen?

Skills that share tags, products or a category with Smart Commit Gen: React Router Release Notes Prep (remix-run/react-router, 57k stars), ToolJet Multi-Repo Commit (ToolJet/ToolJet, 41k stars), Git Workflow and Versioning (addyosmani/agent-skills, 103k stars) and React Router Pull Request Creator (remix-run/react-router, 57k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Smart Commit Gen?

rongxinzy (a GitHub organization) maintains it in rongxinzy/RongxinAI, which has 154 GitHub stars. The repository holds 94 skills in this directory. The repository was last updated on October 8, 2026.

Source: rongxinzy/RongxinAI on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.