Git提交规范

Enforce Git commit prefixes by directory for consistent messages.

9.2k|2.1k|Updated Oct 27, 2018
One-click install
npx skills add https://github.com/crmeb/CRMEB --skill git-crmeb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Git提交规范
Source: https://github.com/crmeb/CRMEB/tree/main/.trae/skills/git-commit
Command: npx skills add https://github.com/crmeb/CRMEB --skill git-crmeb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This policy standardizes Git commit messages across a project by enforcing directory-based prefixes on every commit, improving traceability, reviews, and changelog generation.

Core Features & Use Cases

  • Enforces consistent commit prefixes that reflect the impacted area (e.g., crmeb/, docker-compose/, dev-docs/, template/).
  • Improves history readability, code reviews, and release notes by providing predictable commit semantics.
  • Use Case: When contributing changes, prefix the commit with the relevant directory tag to clearly indicate scope.

Quick Start

Prefix every commit message with the appropriate directory tag to enforce consistency.

Frequently Asked Questions about Git提交规范

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

FAQPage Schema
How do I standardize Git commit messages with directory-based prefixes?

To standardize Git commit messages, you enforce directory-based prefixes on every commit, ensuring messages reflect impacted areas like crmeb/ or docker-compose/ to improve history readability and code reviews.

Why use directory-based prefixes for Git commit conventions in a multi-directory project?

Directory-based prefixes for Git commit conventions provide predictable commit semantics, improving traceability, code reviews, and changelog generation across multi-directory project workflows.

What is the correct Git commit message structure for changes in the crmeb or template directories?

The correct Git commit message structure requires prefixing the message with the relevant directory tag, such as crmeb/ or template/, to clearly indicate scope and codify required formats for team collaboration.

Can I apply this Git commit convention to dev-docs and docker-compose workflows?

Yes, you can apply this Git commit convention to dev-docs and docker-compose workflows, as it specifically targets these directories to enforce consistent prefix formats and guide teams during commits.

What is the best way to enforce consistent Git commit prefixes for team collaboration?

The best way to enforce consistent Git commit prefixes is to codify required prefix formats and example patterns, guiding team members to prefix every commit with the appropriate directory tag for consistency.