Agent skill

Commit Msg

by yaklang in yaklang/yakit

为 Yakit 仓库完成一次本地提交:确定提交范围(暂存区优先,空则弹框确认)、基于 diff 归纳一行符合仓库风格的 message、commit 前弹窗确认、执行 git commit(不推送)。只要 message 时仅输出文本。用户说「提交」「commit 代码」或输入 /commit-msg,或被 create-pr 等 skill 调用时使用。

AGPL-3.0Auto-check passedDevelopment

Install Commit Msg

skills CLI
$ npx skills add yaklang/yakit --skill commit-msg -a claude-code

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

GitHub CLI
$ gh skill install yaklang/yakit 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/yaklang/yakit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/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
7.8k
Token cost
~559 tokens
SKILL.md length
178 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
AGPL-3.0

At a glance

为 Yakit 仓库完成一次本地提交:确定提交范围(暂存区优先,空则弹框确认)、基于 diff 归纳一行符合仓库风格的 message、commit 前弹窗确认、执行 git commit(不推送)。只要 message 时仅输出文本。用户说「提交」「commit 代码」或输入 /commit-msg,或被 create-pr 等 skill 调用时使用。

  • Works in 6 steps: 读暂存区:git status --short + git diff… → 对齐风格:git log --oneline -10。贴近仓库习惯,不要强套… → 归纳主语义:覆盖暂存区全部改动的一个更高层概括。多类改动找主目的;过散也给一行诚实… → …
  • Tasks that involve Commit messages
  • SKILL.md covers 调用, 终态, 流程 and Message 规范, plus 1 more section
  • Calls git

What it does

Commit Msg is an agent skill from yaklang/yakit. 为 Yakit 仓库完成一次本地提交:确定提交范围(暂存区优先,空则弹框确认)、基于 diff 归纳一行符合仓库风格的 message、commit 前弹窗确认、执行 git commit(不推送)。只要 message 时仅输出文本。用户说「提交」「commit 代码」或输入 /commit-msg,或被 create-pr 等 skill 调用时使用。

Its SKILL.md is about 560 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 and Pull requests. It works with Git, Burp Suite and Go. The repository describes itself as: Cyber Security ALL-IN-ONE Platform. The licence is AGPL-3.0.

When your agent uses it

  • Tasks that involve Commit messages
  • Tasks that involve Pull requests

