Agent skill

Git Commit Message

by overflow65537 in overflow65537/MAA_Punish

Generate precise git commit messages for this repository from staged or working tree diffs.

MITAuto-check passedDevelopment

Install Git Commit Message

skills CLI
$ npx skills add overflow65537/MAA_Punish --skill git-commit-message -a claude-code

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

GitHub CLI
$ gh skill install overflow65537/MAA_Punish git-commit-message --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/overflow65537/MAA_Punish.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/git-commit-message .claude/skills/git-commit-message && 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-message
GitHub stars
371
Token cost
~814 tokens
SKILL.md length
398 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Generate precise git commit messages for this repository from staged or working tree diffs.

  • Works in 5 steps: Inspect staged changes first. If nothing… → Identify the main user-visible or… → Choose the most accurate type → …
  • The user asks for commit messages
  • SKILL.md covers Purpose, Invocation, Repository style and How to analyze changes, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Git Commit Message is an agent skill from overflow65537/MAA_Punish. Generate precise git commit messages for this repository from staged or working tree diffs. Use when the user asks for commit messages, 提交信息, 提交说明, commit 文案, git commit, staged changes, or wants to summarize code changes in this project's existing style.

Its SKILL.md is about 810 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. The repository describes itself as: 战双帕弥什每日任务自动化 | Assistant For Punishing Gray Raven. The licence is MIT.

When your agent uses it

  • The user asks for commit messages
  • Wants to summarize code changes in this projects existing style

Example prompts

  • “/git-commit-message”

Workflow steps

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

  1. Inspect staged changes first. If nothing is staged, inspect the working tree diff.
  2. Identify the main user-visible or behavior-changing effect, not every small edit.
  3. Choose the most accurate type
  4. Write one concise Chinese summary that explains the primary change.
  5. Match the tone already used in this repository: direct, concrete, and action-oriented.

What it can do on your machine

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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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 Message loads about 814 tokens when it runs. Until then it costs about 69 tokens; SKILL.md has 398 words of instructions outside code blocks.

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

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 overflow65537/MAA_Punish at commit 5961665, republished under its MIT licence (© overflow65537). 398 words, ~814 tokens.

