pr-conflict-resolver

Resolve GitHub pull request merge conflicts and regenerate lock files.

Updated May 17, 2022
One-click install
npx skills add https://github.com/kanade0404/dotfiles --skill pr-conflict-resolver
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-conflict-resolver
Source: https://github.com/kanade0404/dotfiles/tree/main/.opencode/skills/pr-conflict-resolver
Command: npx skills add https://github.com/kanade0404/dotfiles --skill pr-conflict-resolver

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps resolve GitHub pull request merge conflicts safely without dropping intended changes, especially when a PR comment or local workflow needs a non-interactive repair path.

Core Features & Use Cases

  • Conflict-aware merge flow: Checks out the PR branch, merges the base branch by default, and only continues when real merge conflicts are detected.
  • Safe source and lock-file handling: Preserves both sides of source changes when possible and regenerates package lock files through the correct package manager when needed.
  • Validation and reporting: Runs basic tests and lint checks where available, then pushes the resolved branch and reports what changed.
  • Use Case: A reviewer flags a PR as conflicted, and this Skill restores a clean branch, resolves the overlap, validates the result, and prepares it for merge.

Quick Start

Use this skill to resolve the current PR conflict non-interactively, regenerate any affected lock files, run validation, and push the repaired branch.

Frequently Asked Questions about pr-conflict-resolver

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resolve GitHub pull request merge conflicts without losing intended changes?

To resolve GitHub pull request merge conflicts safely, check out the PR branch, merge the base branch, detect real conflicts, preserve both sides of source changes, regenerate lock files, run validation, and push the repaired branch.

What is the best way to automate PR merge conflict repair in a non-interactive workflow?

Automating PR merge conflict repair involves a conflict-aware merge flow that non-interactively checks out the PR branch, merges the base branch, resolves overlaps, regenerates package lock files, runs tests, and pushes the completed branch.

Can I regenerate package lock files after a Git rebase or merge conflict?

Yes, you can regenerate package lock files after a Git rebase or merge conflict by running the correct package manager to rebuild the lockfile, ensuring dependencies remain valid before pushing the repaired pull request branch.

Does this pull request conflict resolution approach run validation tests before pushing?

Yes, this pull request conflict resolution approach runs basic tests and lint checks where available to validate the merged result before pushing the repaired branch back to the remote repository.

When do I need to use an automated merge conflict resolver for GitHub PRs?

You need an automated merge conflict resolver when a reviewer flags a conflicted PR or when a local workflow requires a non-interactive repair path to restore a clean branch and prepare it for merge.

What happens if no real merge conflicts are detected during the base branch merge?

If no real merge conflicts are detected during the base branch merge, the conflict-aware flow stops, meaning the branch is clean and no further source resolution or lockfile regeneration is required.