/commit
Quick git commit with auto-generated or specified message
$ npx -y skills add huangjia2019/claude-code-engineering --agent claude-codeHow 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.mddescription: 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
This repository demonstrates how to use Claude Code to do real engineering work, not just writing code. 本项目是极客时间专栏 《Claude Code 工程化实战》 的官方配套示例仓库,目标就是: 👉 把 Claude Code 从“对话式编码工具”,变成 可设计、可复用、可治理的工程系统。
Other commands on claude-code-engineering.
- /explain
Explain code in simple, beginner-friendly terms
Open command - /log
Show recent git history with summary
Open command - /status
Show git status with helpful context
Open command - /review
对代码进行全面审查,输出结构化报告
Open command - /todo
Add a TODO comment to code with optional priority and assignee
Open command - /analyze
Deep analysis of code against project standards
Open command

