Skip to content
Back to skills

Commit

ASecurity

Analyze git changes, stage as needed, generate a Conventional Commit message, and create a commit.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 30, 2026
code-qualitygit

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add jayli/block-proxy --skill commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jayli-commit/badge)](https://www.skillsdirectory.com/skills/jayli-commit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "commit"
description: "Analyze git changes, stage as needed, generate a Conventional Commit message, and create a commit."
argument-hint: "[optional commit intent]"
user-invocable: true
---

# Skill: Smart Git Commit

Use this skill when the user runs `/commit` or asks to commit changes.

## Instructions

1. **Analyze Context**:
   - Run `git status` to identify modified, added, or deleted files.
   - Run `git diff` to inspect changes in unstaged files.
   - Run `git diff --cached` to inspect changes in staged files.

2. **Stage Changes**:
   - If there are unstaged changes, run `git add -A` to stage all changes unless the user explicitly requested a partial commit.

3. **Generate Commit Message**:
   - Analyze diffs to understand the intent of changes.
   - Draft a message following **Conventional Commits**:
     ```
     <type>(<scope>): <description>

     [optional body]
     ```
   - **Type 使用英文**: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`。
   - Scope 为可选,应反映受影响的功能区域。
   - **标题示例格式**: `feat(world): WorldStore/RegionCache 架构与 runtime chunk streaming`
   - **正文尽量使用中文编写**,描述具体变更细节和原因。

4. **Execute Commit**:
   - Run `git commit -m "generated_message"`.
   - If a body is needed, use multiple `-m` flags.

5. **Report**:
   - Inform the user of the commit message used and commit result.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.