Agent skill

Commit

by thun-res in thun-res/vlink

提交前强制执行 VLink 的 format 与 check skill,再分析当前工作树的全部 staged、unstaged 与 untracked 改动,按模块、功能和依赖关系拆分为可独立 评审的 Conventional Commits,生成简洁且覆盖重要行为的英文 commit message 并逐组提交。用户要求“提交当前改动”、“按功能拆 commit”、 “自动写 commit…

Apache-2.0Auto-check passedDevelopment

Install Commit

skills CLI
$ npx skills add thun-res/vlink --skill commit -a claude-code

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

GitHub CLI
$ gh skill install thun-res/vlink commit --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/thun-res/vlink.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/commit .claude/skills/commit && 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
GitHub stars
115
Token cost
~931 tokens
SKILL.md length
294 words
Files
2
Skills in repo
16
Repo updated
First seen
Licence
Apache-2.0

At a glance

提交前强制执行 VLink 的 format 与 check skill,再分析当前工作树的全部 staged、unstaged 与 untracked 改动,按模块、功能和依赖关系拆分为可独立 评审的 Conventional Commits,生成简洁且覆盖重要行为的英文 commit message 并逐组提交。用户要求“提交当前改动”、“按功能拆 commit”、 “自动写 commit…

  • Works in 6 steps: 强制前置门禁 → 盘点全部改动 → 制定提交分组 → …
  • Tasks that involve Commit messages
  • SKILL.md covers 1. 强制前置门禁, 2. 盘点全部改动, 3. 制定提交分组 and 4. 编写 Commit Message, plus 2 more sections
  • Calls git

What it does

Commit is an agent skill from thun-res/vlink. 提交前强制执行 VLink 的 format 与 check skill,再分析当前工作树的全部 staged、unstaged 与 untracked 改动,按模块、功能和依赖关系拆分为可独立 评审的 Conventional Commits,生成简洁且覆盖重要行为的英文 commit message 并逐组提交。用户要求“提交当前改动”、“按功能拆 commit”、 “自动写 commit msg”或“整理提交历史”时使用。

Its SKILL.md is about 930 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Development, covering Commit messages. It works with Git. The repository describes itself as: VLink is a high-performance C++ communication middleware for autonomous driving and embodied intelligence, positioned as a full-scenario alternative to ROS 2. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Commit messages

Example prompts

  • “提交当前改动”
  • “按功能拆 commit”
  • “自动写 commit msg”
  • “/commit”

Workflow steps

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

  1. 强制前置门禁
  2. 盘点全部改动
  3. 制定提交分组
  4. 编写 Commit Message
  5. 逐组暂存和提交
  6. 完成后报告

What it can do on your machine

Read from SKILL.md and the folder at commit 1793889. 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 loads about 931 tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 294 words of instructions outside code blocks.

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

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 thun-res/vlink at commit 1793889, republished under its Apache-2.0 licence (© thun-res). 294 words, ~931 tokens.

Download SKILL.mdSave it as .claude/skills/commit/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
commit
description
提交前强制执行 VLink 的 format 与 check skill,再分析当前工作树的全部 staged、unstaged 与 untracked 改动,按模块、功能和依赖关系拆分为可独立 评审的 Conventional Commits,生成简洁且覆盖重要行为的英文 commit message 并逐组提交。用户要求“提交当前改动”、“按功能拆 commit”、 “自动写 commit msg”或“整理提交历史”时使用。

按模块和功能提交

只创建本地 commit,不 push、不创建 PR、不改写已有历史。先读仓库根 AGENTS.md、.agents/CI-AND-PR.md 与 doc/15-contributing.md §15.9/§15.11。

1. 强制前置门禁

创建任何 commit、调整暂存区或制定最终分组前,必须完整加载并依次执行 .agents/skills/format/SKILL.md 与 .agents/skills/check/SKILL.md:

  1. 先记录 git status --short 和完整 diff,根据用户请求确认本次授权 覆盖的文件及其中既有改动是否允许格式化。存在归属不明、其他 Agent 改动或未授权 WIP 时停止询问;/commit 不自动授权格式化这些文件。
  2. 再按 /format 检查依赖与平台并执行 tools/format.sh;macOS 使用 该 skill 规定的 Homebrew GNU sed 路径。缺少工具且需要安装依赖时先 征得用户确认;不允许跳过格式化后继续提交。
  3. 脏工作树中 tools/format.sh 会在格式化阶段全部成功后,因检测到 tracked diff 打印 Files have changed. 并返回 1;这是预期的差异 状态,不能误判为格式化失败。未完成全部阶段、工具报错或出现其他 非零退出时停止,不得提交。
  4. 格式化后对照执行前 diff 重新检查工作树。若触及授权范围外的干净或 已脏文件,报告精确范围并停止,不得提交或回退维护者内容。
  5. 再按 /check 检查 cpplint 依赖并执行 tools/check.sh。任何告警 或非零退出都必须停止提交;不得追加过滤、使用 NOLINT 消音或绕过 检查。只有用户另行要求修复时才修改对应源码。
  6. 两项门禁都完成后运行 git diff --check,然后才允许进入改动盘点与 分组。最终报告必须列出实际工具版本、命令和结果;不得把缺失、跳过 或失败写成通过。

