Contributor-First PR Merge
HKUDS/OpenHarness
Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.
Resolves Git merge, rebase and cherry-pick conflicts by reading the PRs behind each side, keeping both intents and asking you when they truly clash.
$ npx skills add cashew-labs/libretto --skill fix-merge-conflicts -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cashew-labs/libretto fix-merge-conflicts --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/fix-merge-conflicts .claude/skills/fix-merge-conflicts && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "fix-merge-conflicts" agent skill from https://github.com/cashew-labs/libretto/tree/main/.agents/skills/fix-merge-conflicts into .claude/skills/fix-merge-conflicts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fix-merge-conflicts", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cashew-labs/libretto/tree/main/.agents/skills/fix-merge-conflictsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cashew-labs/libretto --skill fix-merge-conflicts -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cashew-labs/libretto fix-merge-conflicts --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/fix-merge-conflicts .agents/skills/fix-merge-conflicts && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "fix-merge-conflicts" agent skill from https://github.com/cashew-labs/libretto/tree/main/.agents/skills/fix-merge-conflicts into .agents/skills/fix-merge-conflicts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fix-merge-conflicts", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cashew-labs/libretto --skill fix-merge-conflicts -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cashew-labs/libretto fix-merge-conflicts --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/fix-merge-conflicts .cursor/skills/fix-merge-conflicts && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "fix-merge-conflicts" agent skill from https://github.com/cashew-labs/libretto/tree/main/.agents/skills/fix-merge-conflicts into .cursor/skills/fix-merge-conflicts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fix-merge-conflicts", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cashew-labs/libretto.git --path .agents/skills/fix-merge-conflicts--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cashew-labs/libretto --skill fix-merge-conflicts -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cashew-labs/libretto fix-merge-conflicts --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/fix-merge-conflicts .gemini/skills/fix-merge-conflicts && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "fix-merge-conflicts" agent skill from https://github.com/cashew-labs/libretto/tree/main/.agents/skills/fix-merge-conflicts into .gemini/skills/fix-merge-conflicts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fix-merge-conflicts", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cashew-labs/libretto fix-merge-conflictsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cashew-labs/libretto --skill fix-merge-conflicts -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/fix-merge-conflicts .github/skills/fix-merge-conflicts && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "fix-merge-conflicts" agent skill from https://github.com/cashew-labs/libretto/tree/main/.agents/skills/fix-merge-conflicts into .github/skills/fix-merge-conflicts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fix-merge-conflicts", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cashew-labs/libretto --skill fix-merge-conflicts -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cashew-labs/libretto fix-merge-conflicts --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/fix-merge-conflicts .opencode/skills/fix-merge-conflicts && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "fix-merge-conflicts" agent skill from https://github.com/cashew-labs/libretto/tree/main/.agents/skills/fix-merge-conflicts into .opencode/skills/fix-merge-conflicts/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fix-merge-conflicts", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
fix-merge-conflictsResolves Git merge, rebase and cherry-pick conflicts by reading the PRs behind each side, keeping both intents and asking you when they truly clash.
Conflicts are resolved by intent rather than line order. The skill starts with a preflight: if no unmerged paths exist, it fetches and merges origin/main to surface conflicts, and if there are still none it reports that and stops.
With conflicts present, it lists the conflicted files and uses git log --left-right --merge to find the commits behind them, maps each commit to its pull request through the GitHub API (falling back to git show and the commit message), and reads each PR's title and description to write a short intent summary per side. When intents diverge, for example both sides changing the same behavior with incompatible outcomes, it stops and asks you before resolving that hunk. Otherwise it merges both intents, validates with targeted checks and summarizes the decisions and tradeoffs.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 41ab782. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitpnpmghFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, pnpm and gh, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Merge Conflict Resolver loads about 1.1k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 494 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from cashew-labs/libretto at commit 41ab782, republished under its MIT licence (© cashew-labs). 494 words, ~1,129 tokens.
.claude/skills/fix-merge-conflicts/SKILL.md (or your agent's skills folder).Resolve conflicts by intent, not by line order.
origin/main.If there are no active unmerged paths, proactively merge latest origin/main to surface conflicts:
git status --porcelain
git diff --name-only --diff-filter=UDecision rule:
git diff --name-only --diff-filter=U returns files, skip auto-merge and continue to conflict analysis.git fetch origin
git merge origin/mainThen re-check:
git diff --name-only --diff-filter=URun:
git status --porcelain
git diff --name-only --diff-filter=U
git log --left-right --merge --onelineUse git log --left-right --merge as the starting set of commits that influenced the conflicted hunks.
Prefer GitHub metadata when available.
origin.gh api graphql \
-f query='query($owner:String!,$repo:String!,$sha:GitObjectID!){repository(owner:$owner,name:$repo){object(oid:$sha){... on Commit{associatedPullRequests(first:5){nodes{number title body url mergedAt baseRefName headRefName}}}}}}' \
-F owner=OWNER -F repo=REPO -F sha=COMMIT_SHAIf no associated PR is found, fall back to git show --stat COMMIT_SHA and commit message context.
For each relevant PR, capture:
Write a short intent summary per side before editing code.
Before finalizing any hunk where intents conflict, notify the user and ask for direction.
Treat these as divergence signals:
When divergence is detected:
Question format:
Intent divergence detected in <file>:<hunk>.
Option A (PR #X): <one-line intent>
Option B (PR #Y): <one-line intent>
Which intent should be primary for this hunk?If the user chooses one side, preserve that side and salvage any non-conflicting behavior from the other side. If the user requests a hybrid, restate the hybrid rule before applying edits.
For each conflict hunk:
Avoid resolving by "take ours/theirs" unless the PR intent proves one side is obsolete.
Run focused checks that cover touched behavior. In this repository, prefer:
pnpm --filter libretto-cli type-check
pnpm --filter libretto-cli test -- <relevant-test-file>Run broader checks when conflict scope is wide.
Provide a concise summary:
If intent is ambiguous after reading PR metadata, ask one specific question before finalizing.
© cashew-labs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/fix-merge-conflicts of cashew-labs/libretto.
Open the folder on GitHubat commit 41ab782
Merge Conflict Resolver next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Merge Conflict Resolver this skillcashew-labs/libretto | 904 | — | ~1.1k | Automated safety check: Pass | MIT | |
| Contributor-First PR MergeHKUDS/OpenHarness | 16k | 1 repos | ~847 | Automated safety check: Pass | MIT | |
| Create Pull Requestcline/cline | 70k | 1 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Create Pull Request with Work Item IDmakeplane/plane | 61k | — | ~824 | Automated safety check: Pass | AGPL-3.0 | |
| Creating Description For Gh PRredis/jedis | 12k | — | ~838 | Automated safety check: Pass | MIT | |
| Pascal Editor PR Openerpascalorg/editor | 25k | — | ~619 | Automated safety check: Pass | MIT |
HKUDS/OpenHarness
Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.
cline/cline
Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.
makeplane/plane
Opens a pull request for the current branch using the repo's template, a work item ID in the title and a description filled in from the actual diff.
redis/jedis
Generate a clear, concise GitHub PR title and description from the diff between two local git branches, and save it to prDescription.md in the repo root.
pascalorg/editor
Opens or refreshes a pull request on pascalorg/editor from the current branch, describing only what the branch's commits and diff actually contain.
remix-run/react-router
Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.
cashew-labs/libretto
Lays out a minimal, iteration-first approach to writing system prompts for LLM agents, with model-specific notes for Claude, GPT, Gemini, and Codex.
cashew-labs/libretto
Works through the review comments on a pull request one by one: fetches the threads, makes the fixes, runs type-check, build and lint, pushes, and resolves the threads.
cashew-labs/libretto
Design rules for command-line tools: subcommand-scoped help, actionable success output, debuggable failures, stable output, meaningful exit codes and a --json mode.
cashew-labs/libretto
Drives desktop Electron apps already installed on your machine, such as Slack, Discord or VS Code, by relaunching them with a debugging port and using the Libretto CLI.
cashew-labs/libretto
Researches the codebase and relevant docs, asks clarifying questions, then writes a spec sheet in specs/ for a significant feature or complex fix.
cashew-labs/libretto
Turns the current session's code changes into a Markdown walkthrough shown in a native Glimpse window, with highlighted code, rendered diffs and review feedback.
Categories
Resolves Git merge, rebase and cherry-pick conflicts by reading the PRs behind each side, keeping both intents and asking you when they truly clash. Conflicts are resolved by intent rather than line order. The skill starts with a preflight: if no unmerged paths exist, it fetches and merges origin/main to surface conflicts, and if there are still none it reports that and stops.
Merge Conflict Resolver fits situations like: resolving conflict markers after a merge, rebase or cherry-pick; choosing between two sides of a conflict by reading the PRs behind them; syncing a branch with origin/main and handling whatever breaks; getting a summary of conflict decisions and tradeoffs.
Run `npx skills add cashew-labs/libretto --skill fix-merge-conflicts -a claude-code`. Or copy the skill folder (.agents/skills/fix-merge-conflicts in cashew-labs/libretto) into .claude/skills/fix-merge-conflicts in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cashew-labs/libretto --skill fix-merge-conflicts -a codex`. Or copy the skill folder (.agents/skills/fix-merge-conflicts in cashew-labs/libretto) into .agents/skills/fix-merge-conflicts in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cashew-labs/libretto --skill fix-merge-conflicts -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fix-merge-conflicts, .gemini/skills/fix-merge-conflicts, .github/skills/fix-merge-conflicts and .opencode/skills/fix-merge-conflicts in your project.
Going by SKILL.md and its folder, Merge Conflict Resolver needs the command-line tools its instructions call (git, pnpm and gh). Our summary lists: Git; The GitHub CLI (`gh`) to look up PRs for conflicting commits.
SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Merge Conflict Resolver is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Merge Conflict Resolver: Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars), Create Pull Request (cline/cline, 70k stars), Create Pull Request with Work Item ID (makeplane/plane, 61k stars) and Creating Description For Gh PR (redis/jedis, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cashew-labs (a GitHub organization) maintains it in cashew-labs/libretto, which has 904 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on August 21, 2026.
Source: cashew-labs/libretto on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.