Skip to content
Development
Command

/commit

Quick git commit with auto-generated or specified message

From plugin
claude-code-engineering
1.1k11 skills16 agents11 commands
Install
$ npx -y skills add huangjia2019/claude-code-engineering --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/commit

Context preview

What this command does when you run it.

Quick git commit with auto-generated or specified message

Command definition

commit.md
description: Quick git commit with auto-generated or specified message
argument-hint: [optional: commit message]
allowed-tools: Bash(git status:*), Bash(git add:*), Bash(git commit:*), Bash(git diff:*)
model: haiku

Create a git commit.

If a message is provided: $ARGUMENTS

  • Use that as the commit message

If no message is provided:

  • Analyze the changes with `git diff --staged` (or `git diff` if nothing staged)
  • Generate a concise, meaningful commit message

Steps

1. Check `git status` to see current state 2. If nothing staged, run `git add .` to stage all changes 3. Review what will be committed with `git diff --staged` 4. Create commit:

  • If `$ARGUMENTS` is provided, use it as the message
  • Otherwise, generate a message based on the diff

5. Show the commit result

Commit Message Format

  • Start with type: `feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`
  • Be concise but descriptive (max 72 chars for first line)
  • Example: `feat: add user authentication with JWT`

Output

Show a brief confirmation:

✓ Committed: [commit message]
  [number] files changed
Ships withclaude-code-engineering

This repository demonstrates how to use Claude Code to do real engineering work, not just writing code. 本项目是极客时间专栏 《Claude Code 工程化实战》 的官方配套示例仓库,目标就是: 👉 把 Claude Code 从“对话式编码工具”,变成 可设计、可复用、可治理的工程系统。

Get the whole plugin, auto-invoked
Stats
1,050
Stars
0
Views
373
Forks
Active
Maintenance
JavaScript
Language
16d ago
Last commit
6mo ago
Created

Repo: huangjia2019/claude-code-engineering