branching-strategy-and-conventions

Configure Git branching strategies, Conventional Commits, and merge rules.

1|1|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/mcj-coder/development-skills --skill branching-strategy-and-conventions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: branching-strategy-and-conventions
Source: https://github.com/mcj-coder/development-skills/tree/main/skills/branching-strategy-and-conventions
Command: npx skills add https://github.com/mcj-coder/development-skills --skill branching-strategy-and-conventions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill establishes clear, consistent, and automated Git branching strategies, commit message conventions, and merge rules, preventing confusion and enabling better automation.

Core Features & Use Cases

  • Branching Models: Implements Trunk-Based, GitHub Flow, or Git Flow.
  • Commit Conventions: Enforces Conventional Commits for clear, machine-readable messages.
  • Merge Strategy: Defines rules for merging (e.g., squash, fast-forward) to maintain a clean history.
  • Use Case: When starting a new project, this Skill ensures a robust branching strategy and commit discipline from day one, making future collaboration and automated changelog generation seamless.

Quick Start

Apply the branching-strategy-and-conventions skill to set up a new repository with Trunk-Based Development.

Frequently Asked Questions about branching-strategy-and-conventions

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

FAQPage Schema
How do I enforce conventional commits and a Git branching strategy for a new repository?

You can enforce conventional commits and a Git branching strategy by configuring commitlint, pre-commit hooks, and branch protection rules to standardize workflows and enable automated release management from day one.

What is the best way to automate changelog generation using Git commit messages?

Automating changelog generation requires enforcing Conventional Commits, which provides machine-readable messages that align with Semantic Versioning to seamlessly track changes and automate releases.

Does this Git workflow configuration support Trunk-Based Development, GitHub Flow, and Git Flow?

Yes, this Git workflow configuration supports Trunk-Based Development, GitHub Flow, and Git Flow, allowing you to select and implement the branching model that best fits your project's collaboration scale.

How do I define merge rules to maintain a clean Git history with squash and fast-forward?

Maintaining a clean Git history requires defining explicit merge rules for squash and fast-forward merges, preventing confusion and ensuring a consistent, readable project log during automated release management.

Why do I need commitlint and pre-commit hooks for Semantic Versioning?

Commitlint and pre-commit hooks are needed for Semantic Versioning to validate commit messages locally before integration, ensuring strict adherence to Conventional Commits and preventing broken automated releases.