commit-message-style

Standardize git commit messages to PostgreSQL house style and trailer requirements.

Updated Jun 1, 2026
One-click install
npx skills add https://github.com/matejformanek/postgres-claude --skill commit-message-style-matejformanek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-message-style
Source: https://github.com/matejformanek/postgres-claude/tree/main/.claude/skills/commit-message-style
Command: npx skills add https://github.com/matejformanek/postgres-claude --skill commit-message-style-matejformanek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill ensures that your commit messages adhere to the strict, non-conventional PostgreSQL house style, preventing rejection by maintainers due to formatting errors.

Core Features & Use Cases

  • Style Enforcement: Automatically validates subject line length, imperative mood, and paragraph wrapping.
  • Trailer Management: Correctly formats mandatory trailer blocks like Author, Reviewed-by, and Discussion links.
  • Use Case: When preparing a patch for the PostgreSQL master branch, use this skill to verify your commit message matches the project's specific requirements for backpatching and attribution.

Quick Start

Ask the assistant to review your current commit message in the development branch to ensure it follows the PostgreSQL house style guidelines.

Frequently Asked Questions about commit-message-style

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

FAQPage Schema
How do I format git commit messages for PostgreSQL patch submissions?

To format git commit messages for PostgreSQL patch submissions, you must use the project's specific house style, including imperative subject lines, 76-character line wrapping, and strict trailer block ordering.

Why does my PostgreSQL patch get rejected due to commit message style?

Your PostgreSQL patch may face rejection due to commit message style if it lacks strict adherence to imperative mood subject lines, 76-character paragraph wrapping, or mandatory trailer blocks like Author and Reviewed-by.

Does PostgreSQL require conventional commit formatting for backpatching branches?

No, PostgreSQL does not use conventional commit formatting; it enforces a strict, non-conventional house style for both the master branch and backpatching branches, requiring specific paragraph wrapping and trailer management.

How to validate subject line length and imperative mood for git commits?

To validate subject line length and imperative mood for git commits, apply style enforcement rules that check against PostgreSQL's specific formatting standards to prevent maintainer rejection due to formatting errors.