git-commits

Generate structured Git commit messages following conventional commits and imperative mood rules.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/nilpath/nilpath-marketplace --skill git-commits-nilpath
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commits
Source: https://github.com/nilpath/nilpath-marketplace/tree/main/plugins/claude-code-tools/skills/git-commits
Command: npx skills add https://github.com/nilpath/nilpath-marketplace --skill git-commits-nilpath

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides structured guidance and examples to improve the clarity and consistency of Git commit messages, reducing ambiguity and code review friction.

Core Features & Use Cases

  • Enforces imperative mood and concise summaries
  • Demonstrates conventional commits formats and message templates
  • Provides best practices for body length, structure, and testing before commit

Quick Start

Draft a sample commit message that follows the imperative mood, a one-line summary under 50 characters, and a detailed body wrapped to 72 characters.

Frequently Asked Questions about git-commits

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

FAQPage Schema
How do I write conventional commit messages for version control?

Conventional commit messages use structured formats with type prefixes like feat or fix, imperative mood summaries under 50 characters, and detailed bodies wrapped at 72 characters to clarify code changes. Templates and examples enforce this consistency across software projects.

What is the best way to format a git commit body?

The best way to format a git commit body is to wrap text at 72 characters, structure details logically, and document changes thoroughly. Following these best practices reduces ambiguity and friction during code reviews.

Why should I use imperative mood in git commits?

Imperative mood in git commits matches how git generates default messages and keeps summaries concise. This Skill enforces imperative mood for one-line summaries under 50 characters, ensuring clarity and consistency across version control history.

Can I enforce pre-commit testing best practices with this approach?

Yes, this approach includes test-before-commit guidance as part of its best practices. It provides structured rules for verifying changes and documenting tests thoroughly within commit messages before finalizing version control updates.

How do I document common git commit scenarios using templates?

Use conventional commit templates to document common scenarios by applying structured formats with type prefixes and detailed bodies. The Skill provides examples that enforce proper message formatting, length rules, and thorough documentation of changes for each specific case.

Does this commit formatting approach work for any software project?

Yes, this approach applies across software projects to enforce conventional commits, proper message formatting, and thorough documentation. It provides universal rules for message length, imperative mood, and body wrapping regardless of the specific repository.