只要 /format 或 /check 未执行、无法执行或未通过,本 skill 就不得 创建任何 commit。

2. 盘点全部改动

  1. 确认位于 VLink 仓库且当前不是 detached HEAD;存在 unresolved conflict 时停止。
  2. 同时检查 git status --short、staged/unstaged diff、文件状态和 untracked 文件内容。忽略 ignored 文件,不提交构建产物、缓存、密钥、 token 或与任务无关的个人配置。
  3. 结合 .agents/REPO-REFERENCE.md 判断模块职责,并从实际 diff 识别 功能目的;不得只按顶层目录或扩展名机械分组。
  4. 已有 staged 内容也必须纳入分析。需要重组 index 时只调整暂存区, 不改写或丢弃工作树内容,并在每一步后核对 staged/unstaged 差异。

3. 制定提交分组

每个 commit 只表达一个可独立说明、独立评审的逻辑变化:

  • 不同模块或互不依赖的功能分别提交。
  • 同一功能的实现、测试、公开注释、Python/C 导出、示例和文档同步放在 同一 commit,不为追求目录整齐拆散必要同步项。
  • 公共基础设施先于依赖它的功能提交;生成文件与其源文件成对提交。
  • 行为修复、纯重构、格式整理、CI/构建、Agent 指引分别提交,除非其中 一项是另一项不可分割的组成部分。
  • 同一文件含多个独立改动时可按 hunk 分拆暂存;改动相互交叠、无法安全 分拆时保持同组,不修改源码制造拆分。
  • 不为减少 commit 数量混合无关内容,也不把一个完整功能切成逐文件碎片。

开始提交前先形成有序分组清单,列出每组目的、type/scope 和文件/hunk。 用户已明确要求自动提交时直接执行;只有改动意图无法从代码判断、发现 疑似敏感信息或无法无损分组时才停止询问。

4. 编写 Commit Message

遵循 type(scope): subject。type、scope、subject 与必要的 body 全部使用英文;代码标识、路径、API 名和错误信息保持原文,与 doc/15-contributing.md §15.11 一致。

  • type 从 feat、fix、refactor、perf、docs、test、build、 ci、chore、style、revert 中选择。
  • scope 使用仓库现有模块名,如 base、extension、proxy、 module-dds、cli-bag、cmake、agents;不可拆分的跨 scope 改动可省略 scope 或使用 *,但可拆分时不得用 * 掩盖混合提交。
  • subject 使用简洁明确的英文祈使句,不加句号且不超过 72 字符;准确 写出行为,不使用 update、adjust、misc fixes、cleanup 等 空泛表述。
  • subject 已足够时不写 body。重要行为无法在 subject 中讲清时添加一个 简短英文 body,优先说明原因、用户可见影响、性能/兼容变化或关键约束, 不逐文件复述 diff;每行不超过 72 字符。
  • 仅在确有破坏性变更或 issue 时写 BREAKING CHANGE:、Closes:、 Refs: footer,不推测编号。

示例:

text
ci: standardize GitHub Actions script style
fix(packup): prevent empty config from leaking local scope
docs(agents): add module-aware commit skill

5. 逐组暂存和提交

对每一组依次执行:

  1. 暂存前重新读取 git status、目标文件和相关 diff;出现不在分组清单 内的新变化时停止并重新分析,不得覆盖、回退或顺手纳入其他 Agent 的 工作。只暂存该组的明确路径或 hunk,禁止无检查地使用 git add -A、 git add . 或通配整个仓库。
  2. 查看完整 git diff --cached 和 --stat,确认没有混入下一组、 ignored/生成垃圾或敏感信息;运行 git diff --cached --check。
  3. git commit 前再次确认工作树和 index 未发生并发变化。staged diff 非空且单独成立时再用最终 message 提交。
  4. commit hook 失败时不得使用 --no-verify。检查 hook 产生的变化, 修正分组或报告阻塞后再提交。
  5. 用 git show --stat --oneline HEAD 核对结果,再处理下一组。不得 amend、rebase、squash 或 reset 已创建的 commit,除非用户明确要求。

