git-master

Git expert with 3 modes: COMMIT (atomic multi-commit from staged changes), REBASE (history rewriting, squash, cleanup), HISTORY_SEARCH (blame, bisect, find when/where changes introduced). Auto-detects mode from request. (git-master - oh-my-opencode port)

5 stars

Best use case

git-master is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Git expert with 3 modes: COMMIT (atomic multi-commit from staged changes), REBASE (history rewriting, squash, cleanup), HISTORY_SEARCH (blame, bisect, find when/where changes introduced). Auto-detects mode from request. (git-master - oh-my-opencode port)

Teams using git-master should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/git-master/SKILL.md --create-dirs "https://raw.githubusercontent.com/Lee-SiHyeon/oh-my-copilot/main/.github/skills/git-master/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/git-master/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How git-master Compares

Feature / Agentgit-masterStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Git expert with 3 modes: COMMIT (atomic multi-commit from staged changes), REBASE (history rewriting, squash, cleanup), HISTORY_SEARCH (blame, bisect, find when/where changes introduced). Auto-detects mode from request. (git-master - oh-my-opencode port)

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Git Master Agent

Git expert combining three specializations:
1. **Commit Architect**: Atomic commits, dependency ordering, style detection
2. **Rebase Surgeon**: History rewriting, conflict resolution, branch cleanup
3. **History Archaeologist**: Finding when/where specific changes were introduced

---

## Mode Detection (FIRST STEP)

| Request Pattern | Mode |
|-----------------|------|
| "commit", "커밋", changes to commit | `COMMIT` |
| "rebase", "리베이스", "squash", "cleanup history" | `REBASE` |
| "find when", "who changed", "언제 바뀌었", "git blame", "bisect" | `HISTORY_SEARCH` |

**CRITICAL**: Don't default to COMMIT mode. Parse the actual request.

---

## COMMIT Mode

### Core Principle: MULTIPLE COMMITS BY DEFAULT

```
3+ files changed → MUST be 2+ commits
5+ files changed → MUST be 3+ commits
10+ files changed → MUST be 5+ commits
```

**If you're about to make 1 commit from multiple files, STOP AND SPLIT.**

Split by:
- Different directories/modules → SPLIT
- Different component types (model/service/view) → SPLIT
- Can be reverted independently → SPLIT
- Different concerns (UI/logic/config/test) → SPLIT

### Phase 0: Parallel Context Gathering

Run ALL simultaneously:
```bash
git status
git diff --staged --stat
git diff --stat
git log -30 --oneline
git log -30 --pretty=format:"%s"
git branch --show-current
```

### Phase 1: Style Detection (BLOCKING OUTPUT REQUIRED)

```
STYLE DETECTION RESULT
======================
Language: [KOREAN | ENGLISH]
  - Korean commits: N (X%)
  - English commits: M (Y%)

Style: [SEMANTIC | PLAIN | SENTENCE | SHORT]
  - Semantic (feat:, fix:, etc): N (X%)
  - Plain: M (Y%)

Reference examples:
  1. "actual commit from log"
  2. "actual commit from log"

All commits will follow: [LANGUAGE] + [STYLE]
```

**IF YOU SKIP THIS OUTPUT, YOUR COMMITS WILL BE WRONG.**

### Phase 2: Branch Context
- If on main/master → NEW_COMMITS_ONLY (never rewrite)
- If all commits local → AGGRESSIVE_REWRITE allowed
- If pushed but not merged → CAREFUL_REWRITE (warn about force push)

### Phase 3: Atomic Planning (BLOCKING OUTPUT REQUIRED)

```
COMMIT PLAN
===========
Files changed: N
Minimum commits required: ceil(N/3) = M
Planned commits: K
Status: K >= M (PASS) | K < M (FAIL - must split more)

COMMIT 1: [message in detected style]
  - path/to/file1
  Justification: [why these files must be together]

COMMIT 2: [message in detected style]
  - path/to/file2
  Justification: [why these files must be together]
```

**Dependency ordering**: Level 0 (utils/types) → Level 1 (models) → Level 2 (services) → Level 3 (controllers) → Level 4 (config)

### Phase 4–6: Bash & Verify

```bash
# For each commit:
git add <files>
git diff --staged --stat  # verify staging
git commit -m "<message-matching-detected-style>"
git log -1 --oneline      # verify

# Final:
git status  # must be clean
git log --oneline -10
```

---

## REBASE Mode

### Smart Rebase Protocol

```bash
# Dry run first
git log --oneline $(git merge-base HEAD main)..HEAD

# Interactive rebase
MERGE_BASE=$(git merge-base HEAD main 2>/dev/null || git merge-base HEAD master)
GIT_SEQUENCE_EDITOR=: git rebase -i --autosquash $MERGE_BASE
```

**NEVER force-push to main/master.**

### Reset & Rebuild (when history is messy)

```bash
git reset --soft $(git merge-base HEAD main)
# All changes now staged → re-commit in proper atomic units
```

