Omh git workflow

From rlaope/oh-my-hermes · View interactive version

Omh git workflow is an AI agent skill from the GitHub repository rlaope/oh-my-hermes. [omh] Git branch in trouble: a merge conflict, a commit that broke…

How to use this skill

Skill file

Git Workflow

This is an OMH git-workflow workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

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

Do Not Use When

Examples

Good example:

Bad example:

Completion Checklist

Recovery Notes

When to Use

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

Quality tier: history-safety-gated

Reasoning demand: standard

Quality bar:

Required inputs:

Expected outputs:

Artifact expectations:

Safety rules:

Runtime Evidence

Use the current host's own tools and subagent/task mechanism when available;

otherwise run the same lanes sequentially or name the unavailable capability.

A prepared plan, handoff, checklist, or skill installation is not execution,

review, CI, merge-readiness, or merge evidence. Record actual tool results, or

not_observed / not_available, in the record; never invent dispatch or host

accounting.

Treat supplied context as advisory, not proof of hidden memory reads or writes.

State scope, constraints, verification, and the stop condition before work.

Reply in the user's own words and the host's own voice: the host's persona owns

reply language, tone, speech level, and sentence endings, progress updates

included (where it sets no language, use the one the user wrote in), and OMH

shapes structure and content only; OMH's record terms

(surface, lane, wrapper, handoff, evidence boundary, not_observed) stay in

records and tool calls, never in the sentence the user reads unless they ask

about one; and when a real unresolved user decision or a useful briefing discussion

remains, offer one specific, content-linked question. Completed work needs no question;

omit unrelated non-action footers and generic offers to continue.

Supporting paths are relative to this skill directory; sibling skill paths are

relative to its parent. Resolve them from the host-provided skill base directory

({baseDir} on hosts that provide it), never a hardcoded install location.

A named workflow not installed here is unavailable, not permission to emulate

its host-specific capabilities. Verify through the real surface before done.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.