git-workflow-enforcer

Enforce Git commit processes with Conventional Commits and branch safety checks.

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/Marcus-Mok-GH/Claude-code-conductor --skill git-workflow-enforcer-marcus-mok-gh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-workflow-enforcer
Source: https://github.com/Marcus-Mok-GH/Claude-code-conductor/tree/main/.claude/skills/git-workflow-enforcer
Command: npx skills add https://github.com/Marcus-Mok-GH/Claude-code-conductor --skill git-workflow-enforcer-marcus-mok-gh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the enforcement of Git commits after every phase and task, ensuring rollback safety and a clean code history.

Core Features & Use Cases

  • Automatic Commit Generation: Automatically generates and commits code changes based on Conventional Commits format.
  • Branch Safety Verification: Checks for protected branches and enforces clean commits.
  • Merge Conflict Detection: Identifies and blocks commits with merge conflicts.
  • Use Case: Ideal for teams using the "Spec -> Plan -> Implement" cycle, ensuring every phase and task results in a committed change, reducing the risk of lost work.

Quick Start

Run the skill with the command /git-workflow-enforcer enforce in Claude Code to enforce commits on the current branch.

Frequently Asked Questions about git-workflow-enforcer

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

FAQPage Schema
How do I automate git commits after every development phase?

To automate git commits after every phase, you can use a workflow enforcement tool that triggers automatic commit generation based on the Conventional Commits format. This ensures rollback safety and a clean code history throughout the spec-plan-implement cycle.

What is Conventional Commits enforcement in version control?

Conventional Commits enforcement in version control automatically validates commit messages against strict formatting standards. It ensures branch safety by checking for protected branches and blocking commits with merge conflicts before they are applied.

Do I need git installed to enforce commit workflows locally?

Yes, you need git installed to enforce commit workflows locally. The enforcement mechanism relies on git for automatic commits, branch safety verification, and merge conflict detection on your current working branch.

How do I prevent commits on protected branches during development?

To prevent commits on protected branches, implement branch safety verification checks within your git workflow. This feature identifies protected branches and enforces clean commits to prevent unauthorized changes.

What is the best way to detect merge conflicts before committing changes?

The best way to detect merge conflicts before committing is to use an automated Git workflow enforcement process that identifies and blocks commits containing unresolved merge conflicts. This prevents broken states from entering your clean history.

Why does workflow enforcement block my commit messages?

Workflow enforcement blocks your commit messages when they fail validation against the Conventional Commits standards. This strict validation guarantees a clean code history and ensures rollback safety by rejecting improperly formatted messages.