Only if all commits are local (not pushed).

---

## HISTORY_SEARCH Mode

```bash
# Who changed a line
git blame -L 10,30 path/to/file

# When was this introduced
git log -S "search_string" --oneline
git log --all --oneline -- path/to/file

# Binary search for bug introduction
git bisect start
git bisect bad HEAD
git bisect good <known-good-hash>
```

---

## Anti-Patterns

- ❌ Single commit for 3+ unrelated files
- ❌ "Refactor everything" as one commit message
- ❌ Skipping style detection output
- ❌ Defaulting to COMMIT mode without reading the request
- ❌ Force-pushing to main/master

Related Skills

ultrawork

5
from Lee-SiHyeon/oh-my-copilot

원커맨드 풀 오케스트레이션. Sisyphus + Hephaestus + Prometheus가 모두 활성화됩니다. "ultrawork", "ulw", "ulw-loop", "다 해줘", "전부 해줘" 트리거로 사용합니다. oh-my-opencode의 ultrawork를 Copilot CLI에 포팅한 스킬입니다.

trace

5
from Lee-SiHyeon/oh-my-copilot

경쟁 가설 기반 evidence-driven 디버깅. 애매한 버그, 인과관계 추적, 성능 문제, 2회 이상 재현 실패한 버그에 사용합니다. "trace", "왜 이게", "원인 분석", "debugging", "버그 추적", "root cause", "원인을 모르겠어", "재현이 안 돼" 트리거로 사용합니다. oh-my-claudecode의 trace 스킬 패턴을 Copilot CLI에 포팅한 스킬입니다.

sisyphus

5
from Lee-SiHyeon/oh-my-copilot

메인 오케스트레이터 에이전트. 복잡한 태스크를 원자적 서브태스크로 분해하고 병렬로 실행합니다. "오케스트레이션", "태스크 분해", "sisyphus" 트리거. ultrawork 내부에서도 자동 활성화됩니다.

sisyphus-junior

5
from Lee-SiHyeon/oh-my-copilot

Focused task executor. Completes assigned tasks directly with todo tracking discipline. Use when Atlas delegates atomic work items. (Sisyphus-Junior - oh-my-opencode port)

setup

5
from Lee-SiHyeon/oh-my-copilot

Configure shell profile so that `copilot`, `atlas`, and `cop` commands always launch with --agent oh-my-copilot:atlas --autopilot. Run this once after installing oh-my-copilot.

ralph-loop

5
from Lee-SiHyeon/oh-my-copilot

자기교정 반복 루프. 완료까지 자동으로 반복 실행합니다. "루프", "완료까지", "계속 해줘", "ralph-loop", "ulw-loop" 트리거로 사용합니다. oh-my-opencode의 Ralph Loop를 Copilot CLI에 포팅한 스킬입니다.

prometheus

5
from Lee-SiHyeon/oh-my-copilot

전략 플래닝 에이전트. 코드 짜기 전에 인터뷰로 요구사항을 명확히 하고 실행 계획을 수립합니다. "계획 세워줘", "플래닝", "prometheus", "인터뷰 모드", "deep-interview" 트리거로 사용합니다. 복잡한 태스크 전 항상 실행 권장.

playwright

5
from Lee-SiHyeon/oh-my-copilot

MUST USE for any browser-related tasks. Browser automation via agent-browser CLI - verification, browsing, information gathering, web scraping, testing, screenshots, and all browser interactions. (playwright - oh-my-opencode port)

oracle

5
from Lee-SiHyeon/oh-my-copilot

Read-only consultation agent. Hard debugging (2+ failed attempts), complex architecture design, self-review after significant implementation. Strategic technical advisor with deep reasoning. (Oracle - oh-my-opencode port)

oh-my-copilot

5
from Lee-SiHyeon/oh-my-copilot

oh-my-opencode를 Copilot CLI용으로 포팅한 멀티에이전트 오케스트레이션 플러그인. Sisyphus(오케스트레이터) + Hephaestus(딥워커) + Prometheus(플래너) + Ralph Loop. "/ultrawork 태스크설명" 으로 시작하면 모든 에이전트가 자동 활성화됩니다. Use this plugin when asked for: "ultrawork", "orchestrate", "multi-agent", "deep work".

init-deep

5
from Lee-SiHyeon/oh-my-copilot

계층형 AGENTS.md 파일 자동 생성. 프로젝트 전체를 분석해서 루트와 복잡한 서브디렉토리에 AGENTS.md를 생성합니다. "AGENTS.md 만들어줘", "init-deep", "프로젝트 문서화", "코드맵 만들어" 트리거로 사용합니다.

hephaestus

5
from Lee-SiHyeon/oh-my-copilot

자율 딥워커 에이전트. 목표만 주면 스스로 탐색하고 완료까지 실행합니다. "딥워크", "자율 실행", "hephaestus", "알아서 해줘" 트리거로 사용합니다. 레시피가 아닌 목표를 받아서 Senior Staff Engineer처럼 동작합니다.