
smart-commit
AI-powered git commit message generation. Uses LLM to summarize changes and create meaningful commit messages. Triggers when user wants to commit changes, amend/squash commits, or needs LLM to summarize changes for commit messages. Chinese triggers: 提交, 提交代码, 提交更改, 提交修改, 要提交, commit, 提交信息, git 提交, 生成提交信息.
- Installs
- 53
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/jackjin1997/clawforge --skill smart-commit- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads smart-commit automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Smart Commit
AI-powered git commit message generation using LLM. Creates meaningful commit messages from code changes.
Capabilities
- Amend Last Commit - Summarize staged/unstaged changes and amend the last commit message
- Squash Commits - Summarize last N commits and create a consolidated commit
- Interactive Commit - Confirm files with user, then summarize and create new commit
Quick Start
For New Commit
# Show changed files and ask user confirmation
git status
# After confirmation, summarize changes with LLM
# Create commit with generated message
For Amending
# Get diff of changes to amend
git diff --cached # staged
git diff HEAD~1 # compared to last commit
# LLM summarizes, then
git commit --amend -m "new message"
For Squashing
# Get last N commit messages and diffs
git log -n N --format="%H %s"
# LLM summarizes, then
git reset --soft HEAD~N
git commit -m "consolidated message"
Workflow Decision Tree
User wants git commit help?
├─ "amend" or "修改"? → Amend workflow
├─ "squash" or "合并" + number? → Squash workflow
└─ New commit? → Interactive workflow
Amend Workflow
- Get changes:
git diff --cached(staged) orgit diff HEAD~1(all changes since last commit) - Send to LLM with prompt from
references/prompts.mdsection "Amend Commit" - User reviews suggested message
git commit --amend -m "message"
Squash Workflow
- Get last N commits:
git log -n N --format="%H|%s|%an|%ad" - Get combined diff:
git diff HEAD~N..HEAD - Send to LLM with prompt from
references/prompts.mdsection "Squash Commits" - User reviews suggested message
git reset --soft HEAD~N && git commit -m "message"
Interactive Commit Workflow
- Show
git statusto user - Ask user to confirm which files to include
- Get diff for confirmed files
- Send to LLM with prompt from
references/prompts.mdsection "New Commit" - User reviews suggested message
git add <files> && git commit -m "message"
LLM Prompts
See references/prompts.md for:
- New commit message generation
- Amend commit message generation
- Squash commit message generation
Each prompt includes:
- Git diff input format
- Output format requirements
- Style guidelines (conventional commits, etc.)
FAQ
What does the smart-commit skill do?
AI-powered git commit message generation. Uses LLM to summarize changes and create meaningful commit messages. Triggers when user wants to commit changes, amend/squash commits, or needs LLM to summarize changes for commit messages. Chinese triggers: 提交, 提交代码, 提交更改, 提交修改, 要提交, commit, 提交信息, git 提交, 生成提交信息.
How do I install smart-commit?
Run npx skills add https://github.com/jackjin1997/clawforge --skill smart-commit in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/smart-commit/ (personal) or .claude/skills/smart-commit/ (project).
Which AI agents can use smart-commit?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is smart-commit safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains smart-commit?
It is published by jackjin1997 in jackjin1997/clawforge. It has 53 recorded installs.
More from jackjin1997/clawforge
language-learning
jackjin1997/clawforge
AI language tutor for learning ANY language through conversation, vocab drills, grammar lessons, flashcards, and immersive practice. Use when the user wants to: learn a new language, practice vocabulary, study grammar, do flashcard drills, translate phrases, practice conversation, prepare for travel, learn slang/idioms, or improve pronunciation. Supports ALL languages including Spanish, French, German, Japanese, Chinese (Mandarin/Cantonese), Korean, Arabic, Hindi, Bengali/Bangla, Portuguese, Russian, Italian, Turkish, Vietnamese, Thai, Swahili, Hebrew, Polish, Dutch, Greek, and 100+ more.
self-evolving skill
jackjin1997/clawforge
Open the skill to read its SKILL.md instructions.
clean-code-zh
jackjin1997/clawforge
Open the skill to read its SKILL.md instructions.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.