hk-merge-resolve

hk-merge-resolve is a skill for Claude Code from deepklarity/harness-kit. It costs 45 tokens per session (2,077 once invoked), scanned A, original, MIT.

A procedure for resolving merge conflicts, which happen when Git cannot combine competing changes automatically. It first checks the repository state and identifies whether the conflict came from a merge, rebase, cherry-pick, or stash operation.

In plain words
What is it for?
Use it only when explicitly resolving conflicts in the current Git branch, including conflicts from merges, rebases, cherry-picks, or applying stashed work.
Why use it?
It helps choose the correct recovery command and prevents resolving conflicts without understanding the operation in progress. It also records a safety checkpoint before changes are made.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Good fit Use it only when explicitly resolving conflicts in the current Git branch, including conflicts from merges, rebases, cherry-picks, or applying stashed work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/deepklarity/harness-kit/hk-merge-resolve
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add deepklarity/harness-kit --skill hk-merge-resolve
Clone the repo
git clone --depth 1 https://github.com/deepklarity/harness-kit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hk-merge-resolve

README.md
[![agentmods](https://agentmods.dev/badge/skills/deepklarity/harness-kit/hk-merge-resolve/github.svg)](https://agentmods.dev/skills/deepklarity/harness-kit/hk-merge-resolve)
Your own site
<a href="https://agentmods.dev/skills/deepklarity/harness-kit/hk-merge-resolve"><img src="https://agentmods.dev/badge/skills/deepklarity/harness-kit/hk-merge-resolve/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hk-merge-resolve

Your own site · 80×15
<a href="https://agentmods.dev/skills/deepklarity/harness-kit/hk-merge-resolve"><img src="https://agentmods.dev/badge/skills/deepklarity/harness-kit/hk-merge-resolve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,077 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.02077
Opus 5 $0.00023 $0.01038
Sonnet 5 $0.00009 $0.00415
Haiku 4.5 $0.00005 $0.00208

Measured 11d ago against content hash edcaa0cce256, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

hk-merge-resolve scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/hk-merge-resolve/SKILL.md · 186 lines

How it starts

The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Resolve Merge Conflicts

Your job is to resolve all merge conflicts in the current branch of the current repo.

Conflicts can come from many sources — git merge, git rebase, git stash pop, git cherry-pick, or any operation that combines divergent changes. This skill handles all of them.

Step 0: Diagnose the Situation

Before changing anything, understand what state git is in and what caused the conflicts.

  1. Snapshot the state — Run these to understand what's happening:

    git status
    git rev-parse HEAD
    

    Print the HEAD sha to the user: "Safety checkpoint: HEAD is at <sha>."

  2. Identify the conflict source — Check which operation is in progress:

    • git rev-parse MERGE_HEAD 2>/dev/null → merge in progress
    • test -d .git/rebase-merge || test -d .git/rebase-apply → rebase in progress
    • git stash list + check git status for "Unmerged paths" without MERGE_HEAD → stash pop conflict

    This matters because the abort/recovery command differs:

    Source Abort command
    merge git merge --abort
    rebase git rebase --abort
    cherry-pick git cherry-pick --abort
    stash pop git checkout -- . (stash stays in list, nothing lost)

    Print the appropriate abort command to the user so they have an escape hatch.

  3. Protect unstashed work — If there are uncommitted changes beyond the conflicted files (tracked modified files that aren't part of the conflict), warn the user. These are at risk during resolution. Suggest committing or stashing them separately before proceeding, and wait for confirmation.

    Do NOT blindly git stash when conflicts are already present — git won't allow it, and if the conflicts came from a stash pop, the user's changes are already in the working tree as the conflicted content. Stashing again would lose them.

Step 1: Build Context

Understand what both sides of the conflict were trying to do:

  1. Identify the two sides — Based on the conflict source:
    • Merge: "ours" = current branch, "theirs" = the branch being merged in
    • Stash pop: "ours" = current working tree (post-pull), "theirs" = the stashed changes (the user's local work)
    • Rebase: "ours" = the branch being rebased onto, "theirs" = the commits being replayed

Read the full file on GitHub · 186 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 186 lines · 45 tokens per session scan A edcaa0cce256

Subscribe to this mod's changes

hk-merge-resolve is a skill published in the GitHub repository deepklarity/harness-kit (97 stars, last pushed 1mo ago), licensed MIT. It adds 45 tokens to every session and 2,077 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

publish-harness

Publish a generated harness to npm — runs the smoke test, signs the witness manifest, and dispatches npm publish --provenance from your tagged release.

ruvnet/metaharness · 37 tokens

github-deep-research

Conduct multi-round deep research on any GitHub Repo. Use when users request comprehensive analysis, timeline reconstruction, competitive analysis, or in-depth investigation of GitHub. Produces structured markdown reports with executive summaries, chronological timelines, metrics analysis, and Mermaid diagrams.…

fullstack455/deer-flow · 68 tokens

workflow-patterns

Use this skill when implementing tasks according to Conductor's TDD workflow, handling phase checkpoints, managing git commits for tasks, or understanding the verification protocol.

wshobson/agents · 35 tokens

neuron-structured-output

Design and implement structured output classes for Neuron AI agents using SchemaProperty attributes and validation rules. Use this skill when the user mentions structured output, JSON schema extraction, data validation, output classes, DTOs for AI responses, extracting structured data from LLM, or configuring property…

neuron-core/neuron-ai · 104 tokens

merge-strategy

Git merge strategies, conflict resolution approaches, merge vs rebase recommendations, and branch integration patterns in sidecar. Covers pull strategy menu, direct merge workflow, squash merge, commit message templates, configurable defaults, and protected branches. Use when working on git merge features or making…

marcus/sidecar · 63 tokens

comet-github-issue-fix

A workflow for fixing a confirmed Comet-related GitHub issue or review blocker within an isolated scope. It covers matching the work to the relevant workflow, testing the change, checking runtime results, and preparing a careful handoff.

rpamis/comet · 71 tokens