git-commit-message

Generate Werf-style commit messages from staged git changes.

4.7k|237|Updated Jan 25, 2016
One-click install
npx skills add https://github.com/werf/werf --skill git-commit-message-werf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit-message
Source: https://github.com/werf/werf/tree/main/.agents/skills/git-commit-message
Command: npx skills add https://github.com/werf/werf --skill git-commit-message-werf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates consistent Werf-style git commit messages from staged changes to standardize history and improve code reviews.

Core Features & Use Cases

  • Automatic generation of commit messages based on staged changes and Werf conventions.
  • Analyzes git diff --cached to determine type and scope.
  • Enforces Werf-style formatting: header length, subject rules, and body guidance.
  • Useful for teams to maintain a uniform commit history.

Quick Start

Stage your changes and run the tool to generate a Werf-conformant commit message.

Frequently Asked Questions about git-commit-message

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

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

To generate a git commit message automatically, the Skill analyzes your `git diff --cached` output to determine the appropriate type and scope, then produces a single conformant header and body based on the detected staged changes.

What are Werf commit message conventions for formatting git history?

Werf commit message conventions require a specific format encompassing a header with a type and scope, strict header length limits, and subject and body rules as outlined in the project's CONTRIBUTING.md#conventions file.

How do I enforce consistent git commit conventions across my development team?

You can enforce consistent git commit conventions by using this Skill to automatically generate standardized Werf-style commit messages from staged changes, which standardizes project history and improves the code review process.

Does this commit message generator work without any external dependencies?

Yes, the commit message generator works without external dependencies, requiring only your staged git changes to analyze the diff and output a properly formatted Werf-style commit message header and body.

What is the best way to write a Werf-style commit subject and body?

The best way to write a Werf-style commit subject and body is to analyze the staged diff to determine the correct type and scope, then apply the length limits and formatting guidelines defined in CONTRIBUTING.md#conventions.

Why does my generated commit message not match the expected Werf format?

A generated commit message may not match the expected Werf format if the staged changes are ambiguous, making it difficult to determine the correct type and scope required by the Werf conventions and subject rules.