Git Master Agent

Enforce strict Git workflows with GIT_MASTER=1 on all git invocations.

Updated Oct 28, 2025
One-click install
npx skills add https://github.com/SnowboardTechie/dotfiles --skill git-master-agent-snowboardtechie
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Git Master Agent
Source: https://github.com/SnowboardTechie/dotfiles/tree/main/dot-config/opencode/skills/git-master
Command: npx skills add https://github.com/SnowboardTechie/dotfiles --skill git-master-agent-snowboardtechie

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enforces a strict Git workflow by requiring every git invocation to be prefixed with GIT_MASTER=1 and coordinates mode-driven actions to safeguard commits and history.

Core Features & Use Cases

  • Enforces disciplined commits with explicit phase-driven workflows (commit, rebase, history search) and mandatory environment prefix.
  • Provides mode detection and safety checks for branch state, push status, and conflict handling to reduce destructive actions.
  • Supports atomic planning for commits, guidance on splitting changes, and safeguards to keep history clean and auditable.

Quick Start

Enable the Git Master Agent by prefixing all git commands with GIT_MASTER=1 and follow the guided prompts to perform atomic commits, safe rebases, and history checks.

Frequently Asked Questions about Git Master Agent

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

FAQPage Schema
How do I enforce atomic commits and prevent destructive git history changes?

To enforce atomic commits and prevent destructive history changes, you must prefix all git invocations with GIT_MASTER=1. This activates custom hooks and safety guardrails that coordinate mode-driven actions for branch state and conflict handling.

What is the safest way to rebase commits without losing history?

Safe rebases require explicit governance checks before executing history operations. By enabling strict mode detection, the workflow validates push status and branch state to prevent destructive rebase actions and maintain an auditable commit history.

How do I split large changes into atomic commits for a clean git history?

Splitting changes into atomic commits requires guided planning prompts during the staging phase. The workflow provides mode detection and safety checks to help divide changes logically, ensuring each commit remains clean and auditable.

Do I need a special environment configuration to use git hooks for commit safety?

Yes, using git hooks for commit safety requires setting the GIT_MASTER=1 environment variable as a mandatory prefix. This explicit configuration enables the internal governance systems required to apply phase-driven workflow checks.

Why does my git workflow need mode detection for history searches?

Git workflows need mode detection for history searches to differentiate between read-only queries and destructive operations. This governance mechanism applies targeted safety guardrails based on the detected mode, preventing accidental history corruption.