Agent skill

Git Commit

by tisfeng in tisfeng/Easydict

起草、创建或汇报 Angular-style 本地 Git 提交。用于明确的提交交付;分支集成使用 worktree-rebase-merge,不 push。

GPL-3.0Auto-check passedDevelopment

Install Git Commit

skills CLI
$ npx skills add tisfeng/Easydict --skill git-commit -a claude-code

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

GitHub CLI
$ gh skill install tisfeng/Easydict git-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/tisfeng/Easydict.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/git-commit .claude/skills/git-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-commit
GitHub stars
15k
Token cost
~535 tokens
SKILL.md length
167 words
Files
10 (incl. scripts, references)
Skills in repo
8
Repo updated
First seen
Licence
GPL-3.0

At a glance

起草、创建或汇报 Angular-style 本地 Git 提交。用于明确的提交交付;分支集成使用 worktree-rebase-merge,不 push。

  • Works in 4 steps: 记录调用目录,使用 git rev-parse --show-toplevel… → 读取 HEAD、分支、status、最近提交、staged/unstaged… → 准备写入时复验 HEAD、索引、候选路径和内容。发现冲突、归属不明或非预期漂移时 → …
  • Tasks that involve Commit messages
  • SKILL.md covers 任务与边界, 选择模式, 范围与 Git 状态保护 and 提交主流程, plus 1 more section
  • Runs Python scripts from its folder; calls git

What it does

Git Commit is an agent skill from tisfeng/Easydict. 起草、创建或汇报 Angular-style 本地 Git 提交。用于明确的提交交付;分支集成使用 worktree-rebase-merge,不 push。

