git-master

Enforce atomic and well-scoped Git commits with safety checks for history rewriting.

67.6k|5.5k|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/code-yeongyu/oh-my-opencode --skill git-master-code-yeongyu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-master
Source: https://github.com/code-yeongyu/oh-my-opencode/tree/main/src/features/builtin-skills/git-master
Command: npx skills add https://github.com/code-yeongyu/oh-my-opencode --skill git-master-code-yeongyu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces disciplined Git workflows to improve traceability, maintainability, and collaboration by guiding atomic commits, proper history rewriting, and clear change demarcation.

Core Features & Use Cases

  • Atomic commits: Split changes into focused commits that each implement a single intent.
  • History hygiene: Rebase, squash, and reorder commits to produce a clean, understandable history.
  • Code review readiness: Ensure test files accompany implementations and group changes by responsibility.

Quick Start

Initialize a feature branch, make changes, run the planning steps to decide commit groups, and then create commits in the recommended order:

  • Stage related changes next to their tests when applicable.
  • Write concise, language-consistent commit messages following the detected style.
  • Push with a clear history and prepare a PR for review.

Frequently Asked Questions about git-master

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

FAQPage Schema
How do I split changes into atomic commits across multiple files in git?

To create atomic commits in git, you stage related changes alongside their tests and group modifications by responsibility, ensuring each commit implements a single intent. This Skill automates that splitting process by planning commit groups before execution.

What is the best way to squash and rebase commits for clean git history?

The best way to achieve clean git history is applying structured rebasing and squashing operations with safety checks for rewriting history. This Skill encodes commit strategies that reorder and squash commits to produce understandable, demarcated history.

How does git bisect work with atomic commits and well-scoped changes?

Git bisect works effectively with atomic commits because each commit represents a single focused intent, making it easier to identify which change introduced a bug. This Skill enforces those well-scoped commits to improve traceability and blame operations.

How do I prepare a feature branch for code review with proper commit discipline?

To prepare a feature branch for code review, you ensure test files accompany implementations and write concise, language-consistent commit messages following detected style. This Skill guides staging related changes and grouping them by responsibility for review readiness.

When should I not rewrite git history with rebasing or squashing?

You should avoid rewriting git history with rebasing or squashing when safety checks indicate potential conflicts or when commits are not properly planned and justified. This Skill enforces structured commit strategies with safety checks to prevent problematic history rewrites.