Agent skill

Git Auto Commit

by cjinhuo in cjinhuo/blazwitcher

Git 自动提交工具。当用户需要提交代码变更、commit 更改或者完成任务后需要提交时,必须调用此 skill 自动生成符合规范的 commit message 并执行提交,默认推送到远端。

Apache-2.0Auto-check passedDevelopment

Install Git Auto Commit

skills CLI
$ npx skills add cjinhuo/blazwitcher --skill git-auto-commit -a claude-code

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

GitHub CLI
$ gh skill install cjinhuo/blazwitcher git-auto-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/cjinhuo/blazwitcher.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/git-auto-commit .claude/skills/git-auto-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
git-auto-commit
GitHub stars
101
Token cost
~355 tokens
SKILL.md length
118 words
Files
2
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Git 自动提交工具。当用户需要提交代码变更、commit 更改或者完成任务后需要提交时,必须调用此 skill 自动生成符合规范的 commit message 并执行提交,默认推送到远端。

  • Works in 3 steps: 只在用户明确要求时提交:未被要求时,不要主动提交或推送。 → 与 changeset 的前后顺序:若用户同一请求里同时要求“添加… → 安全优先:提交前必须检查暂存内容,避免把密钥、token、私钥等敏感信息提交到仓库…
  • Tasks that involve Commit messages
  • SKILL.md covers 决策顺序与优先级, 提交流程, 推送规则 and Commit Message 规范, plus 2 more sections
  • Calls git

What it does

Git Auto Commit is an agent skill from cjinhuo/blazwitcher. Git 自动提交工具。当用户需要提交代码变更、commit 更改或者完成任务后需要提交时,必须调用此 skill 自动生成符合规范的 commit message 并执行提交,默认推送到远端。

Its SKILL.md is about 360 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `commit-message-convention.md`).

It sits in Development, covering Commit messages. It works with Git. The repository describes itself as: A Chrome Extension to blaze through your tabs, bookmarks, and history — with powerful fuzzy Pinyin search and grouping tags by AI. 一款可以全局搜索标签、书签和历史记录的 Chrome 浏览器扩展,支持拼音模糊搜索和 AI…. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Commit messages

Example prompts

  • “/git-auto-commit”

Workflow steps

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

  1. 只在用户明确要求时提交:未被要求时,不要主动提交或推送。
  2. 与 changeset 的前后顺序:若用户同一请求里同时要求“添加 changeset + 提交”,必须先生成 changeset 文件,再执行本 skill(保证 changeset 被包含在提交中)。
  3. 安全优先:提交前必须检查暂存内容,避免把密钥、token、私钥等敏感信息提交到仓库;如发现疑似敏感信息,先停止并提示用户处理。

What it can do on your machine

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

Git Auto Commit loads about 355 tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 118 words of instructions outside code blocks.

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

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 cjinhuo/blazwitcher at commit 4b062db, republished under its Apache-2.0 licence (© cjinhuo). 118 words, ~355 tokens.

Download SKILL.mdSave it as .claude/skills/git-auto-commit/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
git-auto-commit
description
Git 自动提交工具。当用户需要提交代码变更、commit 更改或者完成任务后需要提交时,必须调用此 skill 自动生成符合规范的 commit message 并执行提交,默认推送到远端。

Git 自动提交规范

当用户明确要求“提交 / commit / 推送 / 把改动提交到仓库”时,必须遵循以下规范自动生成 commit message 并执行提交。

决策顺序与优先级

  1. 只在用户明确要求时提交:未被要求时,不要主动提交或推送。
  2. 与 changeset 的前后顺序:若用户同一请求里同时要求“添加 changeset + 提交”,必须先生成 changeset 文件,再执行本 skill(保证 changeset 被包含在提交中)。
  3. 安全优先:提交前必须检查暂存内容,避免把密钥、token、私钥等敏感信息提交到仓库;如发现疑似敏感信息,先停止并提示用户处理。

