commit-message-write

Generate git commit messages from code changes and pre-fill them for git commit and lazygit.

Updated Dec 24, 2024
One-click install
npx skills add https://github.com/BSteffaniak/nix-config --skill commit-message-write
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-message-write
Source: https://github.com/BSteffaniak/nix-config/tree/main/configs/opencode/skills/commit-message-write
Command: npx skills add https://github.com/BSteffaniak/nix-config --skill commit-message-write

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the generation of Git commit messages based on your code changes, ensuring consistency and saving you time when committing.

Core Features & Use Cases

  • Automated Message Generation: Creates a commit message summarizing your staged or unstaged changes.
  • Pre-fills Git Commit: Automatically populates the message for git commit via the prepare-commit-msg hook.
  • Pre-fills LazyGit: Also pre-fills the commit message panel in the popular terminal UI, lazygit.
  • Use Case: After making several changes to a feature branch, you can quickly generate a descriptive commit message that is ready to be used by git commit or lazygit, without needing to manually type it out.

Quick Start

Use the commit-message-write skill to generate and pre-fill your next git commit message.

Frequently Asked Questions about commit-message-write

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

FAQPage Schema
How do I automatically generate a git commit message from staged code changes?

Yes, you can pre-fill the commit message panel in lazygit. The Skill writes the generated message to the lazygit pending commit file, so the text appears automatically when you open the commit dialog.

Does the prepare-commit-msg hook support pre-filling generated messages?

Yes, this Skill works with both git commit and lazygit simultaneously. It writes the generated commit message to both the prepare-commit-msg file and the lazygit pending commit file, letting you use whichever interface you prefer.

What is the best way to enforce consistent git commit message rules automatically?

This Skill requires no external dependencies to generate and pre-fill git commit messages. It operates independently within your development workflow, relying only on standard git and lazygit file mechanisms to populate the text.

Why does my automated commit message generator need to write to the git directory?

This Skill generates commit messages for both staged and unstaged changes. It evaluates your current code edits and creates a descriptive summary, pre-filling the message regardless of whether the files are staged.