event4u-app/agent-config

merge-conflicts

Use when the user has merge conflicts or says "resolve conflicts". Understands conflict markers, resolution strategies, and verification workflow.

85CollectingRuns scripts
See how to use itView GitHub source
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/merge-conflicts"

Quick start

Start using it in three steps

Install it or open the source, trigger it with a clear task, then follow the source workflow.

1

Install the Skill

npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/merge-conflicts"
2

Describe the task

Use merge-conflicts to help me with: [describe your task]. Before you begin, tell me what input you need, the steps you will follow, and the expected output.

3

Follow the workflow

No structured workflow was detected; follow the original SKILL.md below.

Continue to the workflow

Direct answers

Answers to review before you install

What is merge-conflicts?

Understands conflict markers, resolution strategies, and verification workflow.

Who should use merge-conflicts?

It is relevant to workflows involving Testing, Engineering, Operations, Research.

How do you install merge-conflicts?

SkillSignal detected this source-specific command: npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/merge-conflicts". Inspect the repository and command before running it.

Which Agent platforms does it support?

The upstream source does not declare a dedicated Agent platform.

What permissions or risks should you review?

Static analysis detected exec-script signals. Review the cited source lines before installing; these signals are not a security audit.

What are the current evidence limits?

This page combines upstream documentation with deterministic repository, quality, and static-risk signals. It is not described as a manual test or security review.

SkillSignal brief

Decide whether it fits your work first

Understands conflict markers, resolution strategies, and verification workflow.

Useful in these contexts

Not yet included in a workflow collection

Core capabilities

TestingEngineeringOperationsResearchPython

Distilled from the source

Understand this Skill in one minute

About 5 min · 9 sections

When it is worth using

  1. A merge or rebase produces conflicts

  2. The user asks to "resolve conflicts", "fix merge", or "update branch"

  3. CI fails because the branch is behind main

  4. The prepare-for-review command encounters conflicts

Examples and typical usage

  1. Resolved conflict with both sides' intent preserved

  2. Summary of resolution strategy per file

Repository stars
7
Repository forks
1
Quality
85/100
Source repository last pushed

Quality breakdown

Based on traceable docs and repository signals; stars are not treated as quality.

85/100
Documentation27/30
Specificity23/25
Maintenance20/20
Trust signals15/25

Compare before choosing

Related Agent Skills and source variants

These links are selected from shared tasks, functions, stacks, platforms, and same-name variants. Compare the source owner, documentation, permissions, and maintenance signals.

simpy by k-dense-ai

Build, inspect, test, and analyze bounded process-based discrete-event simulations with SimPy, including events, resources, interrupts, monitoring, replications, warm-up, and reproducible output analysis.

eval-driven-dev by github

Improve AI application with evaluation-driven development. Define eval criteria, instrument the application, build golden datasets, observe and evaluate application runs, analyze results, and produce a concrete action plan for improvements. ALWAYS USE THIS SKILL when the user asks to set up QA, add tests, add evals, evaluate, benchmark, fix wrong behaviors, improve quality, or do quality assurance for any Python project that calls an LLM model.

statsmodels by k-dense-ai

Statistical models library for Python. Use when you need specific model classes (OLS, GLM, mixed models, ARIMA) with detailed diagnostics, residuals, and inference. Best for econometrics, time series, rigorous inference with coefficient tables. For guided statistical test selection with APA reporting use statistical-analysis.

generating-python-installer by affaan-m

Commercial-grade Python installer expert for Windows: Nuitka extreme compilation, dist slimming, DLL footprint analysis, and Inno Setup packaging to ship the smallest, fastest installers. Use only for advanced packaging/optimization (minimal size, fast startup), not basic script-to-exe conversion. 中文触发:Nuitka 极限优化、Python 商业打包、极限编译 Python、dist 瘦身、DLL 分析、最小安装包、最快启动、商业级打包风格