本 skill 只额外授权上述强制 /format 与 /check;不要自行执行 cmake、ninja、clang-tidy 或测试二进制,也不要在 commit message 中声称未执行的验证已通过。

6. 完成后报告

输出按顺序排列的 commit hash、subject 和每组核心范围;同时报告剩余 未提交改动及原因,并单列 /format、/check 的实际结果。最后确认未 push、未创建 PR、未改写历史。

© thun-res, Apache-2.0. 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 1 other file in .agents/skills/commit of thun-res/vlink.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 1793889

Compare with similar skills

Commit 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 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Commit this skillthun-res/vlink115—~931Automated safety check: PassApache-2.0
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 thun-res/vlink

All 16 skills in this repo
  • Issue

    thun-res/vlink

    调查 VLink 中可复现的缺陷、文档遗漏或功能建议,搜索 open/closed Issue 去重,按仓库模板用自然、具体、证据充分的简体中文草拟或创建 Issue, 可读取既有 Issue 上下文后草拟或发布单条回复.用户要求"提 issue"、 "创建 issue"、"检查是否已有 issue"、"回复 issue"、"评论 issue"、 "帮我回应…

    115 GitHub stars~753 tokensUpdated yesterday
    Auto-check passed
  • Asan

    thun-res/vlink

    以 AddressSanitizer(ENABLETESTSANITIZE=ON)构建并运行 vlink-test 单元测试,复现 CI 的 ASan 门禁。用户要求"跑 asan"、"内存检测测试"、 排查 ci-test 的 sanitize 失败时使用。

    115 GitHub stars~683 tokensUpdated yesterday
    Auto-check passed
  • Bench

    thun-res/vlink

    构建并运行 vlink-bench 性能基准(showcase/quick/full 预设),生成 HTML/JSON 报告。用户要求"跑 bench"、"性能测试"、对比后端吞吐/延迟、 验证性能回归时使用。

    115 GitHub stars~993 tokensUpdated yesterday
    Auto-check passed
  • Cicd

    thun-res/vlink

    用 gh CLI 触发/查看 GitHub CI/CD:手动 dispatch 工作流 (release/coverage/docker)、查看运行状态与失败日志、重跑失败 job.

    115 GitHub stars~856 tokensUpdated yesterday
    Auto-check passed
  • Clang Tidy

    thun-res/vlink

    对指定文件或全仓库运行 clang-tidy(WarningsAsErrors='')。用户要求 "跑 clang-tidy"、"tidy 检查某文件"、排查 CI tidy 门禁失败时使用。

    115 GitHub stars~712 tokensUpdated yesterday
    Auto-check passed
  • Coverage

    thun-res/vlink

    以 ENABLETESTCOVERAGE=ON 构建、运行测试并生成 lcov 代码覆盖率报告, 复现 CI 的 coverage 流水线。用户要求"跑覆盖率"、"生成 coverage 报告"、查某模块覆盖情况时使用。

    115 GitHub stars~913 tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Commit

What does Commit do?

提交前强制执行 VLink 的 format 与 check skill,再分析当前工作树的全部 staged、unstaged 与 untracked 改动,按模块、功能和依赖关系拆分为可独立 评审的 Conventional Commits,生成简洁且覆盖重要行为的英文 commit message 并逐组提交。用户要求“提交当前改动”、“按功能拆 commit”、 “自动写 commit…. Commit is an agent skill from thun-res/vlink.

When should I use Commit?

Commit fits situations like: tasks that involve Commit messages.

How do I install Commit in Claude Code?

Run `npx skills add thun-res/vlink --skill commit -a claude-code`. Or copy the skill folder (.agents/skills/commit in thun-res/vlink) into .claude/skills/commit in your project. Claude Code loads it when a task matches its description.

How do I install Commit in Codex?

Run `npx skills add thun-res/vlink --skill commit -a codex`. Or copy the skill folder (.agents/skills/commit in thun-res/vlink) into .agents/skills/commit in your project. Codex loads it when a task matches its description.

Can I use Commit 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 thun-res/vlink --skill commit -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, .gemini/skills/commit, .github/skills/commit and .opencode/skills/commit in your project.

What does Commit need to run?

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

Does Commit 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 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 use?

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

How many tokens does Commit use?

About 931 tokens (SKILL.md is roughly 3.7k 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?

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

thun-res (a GitHub user) maintains it in thun-res/vlink, which has 115 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 7, 2026.

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