Example prompts

  • “/commit-msg”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. 读暂存区:git status --short + git diff --cached,不能只靠文件名。
  2. 对齐风格:git log --oneline -10。贴近仓库习惯,不要强套 Conventional Commits;新提交优先 type: subject。
  3. 归纳主语义:覆盖暂存区全部改动的一个更高层概括。多类改动找主目的;过散也给一行诚实概括。
  4. 弹窗确认:AskUserQuestion 展示 message + 文件清单,「确认提交」/「取消」。Other 输入视为新 message。未确认不得 git commit。取消 → CANCELLED。
  5. 提交:message 写入临时文件后 git commit -F <文件>,再删临时文件。禁止 git commit -m "..."(反引号 / $() / 引号会破坏 shell)。成功 → COMMITTED(SHA + 文件清单)。失败 → FAILED(报错原文 +…
  6. 不推送。

What it can do on your machine

Read from SKILL.md and the folder at commit 87904ea. 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 559 tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 178 words of instructions outside code blocks.

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

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

The full file from yaklang/yakit at commit 87904ea, republished under its AGPL-3.0 licence (© yaklang). 178 words, ~559 tokens.

Download SKILL.mdSave it as .claude/skills/commit-msg/SKILL.md (or your agent's skills folder).
name
commit-msg
description
为 Yakit 仓库完成一次本地提交:确定提交范围(暂存区优先,空则弹框确认)、基于 diff 归纳一行符合仓库风格的 message、commit 前弹窗确认、执行 git commit(不推送)。只要 message 时仅输出文本。用户说「提交」「commit 代码」或输入 /commit-msg,或被 create-pr 等 skill 调用时使用。

commit-msg

确定范围 → 把提交意图压成一行 message → 弹窗确认 → git commit。message 是意图概括,不是逐文件罗列。

调用

情况行为
默认(语义触发、/commit-msg、被其他 skill 调用)完整流程
「仅要 message」(含「写 / 生成 commit message」「写个提交信息」类措辞)只输出一行 message,不改仓库
已给出 message(如「用 fix: xxx 提交」)跳过生成,直接弹窗确认后 commit

终态

供用户与调用方(如 create-pr)核验。create-pr 仅在 COMMITTED 且实测 HEAD 前移、git diff --cached 为空时继续。

终态含义
COMMITTED成功;附 SHA 与文件清单;HEAD 已前移、暂存区已清空
CANCELLED用户取消任一弹窗;未改 git 状态
FAILEDcommit 失败(如 hook 拒绝);附报错原文与当时 index/工作区状态。hook 可能留下部分改动,不得谎称已恢复

流程

  1. 读暂存区:git status --short + git diff --cached,不能只靠文件名。
    • 暂存区非空:只提交暂存内容,不要 git add 其它未暂存改动。
    • 暂存区空、工作区有改动:AskUserQuestion「暂存全部改动并提交」(git add -A)/「取消,不提交」。未同意前不 git add。取消 → CANCELLED。
    • 都空:停止。
  2. 对齐风格:git log --oneline -10。贴近仓库习惯,不要强套 Conventional Commits;新提交优先 type: subject。
  3. 归纳主语义:覆盖暂存区全部改动的一个更高层概括。多类改动找主目的;过散也给一行诚实概括。
  4. 弹窗确认:AskUserQuestion 展示 message + 文件清单,「确认提交」/「取消」。Other 输入视为新 message。未确认不得 git commit。取消 → CANCELLED。
  5. 提交:message 写入临时文件后 git commit -F <文件>,再删临时文件。禁止 git commit -m "..."(反引号 / $() / 引号会破坏 shell)。成功 → COMMITTED(SHA + 文件清单)。失败 → FAILED(报错原文 + 实际 git 状态),不隐藏、不重试掩盖。
  6. 不推送。

Message 规范

<type>: <subject> 或 <type>(<scope>): <subject>。无明确 scope 则省略(Yakit 多数无 scope)。

  • 祈使语气(添加 / 修复 / 更新 / 优化),中文为主,术语/组件名保留英文。
  • 无句号;尽量 ≤72 字符(中文按 2 计)。
  • 禁止 WIP、misc、update files、修改、调整;不要手写 (#PR号)(GitHub 合并 PR 时自动加)。
type用途
feat新功能 / 页面 / 选项
fix用户可见行为修正
perf性能
refactor重构(行为不变)
style样式 / UI(无逻辑变化)
docs文档(含 AGENTS.md、README、注释)
test测试
build构建 / 依赖 / Vite / electron-builder
ciCI
chore脚本、工程化、版本号

scope 例:webfuzz、agents、renderer、electron、aiAgent、License。

示例

feat: 添加支持多子Agent的配置选项
fix: 暗色主题下关闭记事本时内容区闪白
docs(agents): 完善启动指南的依赖检查与用户决策弹框交互
build(renderer): 将主渲染端与 Link 从 CRA/Vite6 迁移至 Vite 8

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

Files

Just SKILL.md in .agents/skills/commit-msg of yaklang/yakit.

Open the folder on GitHubat commit 87904ea

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 skillyaklang/yakit7.8k—~559Automated safety check: PassAGPL-3.0
Publish Pull Request for taskctltaskctl/taskctl434—~979Automated safety check: PassGPL-3.0
Conventional Gitblackfyre/wga194—~843Automated safety check: PassApache-2.0
Git Workflow and Versioningaddyosmani/agent-skills102k2 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

  • Publishes the current branch and opens or updates a GitHub pull request for the taskctl repo, after a pre-publish gate and with a description template matched to the change.

    434 GitHub stars~979 tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Conventional Git

    blackfyre/wga

    Creates Conventional Commit messages and matching pull-request titles and branch names.

    194 GitHub stars~843 tokensUpdated 2 days ago
    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.

    102k 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
  • Emoji Commit Conventions

    baptisteArno/typebot.io

    Sets the repository's convention for commit messages and pull request titles: one emoji prefix for the main intent, a concise title and clean follow-up commits.

    11k GitHub stars~424 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from yaklang/yakit

  • Code Review

    yaklang/yakit

    对 Yakit 仓库的代码改动做规范化 code review:按代码逻辑、TS 定义、UI 引用与 Props、CSS 样式、依赖版本、配置项六个维度审查,检查测试用例缺失,强制执行 tsc 类型检查与 vitest 测试验证,输出「结果汇总 / 明细解释 / 合并结论」三块报告,经用户确认后写入文件。当用户要求 review、审查、评审代码改动,或在提交、合并、提 PR…

    7.8k GitHub stars~1.4k tokensUpdated 7 days ago
    Auto-check: notes
  • Create PR

    yaklang/yakit

    为 Yakit 仓库一站式完成提 PR 流程:提交工作区改动、调用 code-review skill 评审、推送远端后在 yaklang/yakit 创建或更新 PR。当用户要求提 PR、提交 PR、创建 PR、发 PR、raise/submit/open PR、"create PR"、更新已有 PR,或使用 /create-pr 时触发。

    7.8k GitHub stars~1.6k tokensUpdated 7 days ago
    Auto-check passed

Works with

Categories

Questions about Commit Msg

What does Commit Msg do?

为 Yakit 仓库完成一次本地提交:确定提交范围(暂存区优先,空则弹框确认)、基于 diff 归纳一行符合仓库风格的 message、commit 前弹窗确认、执行 git commit(不推送)。只要 message 时仅输出文本。用户说「提交」「commit 代码」或输入 /commit-msg,或被 create-pr 等 skill 调用时使用。. Commit Msg is an agent skill from yaklang/yakit.

When should I use Commit Msg?

Commit Msg fits situations like: tasks that involve Commit messages; tasks that involve Pull requests.

How do I install Commit Msg in Claude Code?

Run `npx skills add yaklang/yakit --skill commit-msg -a claude-code`. Or copy the skill folder (.agents/skills/commit-msg in yaklang/yakit) 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 yaklang/yakit --skill commit-msg -a codex`. Or copy the skill folder (.agents/skills/commit-msg in yaklang/yakit) 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 yaklang/yakit --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?

Commit Msg is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Commit Msg use?

About 559 tokens (SKILL.md is roughly 2.2k 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: Publish Pull Request for taskctl (taskctl/taskctl, 434 stars), Conventional Git (blackfyre/wga, 194 stars), Git Workflow and Versioning (addyosmani/agent-skills, 102k 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?

yaklang (a GitHub organization) maintains it in yaklang/yakit, which has 7,791 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 30, 2026.

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