design-review by event4u-app

Use when the user says "review the design", "check the UI", or wants a comprehensive UI/UX review. Uses a 7-phase methodology covering interaction, responsiveness, accessibility, and more.

View original Skill.mdThis page is parsed directly from the repository SKILL.md without editorial rewriting. Collected: Jul 28, 2026 · about 5 min

merge-conflicts

When to use

Use this skill when:

  • A merge or rebase produces conflicts
  • The user asks to "resolve conflicts", "fix merge", or "update branch"
  • CI fails because the branch is behind main
  • The prepare-for-review command encounters conflicts

Procedure: Resolve merge conflicts

1. Understand the situation

Before touching any conflict:

# What files have conflicts?
git diff --name-only --diff-filter=U

# What branch are we merging from/into?
git log --oneline -1 HEAD
git log --oneline -1 MERGE_HEAD   # or REBASE_HEAD for rebase

2. Read both sides

For each conflicted file:

  1. Read the full conflict — not just the markers, but the surrounding context.
  2. Understand "ours" — what does the current branch intend?
  3. Understand "theirs" — what does the incoming branch intend?
  4. Check if both changes are needed — often both sides added different things.

2b. Merge Resolution Plan — mandatory before touching a conflict

After reading both sides, write the plan; under autonomous-execution the approval gate applies (a standing mandate states the plan and proceeds; an interactive session surfaces it and waits):

## Merge Resolution Plan
- Conflicts: {N files / M hunks}
- Execution order: {dependency leaves first — a file nothing else imports
  resolves before the files that import it}
| file | strategy | rationale |
|---|---|---|
- Decisions needed from the user: {semantic/deleted-modified items, or none}
- Validation: {targeted checks to run after resolution}

Backup before resolution: every deleted-modified file is copied to a temp path ($TMPDIR/merge-backup-<ts>/<file>) and the path noted in the plan BEFORE any resolution touches it.

3. Resolution strategies

SituationStrategy
Both sides changed the same line differentlyAsk the user — this is a semantic conflict
Both sides added different code in the same areaKeep both — combine the additions in logical order
One side deleted, other side modifiedAsk the user — deletion intent vs modification intent
Lock file conflicts (composer.lock, package-lock.json)Regenerate — accept theirs, then run composer install / npm install
Migration conflicts (same timestamp)Rename — adjust timestamp to avoid collision
Auto-generated files (OpenAPI spec, baselines)Regenerate — resolve source, then regenerate the output
Formatting-only conflictsAccept either — then run quality tools to normalize
Import-block conflicts (both sides added imports)Keep both — union the imports, drop duplicates, let the linter order them
Binary files (images, archives, compiled assets)Pick one side whole — never splice; regenerate from source if generated, else ask which side wins

4. File-type specific rules (stack-aware)

Source files (any language)

  • After resolving, check that import statements are correct (no duplicates, no missing imports). Applies to PHP use, JS/TS import, Python import, Go import, Rust use.
  • Verify the resolved file parses with the project's type-checker / linter on just the touched file:
    • PHP: php -l filename.php then vendor/bin/phpstan analyse path/to/file.php
    • TypeScript: tsc --noEmit (full project) or eslint path/to/file.ts
    • Python: python -m py_compile path/to/file.py then mypy path/to/file.py
    • Go: go vet ./path/to/pkg/...
    • Rust: cargo check

Database migrations

  • Never merge two migrations that modify the same table into one.
  • If both branches added migrations, keep both — adjust timestamps / ordering to avoid collision.
  • After resolving, run migrations against a disposable database to verify:
    • Laravel: php artisan migrate --env=testing
    • Symfony / Doctrine: php bin/console doctrine:migrations:migrate --env=test --no-interaction
    • Node / Prisma: pnpm prisma migrate dev --schema=...
    • Node / Knex: pnpm knex migrate:latest --env test
    • Python / Alembic: alembic upgrade head (against a test DB URL)
    • Go / golang-migrate: migrate -path ./migrations -database "$TEST_DATABASE_URL" up