Its SKILL.md is about 540 tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/branch-naming.md` and `references/commit-message.md`).

It sits in Development, covering Commit messages, Git worktrees and Git workflow. It works with Git and Angular. The repository describes itself as: 一个简洁优雅的词典翻译 macOS App。开箱即用,支持离线 OCR 识别,支持有道词典,🍎 苹果系统词典,🍎 苹果系统翻译,OpenAI,Gemini,DeepL,Google,Bing,腾讯,百度,阿里,小牛,彩云和火山翻译。A concise and elegant Dictionary and Translator macOS App… The licence is GPL-3.0.

When your agent uses it

  • Tasks that involve Commit messages
  • Tasks that involve Git worktrees
  • Tasks that involve Git workflow

Example prompts

  • “/git-commit”

Requirements

  • Python 3

Workflow steps

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

  1. 记录调用目录,使用 git rev-parse --show-toplevel 定位仓库根目录;相对路径先按原调用目录解析。
  2. 读取 HEAD、分支、status、最近提交、staged/unstaged raw diff 和相关 untracked 内容,
  3. 准备写入时复验 HEAD、索引、候选路径和内容。发现冲突、归属不明或非预期漂移时
  4. 获准后只执行一次选定的暂存动作,并比较 staged paths 与 raw patch 是否与候选完全一致。

What it can do on your machine

Read from SKILL.md and the folder at commit cfda6e2. 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 2 files in scripts/ (Python), which the agent can run.

    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 Commit loads about 535 tokens when it runs, and up to ~3.3k if it reads all its reference files. Until then it costs about 23 tokens; SKILL.md has 167 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~535
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.3k

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 tisfeng/Easydict at commit cfda6e2, republished under its GPL-3.0 licence (© tisfeng). 167 words, ~535 tokens.

Download SKILL.mdSave it as .claude/skills/git-commit/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
git-commit
description
起草、创建或汇报 Angular-style 本地 Git 提交。用于明确的提交交付;分支集成使用 worktree-rebase-merge,不 push。

Git 提交流程

以经范围校验的 staged diff 创建本地提交。只读预览可使用尚未暂存的候选, 但必须标为草稿。<git-commit-skill-dir> 指实际加载的本 Skill 目录。

任务与边界

任务结果
起草或预览根据 staged 内容或获准候选返回草稿,不改变 Git。
创建提交在有效提交授权下完成范围判断、预览、暂存、提交和校验。
汇报已有提交读取指定提交或范围的真实消息与统计,不启动新提交。
为组合 Skill 推导分支名只返回合法候选,不暂存、提交或创建分支。

本 Skill 不运行 git push、rebase 或 merge。调用方传入真实任务、允许范围和已有证据, 不需要采用本 Skill 的内部字段。

选择模式

  • 只命名或汇报已有提交:只完成该任务;未指定提交对象时先明确对象。
  • 仅预览、起草或只读:不暂存、不创建消息文件、不提交。已有 staged 内容时 只用其起草;索引为空时使用获准范围内的候选。
  • 确认模式:展示完整预览并等待批准。未单独获准时,确认前不暂存。
  • 默认模式:明确调用本 Skill 或宿主已授权自动本地提交时,展示预览后直接提交。

用户的禁止、范围、确认和暂缓要求持续有效;“不提交”不自动授权暂存。

范围与 Git 状态保护

  1. 记录调用目录,使用 git rev-parse --show-toplevel 定位仓库根目录;相对路径先按原调用目录解析。
  2. 读取 HEAD、分支、status、最近提交、staged/unstaged raw diff 和相关 untracked 内容, 区分用户已有变更与本任务候选。
  3. 准备写入时复验 HEAD、索引、候选路径和内容。发现冲突、归属不明或非预期漂移时 停止,不覆盖、清理或自动 amend。
  4. 获准后只执行一次选定的暂存动作,并比较 staged paths 与 raw patch 是否与候选完全一致。 不一致时停止,不通过第二次 git add 修正范围;不创建空提交。
情况暂存动作
已有索引不运行 git add,只提交既有 staged 内容;超出请求范围时停止。
显式交付、空索引、限定路径一次 git add -- <selected-paths>。
显式交付、空索引、未限定路径未禁止暂存且非 staged-only 时,在仓库根目录一次 git add .。
宿主授权自动提交一次 git add -- <expected-commit-paths>,禁止 git add .。

宿主自动提交还必须有首次写入前的 HEAD、初始 Git 状态、允许路径和内容归属证据。 初始索引非空、唯一暂存前出现非 Agent staged 内容、验证失败或仍有暂缓要求时, 停止自动提交。这不反向限制用户已明确授权的 staged-only 提交。

提交主流程

  1. 起草提交时读取 提交信息契约。在主对话以 text 代码围栏展示 完整、将要使用的消息;仅预览到此结束,确认模式等待批准。
  2. 完成唯一暂存并复验后,将与预览完全一致的内容写入本任务专用消息文件。 候选或消息变化时重新审核和展示;用户要求确认时不复用旧批准。
  3. 使用 Skill 内校验器检查消息,再运行 git commit -F <message-file>。
  4. 以新建完整 commit hash 执行提交后消息一致性校验。校验失败时保留消息文件, 不 amend,不声称交付完成。
  5. 校验通过后删除本任务消息文件,读取 统计与提交回执,根据 Git 真实结果交付。

仅为 submit-pr 或 worktree-rebase-merge 推导分支名时,读取 分支命名,不进入提交流程。

完成与停止条件

只有范围与 staged raw patch 一致、必要验证通过、Git 真实消息与预览一致,且最终 状态和统计已核对时,才算创建提交完成。范围无法证明、出现冲突或漂移、权限被拒、 提交前/后校验失败、hook 改写结果或统计不一致时保留现场并报告具体阶段, 不自动扩大暂存、重试写入、amend 或清理用户状态。

© tisfeng, GPL-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

SKILL.md and 9 other files (scripts, references) in .agents/skills/git-commit of tisfeng/Easydict.

  • SKILL.md
  • agents/openai.yaml
  • references/branch-naming.md
  • references/commit-message.md
  • references/post-commit-report-example.md
  • references/reporting.md
  • scripts/commit-change-stats.py
  • scripts/validate-commit-message.py
  • tests/test_commit_change_stats.py
  • tests/test_validate_commit_message.py

Open the folder on GitHubat commit cfda6e2

Compare with similar skills

Git 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 Commit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Commit this skilltisfeng/Easydict15k—~535Automated safety check: PassGPL-3.0
Conventional Gitsamber/cc-skills228—~1.8kAutomated safety check: PassMIT
Oma Scmfirst-fluke/oh-my-agent1.3k—~3.3kAutomated safety check: NotesMIT
Git WorkflowEliasOulkadi/shokunin114—~2.4kAutomated safety check: NotesMIT
Changelog Generatorespennilsen/pi122—~3.7kAutomated safety check: PassMIT
Git Workflowericrisco/rsc-harness156—~3.5kAutomated safety check: PassMIT

Similar skills

  • Conventional Git

    samber/cc-skills

    Conventional Commits v1.0.0 branch naming, worktree naming, and commit message standards for GitHub and GitLab projects.

    228 GitHub stars~1.8k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Oma Scm

    first-fluke/oh-my-agent

    SCM (software configuration management) and Git — branching, merges, conflicts, worktrees, baselines, audit readiness, plus Conventional Commits and safe staging.

    1.3k GitHub stars~3.3k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Git Workflow

    EliasOulkadi/shokunin

    Automate the complete Git development workflow — create feature branches with conventional naming, atomic commits with conventional commit messages, interactive rebase, squash merges, PR body…

    114 GitHub stars~2.4k tokensUpdated 2 days ago
    DevelopmentAuto-check: notes
  • Changelog Generator

    espennilsen/pi

    Parse git history and produce or update a CHANGELOG.md following the Keep a Changelog convention.

    122 GitHub stars~3.7k tokensUpdated 15 days ago
    DevelopmentAuto-check passed
  • Git Workflow

    ericrisco/rsc-harness

    A skill your agent uses when naming or scoping a branch, writing or fixing a commit message, picking the gitmoji for a commit, untangling history (rebase versus merge versus squash), or cutting a…

    156 GitHub stars~3.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed

More from tisfeng/Easydict

All 8 skills in this repo
  • Fireworks Tech Graph

    tisfeng/Easydict

    Create precise SVG technical diagrams, export PNG or offline HTML, and animate supported semantic SVGs to GIF.

    15k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Release Easydict

    tisfeng/Easydict

    编排 Easydict macOS 的 draft、publish、release 和 resume,整理英文 GitHub Release 内容,并处理发布后的 Issue 跟进及本地清理。不用于一般的发布流程设计讨论。

    15k GitHub stars~810 tokensUpdated yesterday
    Auto-check passed
  • Submit PR

    tisfeng/Easydict

    创建或复用当前 checkout 已提交变更的 GitHub PR,必要时推送任务分支。PR 审查使用 review-pr;仅本地提交使用 git-commit。

    15k GitHub stars~595 tokensUpdated yesterday
    Auto-check passed
  • Review

    tisfeng/Easydict

    审查本地工作树、提交、range、文件或模块,找出有证据的缺陷。GitHub PR 审查使用 review-pr;代码清理使用 code-simplifier。

    15k GitHub stars~659 tokensUpdated yesterday
    Auto-check passed
  • Review PR

    tisfeng/Easydict

    审查 GitHub PR 的准确 head/base diff、关联 issue、CI 和 review threads,交付前刷新。创建 PR 使用 submit-pr;本地审查使用 review。

    15k GitHub stars~723 tokensUpdated yesterday
    Auto-check passed
  • Worktree Rebase Merge

    tisfeng/Easydict

    将当前 worktree 的任务提交 rebase 到本地目标分支,并从目标 worktree 合并。用于明确要求本地集成;仅创建提交使用 git-commit。

    15k GitHub stars~408 tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Git Commit

What does Git Commit do?

起草、创建或汇报 Angular-style 本地 Git 提交。用于明确的提交交付;分支集成使用 worktree-rebase-merge,不 push。. Git Commit is an agent skill from tisfeng/Easydict.

When should I use Git Commit?

Git Commit fits situations like: tasks that involve Commit messages; tasks that involve Git worktrees; tasks that involve Git workflow.

How do I install Git Commit in Claude Code?

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

How do I install Git Commit in Codex?

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

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

What does Git Commit need to run?

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

Does Git 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 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Git Commit use?

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

How many tokens does Git Commit use?

About 535 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.7k tokens, read only when the agent opens those files.

What are the alternatives to Git Commit?

Skills that share tags, products or a category with Git Commit: Conventional Git (samber/cc-skills, 228 stars), Oma Scm (first-fluke/oh-my-agent, 1.3k stars), Git Workflow (EliasOulkadi/shokunin, 114 stars) and Changelog Generator (espennilsen/pi, 122 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Commit?

tisfeng (a GitHub user) maintains it in tisfeng/Easydict, which has 14,856 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 6, 2026.

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