smart-commit

Generate conventional commit messages from staged changes with type, scope, and issue references.

5|1|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/ANcpLua/ancplua-claude-plugins --skill smart-commit-ancplua
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-commit
Source: https://github.com/ANcpLua/ancplua-claude-plugins/tree/main/plugins/smart-commit/skills/smart-commit
Command: npx skills add https://github.com/ANcpLua/ancplua-claude-plugins --skill smart-commit-ancplua

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill turns staged changes into intelligent, conventional-commit messages, ensuring consistency and traceability.

Core Features & Use Cases

  • Type & scope inference: Determine feat/fix, module, and affected components.
  • Body & footer generation: Add rationale and issue references.
  • Examples: Provide a sample commit like "feat(api): add OAuth2 support; closes #123".

Quick Start

Stage changes and run the smart-commit command to generate a conventional 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 generate conventional commit messages automatically?

Conventional commit messages are standardized formats that include a type (feat, fix, docs, etc.), optional scope, and subject. This Skill generates them automatically from staged changes by analyzing your modifications, inferring the commit type and affected component, then formatting the message with proper structure, imperative mood, and character limits.

What is the conventional commits format and why should I use it?

Conventional commits is a specification that structures commit messages with type, scope, and description to enable automated changelog generation, semantic versioning, and clearer project history. Using this format ensures consistency across your team and makes your Git history machine-readable and traceable.

How do I ensure my commit messages follow semantic conventions?

Semantic commit messages map your changes to specific types (feat for features, fix for bugs, refactor for code restructuring, etc.) and extract the affected scope or module. This Skill enforces these rules automatically, mapping staged changes to the correct type, limiting subject lines to 50 characters, wrapping bodies at 72 characters, and appending footers for issue references.

Can I automate commit messages with issue tracking integration?

Yes. This Skill generates conventional commit messages that include footer sections for issue references and breaking changes, allowing you to link commits to issue trackers. When you stage changes, the Skill automatically formats messages with closing keywords and issue numbers in the footer.

What do I need to do before using smart commit?

Stage your changes in Git using `git add` to prepare the modifications you want to commit. The Skill then analyzes those staged changes and generates a conventional commit message with the appropriate type, scope, subject, body, and footer based on the differences.

Does conventional commit formatting work with all Git workflows?

Conventional commits are Git-agnostic and work with any workflow—feature branches, trunk-based development, or trunk-based development. The Skill generates messages that conform to the standard regardless of your branching strategy; adoption depends on your team enforcing the format during code review.