smart-commit

Analyzes git diffs and creates commits with Conventional Commits format messages.

1|Updated Jul 2, 2026
One-click install
npx skills add https://github.com/tarabakz25/my-skills --skill smart-commit-tarabakz25
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: smart-commit
Source: https://github.com/tarabakz25/my-skills/tree/main/smart-commit
Command: npx skills add https://github.com/tarabakz25/my-skills --skill smart-commit-tarabakz25

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing consistent, meaningful commit messages is tedious and often skipped, leading to messy git histories. This Skill automates the entire commit workflow by analyzing your changes and generating properly formatted Conventional Commits messages. ## Core Features & Use Cases - Automatic Diff Analysis: Inspects staged and unstaged changes to understand what was modified before writing the message. - Conventional Commits Formatting: Generates messages following the <type>(<scope>): <subject> convention with types like feat, fix, docs, refactor, and test. - Fully Automated Workflow: Stages all changes, commits, and confirms the result without requiring manual confirmation. - Use Case: After finishing a bug fix across several files, simply ask to commit your changes and receive a clean message like fix(api): resolve null pointer in request handler with no manual staging or message drafting. ## Quick Start Ask the agent to analyze my current changes and commit them with a smart commit message.

Frequently Asked Questions about smart-commit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate commit messages from git changes?▼

Invoke the smart-commit skill after making changes. It runs git diff to analyze modifications, stages everything with git add -A, and creates a commit using a Conventional Commits message derived from the actual changes.

What commit message format does smart-commit use?▼

It uses the Conventional Commits format: type(scope): subject. Supported types include feat, fix, docs, style, refactor, test, chore, perf, ci, build, and revert, with concise imperative subjects under 72 characters.

Does smart-commit work if I have no staged changes?▼

Yes. The skill automatically stages all changes with git add -A before committing, so both staged and unstaged modifications are included. If the working directory is completely clean, it informs you and exits.

What happens if I run smart-commit outside a git repository?▼

The skill first checks repository status with git status. If the directory is not a git repository, it informs you of the issue and suggests running git init instead of attempting a commit.

Does smart-commit add AI attribution to commit messages?▼

No. The skill explicitly avoids adding any attribution footers such as Generated with Claude Code or Co-Authored-By lines. Messages contain only the clean Conventional Commits format content.