Config files

  • composer.json — resolve, then run composer update --lock to regenerate composer.lock.
  • package.json — resolve, then run npm install to regenerate package-lock.json.
  • .env.example — keep all new entries from both sides.

Test files

  • If both sides added tests to the same file, keep all tests.
  • If both sides modified the same test, understand what each test is verifying and combine.

5. When to ask the user

Always ask when:

  • Both sides changed the same business logic differently (semantic conflict)
  • A deletion conflicts with a modification (intent is unclear)
  • The conflict involves authorization or security logic
  • You're unsure which side is "correct"

Resolve without asking when:

  • Both sides added different, non-overlapping code
  • Lock file / auto-generated file conflicts
  • Import statement ordering
  • Formatting-only differences

5b. Resolution log — one line per conflict

Every resolved conflict gets a one-line explanation ("kept both — additive imports"; "took theirs — lockfile regenerated") collected into the final summary: the auditable log the reviewer reads instead of re-deriving each hunk decision.

6. Verify after resolution

After resolving ALL conflicts:

# 1. Check no conflict markers remain (stack-agnostic — no --include filter)
grep -rn "<<<<<<< \|======= \|>>>>>>> " . \
  --exclude-dir=node_modules --exclude-dir=vendor --exclude-dir=.git
# 2. Syntax-check changed files (stack-dependent — pick the row that matches the project)
# PHP:    find . -name "*.php" -newer .git/MERGE_HEAD -exec php -l {} \;
# TS:     tsc --noEmit
# Python: python -m compileall -q .
# Go:     go build ./...
# Rust:   cargo check
# 3. Run the project's quality tools — resolve via the quality-tools skill, Taskfile,
#    package.json scripts, composer.json scripts, or Makefile. Examples per stack:
# PHP:    vendor/bin/phpstan analyse
# TS:     pnpm lint
# Python: ruff check && mypy
# Go:     golangci-lint run
# Rust:   cargo clippy
# 4. Run tests — full suite, not just the touched files
# PHP:    php artisan test    (or vendor/bin/pest)
# TS:     pnpm test
# Python: pytest
# Go:     go test ./...
# Rust:   cargo test
# 5. Complete the merge/rebase
git add .
# Don't commit — let the user decide when to commit

Common pitfalls

PitfallPrevention
Accepting "ours" blindlyAlways read both sides first
Missing a conflict markerRun grep -rn "<<<<<<< " after resolving
Breaking importsCheck use statements after merge
Losing new codeCompare the resolved file with both original versions
Forgetting to regenerate lock filesAlways run package manager after resolving *.json

Rebase vs Merge

ApproachWhen to use
git merge mainDefault — preserves history, safer for shared branches
git rebase mainOnly when explicitly asked — rewrites history, cleaner log

Never rebase without explicit permission (per no-commit rule).

Output format

  1. Resolved conflict with both sides' intent preserved
  2. Summary of resolution strategy per file

Auto-trigger keywords

  • merge conflict
  • resolve conflict
  • rebase conflict
  • conflict markers
  • branch behind main
  • update branch

Gotcha

  • Never resolve conflicts by deleting code you don't understand — ask the user.
  • The model tends to accept "ours" or "theirs" wholesale instead of merging logic from both sides.
  • Always run tests after resolving conflicts — successful merge != correct merge.
  • Lock file conflicts (composer.lock, package-lock.json) should be resolved by re-running the package manager.

Do NOT

  • Do NOT rebase or force-push without explicit permission.
  • Do NOT leave conflict markers (<<<<<<<) in any file.
  • Do NOT skip verification (project type-checker + tests) after resolving.
Skill path
src/skills/merge-conflicts/SKILL.md
Commit SHA
0adf49a8ae84
Repository license
MIT
Data collected