MCPInstall

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
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads smart-commit automatically when relevant.

  3. 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

  1. Amend Last Commit - Summarize staged/unstaged changes and amend the last commit message
  2. Squash Commits - Summarize last N commits and create a consolidated commit
  3. 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

  1. Get changes: git diff --cached (staged) or git diff HEAD~1 (all changes since last commit)
  2. Send to LLM with prompt from references/prompts.md section "Amend Commit"
  3. User reviews suggested message
  4. git commit --amend -m "message"

Squash Workflow

  1. Get last N commits: git log -n N --format="%H|%s|%an|%ad"
  2. Get combined diff: git diff HEAD~N..HEAD
  3. Send to LLM with prompt from references/prompts.md section "Squash Commits"
  4. User reviews suggested message
  5. git reset --soft HEAD~N && git commit -m "message"

Interactive Commit Workflow

  1. Show git status to user
  2. Ask user to confirm which files to include
  3. Get diff for confirmed files
  4. Send to LLM with prompt from references/prompts.md section "New Commit"
  5. User reviews suggested message
  6. 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

View all →

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.

study-habits

jackjin1997/clawforge

Open the skill to read its SKILL.md instructions.

363 installs

self-evolving skill

jackjin1997/clawforge

Open the skill to read its SKILL.md instructions.

315 installs

resume-optimizer

jackjin1997/clawforge

Open the skill to read its SKILL.md instructions.

80 installs

getajob

jackjin1997/clawforge

Open the skill to read its SKILL.md instructions.

71 installs

clean-code-zh

jackjin1997/clawforge

Open the skill to read its SKILL.md instructions.

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

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.