Agent skill

Commit Msg

by luzhenqian in luzhenqian/ai-coding-lab

分析 git diff 并生成规范的 Conventional Commit 消息。当用户提到提交代码、写 commit message、git commit、提交信息、代码提交规范时使用。

No licenceAuto-check passedDevelopment

Install Commit Msg

skills CLI
$ npx skills add luzhenqian/ai-coding-lab --skill commit-msg -a claude-code

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

GitHub CLI
$ gh skill install luzhenqian/ai-coding-lab commit-msg --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/luzhenqian/ai-coding-lab.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.claude/skills/commit-msg .claude/skills/commit-msg && 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
commit-msg
GitHub stars
152
Token cost
~859 tokens
SKILL.md length
163 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
None found

At a glance

分析 git diff 并生成规范的 Conventional Commit 消息。当用户提到提交代码、写 commit message、git commit、提交信息、代码提交规范时使用。

  • Tasks that involve Commit messages
  • SKILL.md covers 概述, 工作流程, 执行步骤 and 特殊情况处理, plus 1 more section
  • Calls git

What it does

Commit Msg is an agent skill from luzhenqian/ai-coding-lab. 分析 git diff 并生成规范的 Conventional Commit 消息。当用户提到提交代码、写 commit message、git commit、提交信息、代码提交规范时使用。

Its SKILL.md is about 860 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Commit messages. It works with Git. The repository describes itself as: 适合所有人的 AI 编程、AI 应用开发的实战教程——从 Vibe Coding 到 Agent、RAG,循序渐进,边学边做。

When your agent uses it

  • Tasks that involve Commit messages

Example prompts

  • “/commit-msg”

What it can do on your machine

Read from SKILL.md and the folder at commit a33cbe8. 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

    Shell commands in SKILL.md call:

    • git

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

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    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

Commit Msg loads about 859 tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 163 words of instructions outside code blocks.

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

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); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 163 words (~859 tokens).

“自动分析当前 git 暂存区的变更内容,生成符合 Conventional Commits 规范的 commit message。确保团队提交历史清晰、可追溯、可自动生成 changelog。”

— opening of SKILL.md by luzhenqian
name
commit-msg
disable_model_invocation
true

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/.claude/skills/commit-msg of luzhenqian/ai-coding-lab.

Open the folder on GitHubat commit a33cbe8

Compare with similar skills

Commit Msg 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.

Commit Msg compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Commit Msg this skillluzhenqian/ai-coding-lab152—~859Automated safety check: PassNone
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 yesterday
    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 yesterday
    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 yesterday
    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 luzhenqian/ai-coding-lab

  • Invoice Generator

    luzhenqian/ai-coding-lab

    从 Excel 时间表或手动输入生成专业发票。当用户提到生成发票、创建账单、invoice、billing、开发票、时间表转发票、账单生成时使用此技能。

    152 GitHub stars~955 tokensUpdated 4 mo ago
    Auto-check passed
  • Cover Thumbnail

    luzhenqian/ai-coding-lab

    A skill your agent uses when producing the deliverables for a video episode — the cover thumbnail AND/OR the per-platform marketing copy (Bilibili / YouTube / 小红书 / 视频号 titles, descriptions, tags).

    152 GitHub stars~3k tokensUpdated 4 mo ago
    Auto-check passed
  • Chinese Blog Writer

    luzhenqian/ai-coding-lab

    生成中文技术博客文章。当用户提到写博客、写文章、技术分享、写教程、写总结、博客草稿、内容创作、技术写作时使用此技能. An agent skill from luzhenqian/ai-coding-lab.

    152 GitHub stars~436 tokensUpdated 4 mo ago
    Auto-check passed

Works with

Categories

Questions about Commit Msg

What does Commit Msg do?

分析 git diff 并生成规范的 Conventional Commit 消息。当用户提到提交代码、写 commit message、git commit、提交信息、代码提交规范时使用。. Commit Msg is an agent skill from luzhenqian/ai-coding-lab.

When should I use Commit Msg?

Commit Msg fits situations like: tasks that involve Commit messages.

How do I install Commit Msg in Claude Code?

Run `npx skills add luzhenqian/ai-coding-lab --skill commit-msg -a claude-code`. Or copy the skill folder (skills/.claude/skills/commit-msg in luzhenqian/ai-coding-lab) into .claude/skills/commit-msg in your project. Claude Code loads it when a task matches its description.

How do I install Commit Msg in Codex?

Run `npx skills add luzhenqian/ai-coding-lab --skill commit-msg -a codex`. Or copy the skill folder (skills/.claude/skills/commit-msg in luzhenqian/ai-coding-lab) into .agents/skills/commit-msg in your project. Codex loads it when a task matches its description.

Can I use Commit Msg 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 luzhenqian/ai-coding-lab --skill commit-msg -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/commit-msg, .gemini/skills/commit-msg, .github/skills/commit-msg and .opencode/skills/commit-msg in your project.

What does Commit Msg need to run?

Going by SKILL.md and its folder, Commit Msg needs the command-line tools its instructions call (git).

Does Commit Msg access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Commit Msg 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. Review the folder before installing.

What licence does Commit Msg use?

No licence was found for Commit Msg or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Commit Msg use?

About 859 tokens (SKILL.md is roughly 3.4k 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 Commit Msg?

Skills that share tags, products or a category with Commit Msg: 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 Commit Msg?

luzhenqian (a GitHub user) maintains it in luzhenqian/ai-coding-lab, which has 152 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on May 18, 2026.

Source: luzhenqian/ai-coding-lab on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.