Download SKILL.mdSave it as .claude/skills/git-commit-message/SKILL.md (or your agent's skills folder).
name
git-commit-message
description
Generate precise git commit messages for this repository from staged or working tree diffs. Use when the user asks for commit messages, 提交信息, 提交说明, commit 文案, git commit, staged changes, or wants to summarize code changes in this project's existing style.
disable-model-invocation
true

Git Commit Message

Purpose

Generate commit messages that match this repository's existing style.

Invocation

  • Invoke manually in Cursor Chat with /git-commit-message.
  • Prefer staged changes. If nothing is staged, analyze the current working tree diff.
  • Return only the final commit message unless the user explicitly asks for explanation or alternatives.

Repository style

  • Use a Conventional Commit type prefix such as feat:, fix:, perf:, refactor:, docs:, test:, or chore:.
  • The summary is usually written in simplified Chinese.
  • Prefer a single-line subject only. Do not add a body unless the user explicitly asks for one or the change is too complex to summarize in one line.
  • Keep the subject specific to the actual behavior change. Avoid vague summaries like 更新代码 or 修改逻辑.
  • Do not invent scope unless the user explicitly requests type(scope): subject.

How to analyze changes

  1. Inspect staged changes first. If nothing is staged, inspect the working tree diff.
  2. Identify the main user-visible or behavior-changing effect, not every small edit.
  3. Choose the most accurate type:
    • feat: new behavior, new logic, or new supported scenario
    • fix: bug fix, wrong behavior correction, recovery handling, edge case handling
    • perf: performance optimization or faster / lighter logic
    • refactor: structural rewrite without intended behavior change
    • docs: documentation only
    • test: tests only
    • chore: maintenance, config, tooling, cleanup
  4. Write one concise Chinese summary that explains the primary change.
  5. Match the tone already used in this repository: direct, concrete, and action-oriented.
Show full SKILL.md (163 more words)Show less

Output rules

  • Default to outputting only the final commit subject.
  • Do not wrap the result in backticks unless the user asks for raw code formatting.
  • Do not output multiple alternatives unless the user asks for options.
  • If the change mixes multiple categories, choose the dominant one.
  • If the diff is too broad to summarize honestly, say so and provide the best high-level summary.

Preferred wording patterns

  • feat: 添加...
  • feat: 更新...,优化...
  • fix: 修复...
  • fix: 修复...,确保...
  • perf: 优化...

Good examples

Input: add special handling when signal orb elimination target equals 2 in phase 2 Output: feat: 在希声2阶段增加信号球消除目标为2的处理逻辑

Input: fix restart flow after battle failure in 寒境曙光 Output: fix: 修复寒境曙光战斗失败后重启游戏

Input: optimize 深谣 combat logic Output: perf: 优化深谣战斗逻辑

Input: fix attack count handling when core skill is not ready Output: fix: 修复晖暮攻击逻辑,确保在核心技能未就绪时正确处理攻击次数

When the user asks for more than one line

If the user explicitly wants a title and body, use:

text
<type>: <中文摘要>

<1-2 句中文正文,解释为什么改,而不是逐条罗列代码改动>

Suggested prompts

  • /git-commit-message
  • 根据当前 staged diff,用 git-commit-message skill 生成提交信息
  • 按这个仓库的风格写一条 commit message
  • 根据改动生成中文 Conventional Commit

© overflow65537, MIT. 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 .cursor/skills/git-commit-message of overflow65537/MAA_Punish.

Open the folder on GitHubat commit 5961665

Compare with similar skills

Git Commit Message 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 Message compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Commit Message this skilloverflow65537/MAA_Punish371—~814Automated safety check: PassMIT
Contextual Commit Messagesyamadashy/repomix29k1 repos~2.7kAutomated safety check: PassMIT
React Router Release Notes Prepremix-run/react-router57k—~1.1kAutomated safety check: PassMIT
Caveman Commitvishiri/fantasia-archive40913 repos~642Automated safety check: PassGPL-3.0
PR Finalize Reviewmicrosoft/garnet12k—~3.1kAutomated safety check: PassMIT
ToolJet Multi-Repo CommitToolJet/ToolJet41k—~1.3kAutomated safety check: PassAGPL-3.0

Similar skills

  • Writes Conventional Commits whose bodies carry action lines recording the intent, decisions and constraints behind a change, not only what changed.

    29k GitHub starsUsed in 1 repo~2.7k tokens
    DevelopmentAuto-check passed
  • 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 2 days ago
    DevelopmentAuto-check passed
  • Caveman Commit

    vishiri/fantasia-archive

    Ultra-compressed commit message generator. An agent skill from vishiri/fantasia-archive.

    409 GitHub starsUsed in 13 repos~642 tokens
    DevelopmentAuto-check passed
  • PR Finalize Review

    microsoft/garnet

    Official

    Checks that a pull request's title and description match its implementation and reviews the code for Garnet best practices, reporting findings without posting them.

    12k GitHub stars~3.1k tokensUpdated today
    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

More from overflow65537/MAA_Punish

  • Maa Punish Log Analysis

    overflow65537/MAA_Punish

    分析用户给出的本地日志目录或日志文件路径,结合 MAAPunish(MaaFramework + Python 自定义 + MFW-cfa)仓库定位任务卡死、识别失败、Pipeline 与自定义逻辑问题。主日志为 gui.log(cfa 图形界面)、custom.log(Python/agent 自定义)、debug/maa.log(框架运行时)。不下载或解压…

    371 GitHub stars~606 tokensUpdated yesterday
    Auto-check passed
  • Maa Punish Pipeline Guide

    overflow65537/MAA_Punish

    MAAPunish 任务流水线 JSON/JSONC 编写与审查指南。含 Pipeline 速查表(识别类型、动作类型、节点字段默认值、JumpBack/Anchor、Custom)。基于 MaaFramework 协议与本仓库 protocol-3.1-task-pipeline.md。在编写或审查 pipeline、排查超时/onerror、或使用…

    371 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Git Commit Message

What does Git Commit Message do?

Generate precise git commit messages for this repository from staged or working tree diffs. Git Commit Message is an agent skill from overflow65537/MAA_Punish. Generate precise git commit messages for this repository from staged or working tree diffs.

When should I use Git Commit Message?

Git Commit Message fits situations like: the user asks for commit messages; wants to summarize code changes in this projects existing style.

How do I install Git Commit Message in Claude Code?

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

How do I install Git Commit Message in Codex?

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

Can I use Git Commit Message 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 overflow65537/MAA_Punish --skill git-commit-message -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-message, .gemini/skills/git-commit-message, .github/skills/git-commit-message and .opencode/skills/git-commit-message in your project.

What does Git Commit Message need to run?

SKILL.md names no scripts, command-line tools or credentials: Git Commit Message is instructions for the agent only.

Does Git Commit Message access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

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

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

How many tokens does Git Commit Message use?

About 814 tokens (SKILL.md is roughly 3.3k 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 Commit Message?

Skills that share tags, products or a category with Git Commit Message: Contextual Commit Messages (yamadashy/repomix, 29k stars), React Router Release Notes Prep (remix-run/react-router, 57k stars), Caveman Commit (vishiri/fantasia-archive, 409 stars) and PR Finalize Review (microsoft/garnet, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Commit Message?

overflow65537 (a GitHub user) maintains it in overflow65537/MAA_Punish, which has 371 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 7, 2026.

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