git-commit

Generate atomic Git commits with emoji prefixes and strict subject lines.

60|2|Updated Apr 16, 2015
One-click install
npx skills add https://github.com/davidgasquez/dotfiles --skill git-commit-davidgasquez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit
Source: https://github.com/davidgasquez/dotfiles/tree/main/agents/skills/git-commit
Command: npx skills add https://github.com/davidgasquez/dotfiles --skill git-commit-davidgasquez

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you create clear, concise, and well-formatted Git commits, improving the readability and maintainability of your project's history.

Core Features & Use Cases

  • Atomic Commits: Ensures each commit addresses a single logical change.
  • Emoji Prefixes: Adds descriptive emojis to commit subjects for quick visual scanning.
  • Style Enforcement: Guides users to follow best practices for commit messages (imperative mood, subject line length, no trailing periods).
  • Use Case: When you've completed a bug fix, use this Skill to create a commit like 🐛 Fix critical login issue. If you've added a new feature, it would be ✨ Implement user profile editing.

Quick Start

Use the git-commit skill to create a new commit with the message "Add README.md".

Frequently Asked Questions about git-commit

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

FAQPage Schema
What is an atomic git commit and why should I use them?

An atomic git commit represents a single, well-defined logical change in your repository. Using atomic commits improves repository clarity, making project history easier to read and review.

How do I format git commit messages with emoji prefixes?

To format git commit messages with emojis, you add descriptive emoji prefixes to the subject line. This allows for quick visual scanning of repository changes, like using a bug emoji for fixes.

What is the best way to write a git commit subject line?

The best way to write a git commit subject line is to use imperative mood, adhere to character limits, and avoid trailing periods. This ensures concise and clear code management.

How do I create a git commit for a single logical change?

You create a git commit for a single logical change by ensuring each commit addresses only one issue. This practice creates clear, maintainable project history and facilitates easier code reviews.

Can I enforce strict style guidelines for my git commit messages?

Yes, you can enforce strict style guidelines for git commit messages. This includes requiring imperative mood, specific character limits, no trailing periods, and adding descriptive emoji prefixes.

Why use imperative mood for git commit subject lines?

Using imperative mood for git commit subject lines matches Git's own built-in commit message conventions. It ensures each commit reads as a direct command, improving repository clarity and reviewability.