Skip to content
Agent Orchestration
Skill

/omh-git-workflow

[omh] Git branch in trouble -- a merge conflict, a commit that broke something, history to repair: plan the resolution, the bisect, or the rewrite, name what is already pushed first, and force-push only with `--force-with-lease`. Use when the user says: git-workflow, git

BOOST
From plugin
oh-my-hermes
3.2k145 skills
Install
$ npx -y skills add rlaope/oh-my-hermes --skill omh-git-workflow --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/omh-git-workflow

Context preview

The summary Claude sees to decide when to auto-load this skill.

[omh] Git branch in trouble -- a merge conflict, a commit that broke something, history to repair: plan the resolution, the bisect, or the rewrite, name what is already pushed first, and force-push only with `--force-with-lease`. Use when the user says: git-workflow, git

SKILL.md

omh-git-workflow.SKILL.md
name: "omh-git-workflow"
description: "[omh] Git branch in trouble -- a merge conflict, a commit that broke something, history to repair: plan the resolution, the bisect, or the rewrite, name what is already pushed first, and force-push only with `--force-with-lease`. Use when the user says: git-workflow, git workflow, merge conflict, merge conflicts, rebase conflict, resolve the conflict, resolve this conflict, conflict markers."
metadata:
  hermes:
    tags: [workflow, oh-my-hermes, verification]
    category: verification
    phase: git-repair
    role: reviewer
    quality_tier: history-safety-gated

Git Workflow

This is a Hermes-native `git-workflow` workflow skill.

Why This Exists

`git-workflow` exists because conflict resolution, bisect, and history repair had no owner: "resolve this merge conflict" reached a file operator and "clean up this branch's history" a live-information lane, while this repository's own incidents -- a stack that replayed its base commits, a commit landing on another session's branch -- each had a known correct procedure.

First Steps

  • Name what is already pushed: each branch involved with its local head, its remote head, and whether others may have fetched it.
  • Before any step that rewrites history, name its recovery point.

Do Not Use When

  • The request is to write the commit message or the PR body for a finished change; use `commit-pr-authoring`.
  • The request is to find defects in a diff before merging it; use `code-review`.
  • The build or CI job fails and the question is why; use `build-failure-triage`.
  • The request is a code change to deliver rather than branch or history repair; use `ultrawork`.

Examples

Good example:

  • Prompt: clean up this branch's history before review
  • Expected behavior: Prepare pushed_state_inventory/v1 first, then history_rewrite_plan/v1 with a backup branch before the interactive rebase and `--force-with-lease` for the push, naming who must re-fetch.
  • Why: Whether the branch is pushed decides whether the cleanup is local or shared.

Bad example:

  • Prompt: just force push my rebased branch over main
  • Expected behavior: Refuse the bare force-push: inventory what is pushed on main, and plan `--force-with-lease` onto the feature branch only.
  • Why: A bare force-push over a shared branch discards other people's commits without a check.

Completion Checklist

  • The pushed-state inventory names every branch the plan touches.
  • Every rewriting step has a recovery point in front of it.
  • Every force-push in the plan uses `--force-with-lease`.
  • Generated and counted files in a conflict are re-derived, not picked.
  • Resolution, bisect verdict, and push are reported only from observed output.

Recovery Notes

  • If the remote state is unknown, plan `git fetch` and the inventory first and rewrite nothing until it is observed.
  • If a rewrite went wrong, recover from the recovery point or the reflog entry before trying anything else.

Workflow Lane

  • Current lane: **Coding handoff** (`idea-to-deploy`, `llm-app-dev`, `cto-loop`, `deploy-and-monitor`, `code-review`, `build-failure-triage`, `verification-gate`, `security-safety-review`, `+28 more`) - coding owners, handoffs, review, CI, and merge evidence.
  • If intent belongs to another lane, hand back to `oh-my-hermes` or name the adjacent workflow.
  • Shared product, routing, compatibility, and evidence rules: `omh-routing/references/skill-common-rail.md`.

Use When

Use when a git branch needs repair rather than new code: a merge or rebase conflict to resolve, a regression to bisect to the commit that introduced it, or history to rewrite, squash, recover, or rebase -- including a stack of branches. The work is a plan that names what is already pushed, what each step rewrites, and how to get back.

Strong routing signals: `git-workflow`, `git workflow`, `merge conflict`, `merge conflicts`, `rebase conflict`, `resolve the conflict`, `resolve this conflict`, `conflict markers`, `git bisect`, `bisect`, `which commit broke`, `find the commit that broke`, `rewrite history`, `rewrite the history`, `branch history`, `branch's history`, `clean up the history`, `interactive rebase`, `squash commits`, `squash the commits`, `force push`, `force-push`, `force-with-lease`, `reflog`, `git reset`, `lost commit`, `recover the commit`, `undo the last commit`, `cherry-pick`, `stacked prs`, `stacked branches`, `rebase the stack`, `detached head`

Catalog Metadata

Category: `verification` Phase: `git-repair` Hermes role: `reviewer` Quality tier: `history-safety-gated` Reasoning demand: `standard`

Quality bar:

  • Start with the pushed-state inventory; a plan without it cannot say which steps are safe.
  • Mark every step that rewrites history and put its recovery point in front of it.
  • Load `references/git-repair-method.md` for the conflict, bisect, rewrite, and stacked-branch procedures instead of improvising them.
  • For a stack of branches, rebase each onto the new head of the one below with `--onto` and the old base, never with a merge-base computed after the base moved.
  • Report each step's observed output, and keep resolved, verified, and pushed as separate states.

Handoff policy:

Keep the pushed-state inventory, the step plan, and the recovery points in Hermes. Every git command is run by the user or the executor; a resolution, a bisect verdict, or a rewrite is recorded only from their observed output.

Required inputs:

  • the branch or branches involved and their upstreams
  • what is already pushed, and who else may have fetched it
  • the conflict, the regression, or the history problem as observed
  • for a bisect: a known good commit, a known bad commit, and the command that tells them apart
  • the repository's merge policy: merge commits, squash, or rebase

Expected outputs:

  • pushed_state_inventory/v1
  • git_repair_plan/v1
  • conflict_resolution_plan/v1 when files conflict
  • bisect_plan/v1 when a regression is hunted
  • history_rewrite_plan/v1 when co
Read more
Ships withoh-my-hermes

English | 한국어 | 日本語 | 中文 Install once. Keep Hermes. Add a stronger operating layer. Planning, research, creation, coding handoffs, operations, and project memory with explicit evidence boundaries.

Get the whole plugin
Stats
3,206
Stars
244
Forks
Active
Maintenance
Python
Language
MIT
License
4h ago
Last commit
4mo ago
Created
9h ago
Added

Repo: rlaope/oh-my-hermes

Other skills on oh-my-hermes.