提交流程

  1. 执行 git status 查看当前变更
  2. 执行 git add . 暂存文件(如果用户没有特别说明,默认提交所有变更文件)
  3. 执行 git diff --cached --name-only 获取已暂存的关键变更文件列表
  4. 通过 git 命令查看关键变更文件的内容后生成符合规范的 commit message(避免凭空猜测)
  5. 执行 git commit -m "<message>" 提交
  6. 执行 git push 推送到远端(默认行为,除非用户明确说"不 push"或"不推送")

推送规则

  • 默认推送:提交完成后自动执行 git push
  • 跳过推送:仅当用户明确表示"不 push"、"不推送"、"只 commit"等类似意图时,才跳过推送步骤
  • 推送失败处理:如果推送失败,提示用户可能的原因(如需要先 pull、无远端分支等)

Commit Message 规范

规范来源优先级
  1. 优先读取项目根目录下的 .commitlint 配置文件

    • 如果存在该配置文件,严格遵循其中定义的规范
    • 读取可用的 commit type 列表及对应的 emoji
    • 读取 scope 的允许值及其他提交规则
  2. 如果没有 .commitlint 配置文件

输出要求(必须满足)

  1. 提交信息可追溯:message 必须与暂存的变更内容匹配,不允许与实际改动不一致
  2. 最小惊扰:默认提交全部变更;若用户只想提交部分文件,必须按用户指定范围暂存
  3. 遵循仓库规范:存在 commitlint 配置时必须严格遵循,否则按默认规范生成

使用场景

  1. 用户要求提交代码
  2. 任务完成后需要保存变更
  3. 需要生成规范的 commit message

© cjinhuo, 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/git-auto-commit of cjinhuo/blazwitcher.

  • SKILL.md
  • commit-message-convention.md

Open the folder on GitHubat commit 4b062db

Compare with similar skills

Git Auto 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.

Git Auto Commit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Auto Commit this skillcjinhuo/blazwitcher101—~355Automated 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-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

  • 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.

    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
  • 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 cjinhuo/blazwitcher

  • Release Publisher

    cjinhuo/blazwitcher

    Handles version bumping and release publishing for blazwitcher extension.

    101 GitHub stars~694 tokensUpdated 2 days ago
    Auto-check: notes
  • Text Search Engine

    cjinhuo/blazwitcher

    Guides users to integrate text-search-engine SDK for Chinese/English fuzzy search with Pinyin support.

    101 GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed
  • Changeset Generator

    cjinhuo/blazwitcher

    在创建或更新 PR 前,根据当前 pnpm workspace、公开包发布影响、Changesets 历史格式和 changesets-toolkit 提交钩子,生成并校验 Changesets 3 变更记录。用户要求添加或生成 changeset、创建 changeset、准备 PR、判断分支是否需要版本说明,或选择 major、minor、patch 版本类型时使用。

    101 GitHub stars~942 tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about Git Auto Commit

What does Git Auto Commit do?

Git 自动提交工具。当用户需要提交代码变更、commit 更改或者完成任务后需要提交时,必须调用此 skill 自动生成符合规范的 commit message 并执行提交,默认推送到远端。. Git Auto Commit is an agent skill from cjinhuo/blazwitcher.

When should I use Git Auto Commit?

Git Auto Commit fits situations like: tasks that involve Commit messages.

How do I install Git Auto Commit in Claude Code?

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

How do I install Git Auto Commit in Codex?

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

Can I use Git Auto 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 cjinhuo/blazwitcher --skill git-auto-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/git-auto-commit, .gemini/skills/git-auto-commit, .github/skills/git-auto-commit and .opencode/skills/git-auto-commit in your project.

What does Git Auto Commit need to run?

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

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

Git Auto 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 Git Auto Commit use?

About 355 tokens (SKILL.md is roughly 1.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 Git Auto Commit?

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

cjinhuo (a GitHub user) maintains it in cjinhuo/blazwitcher, which has 101 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 5, 2026.

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