Skip to main content

git-master

Git expert for atomic commits, interactive rebasing, branch management, and history cleanup. Trigger "git rebase", "atomic commits", "clean git history", "squash commits", "branch strategy".

설치로 이동

소스 정보

저장소
mrzhangguoguo/oh-my-workbuddy
최근 소스 활동
2026년 7월 8일 07:14
감지된 SKILL.md 언어
영어
스타
2
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
git-master
category
execution
status
active
core
true
description
Git expert for atomic commits, interactive rebasing, branch management, and history cleanup. Trigger "git rebase", "atomic commits", "clean git history", "squash commits", "branch strategy".
agent_created
true
triggers
["git rebase","atomic commits","clean git history","squash commits","branch strategy"]
> Ported from oh-my-codex `git-master`. OMX runtime conventions (`$macro` invocation, > `omx` CLI, `.omx/` state directory) are replaced with WorkBuddy idioms > (Skill tool, Agent tool, task list, `.workbuddy/memory`). # Git Master Git operations expert. Use this skill whenever the user needs precise, safe git work: atomic commits, interactive rebasing, branch management, history cleanup, or style-consistent commit messages. ## Usage Invoke the `git-master` skill and describe the git task, e.g.: "rebase my feature branch onto main", "squash these 5 commits", "write a conventional commit for these changes". ## Capabilities - **Atomic commits** with conventional-commit format (`feat:`, `fix:`, `refactor:`, `docs:`, `test:`, `chore:`). - **Interactive rebasing** (`rebase -i`) for reordering, squashing, fixing up. - **Branch management**: create/rename/delete, branch-point detection, divergence check. - **History cleanup**: prune stray commits, rewrite messages, split/join commits. - **Style detection**: read the repo's existing commit history to match its convention before writing new commits. ## Workflow 1. **Assess the working tree.** Run read-only checks first: ```bash git status git log --oneline -10 git diff --stat ``` Detect the repo's commit style from recent history before composing messages. 2. **Plan the operation.** For anything destructive (rebase, reset, branch delete, amend of already-pushed commits), use the task list (TaskCreate) to outline steps, and surface a short plan to the user. If the operation rewrites shared/pushed history, ask for explicit confirmation before proceeding (use AskUserQuestion for a clean yes/no). 3. **Execute safely.** - Prefer `--autosquash` when queuing fixups. - For atomic commits, stage narrowly: `git add -p` or stage specific paths rather than `git add -A`. - Write messages that match the detected style; default to Conventional Commits when the repo has no clear convention. 4. **Verify.** After the operation: ```bash git status git log --oneline -5 ``` Confirm the tree matches intent and there are no leftover staged/unstaged changes unless expected. ## Safety rules - Never rewrite history that has already been pushed to a shared branch without explicit user confirmation. - Always check `git status` and `git log` before mutating. - For large/risky history rewrites, suggest creating a backup branch first (`git branch backup/<name>`). - If unsure about intent, ask the user rather than guessing. ## Handoff When the git task is part of a larger flow (e.g. a `ralph`/`ultrawork` loop or a PR prep), record the resulting commit range and branch state in the task list and/or append a short note to `.workbuddy/memory/YYYY-MM-DD.md` so downstream steps can pick up where this left off.
GitHub에서 보기