git-master

Enforce atomic commits and guide safe Git rebase workflows with blame and bisect searches.

Updated Jun 15, 2025
One-click install
npx skills add https://github.com/patrickhaahr/dotfiles --skill git-master-patrickhaahr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-master
Source: https://github.com/patrickhaahr/dotfiles/tree/main/opencode/.config/opencode/skills/git-master
Command: npx skills add https://github.com/patrickhaahr/dotfiles --skill git-master-patrickhaahr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces clean, traceable Git workflows by enabling atomic commits, safe history rewrites, and structured command guidance.

Core Features & Use Cases

  • Atomic commits with clear messages to represent each logical change
  • Rebase and squash strategies with safety checks to avoid breaking history
  • History search tools: blame, bisect, and log queries for quick bug tracing
  • Use Case: On a feature branch, split a large feature into logical commits to facilitate review and revertability.

Quick Start

Ask: 'git-master, prepare atomic commits for my current feature and guide me through a safe rebase.'

Frequently Asked Questions about git-master

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

FAQPage Schema
How do I split large changes into atomic commits for easier code review?

Atomic commits represent each logical change individually to facilitate review and revertability. You can segment staged changes into multiple focused commits with clear messages, ensuring your feature branch history remains clean and traceable.

What's the best way to rebase feature branches without breaking commit history?

Safe history edits require interactive rebasing with squash strategies and safety checks to avoid breaking history. You can rebase feature branches while preserving branch integrity, ensuring commits are cleanly ordered and logically separated before merging.

How does git bisect work for tracing when a bug was introduced?

Git bisect performs a rapid history search by binary searching your commit log to pinpoint the exact commit that introduced a regression. It systematically checks out intermediate commits, allowing you to trace bugs quickly across complex project histories.

When do I need to use git blame for debugging?

Git blame is needed when you want to trace specific lines of code back to their originating commit and author. It provides structured log queries that help you understand the context and reasoning behind individual code changes during debugging scenarios.

Do I need standard git tooling to perform interactive rebasing and history searches?

Yes, standard git tooling is required to perform interactive rebasing, commit segmentation, and history searches. The workflow relies on built-in git commands to enforce clean, traceable repository maintenance across feature development and debugging contexts.

Why should I squash commits on a feature branch before merging?

Squashing commits during an interactive rebase consolidates fragmented history into a single logical change. This approach enforces clean history by ensuring your feature branch represents one cohesive unit of work, which simplifies peer review and potential reverts.