What is merge-conflicts?
Understands conflict markers, resolution strategies, and verification workflow.
event4u-app/agent-config
Use when the user has merge conflicts or says "resolve conflicts". Understands conflict markers, resolution strategies, and verification workflow.
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/merge-conflicts"Quick start
Install it or open the source, trigger it with a clear task, then follow the source workflow.
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/merge-conflicts"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.
No structured workflow was detected; follow the original SKILL.md below.
Continue to the workflowDirect answers
Understands conflict markers, resolution strategies, and verification workflow.
It is relevant to workflows involving Testing, Engineering, Operations, Research.
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.
The upstream source does not declare a dedicated Agent platform.
Static analysis detected exec-script signals. Review the cited source lines before installing; these signals are not a security audit.
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
Understands conflict markers, resolution strategies, and verification workflow.
Useful in these contexts
Core capabilities
Distilled from the source
About 5 min · 9 sections
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
Resolved conflict with both sides' intent preserved
Summary of resolution strategy per file
Quality breakdown
Based on traceable docs and repository signals; stars are not treated as quality.
Compare before choosing
These links are selected from shared tasks, functions, stacks, platforms, and same-name variants. Compare the source owner, documentation, permissions, and maintenance signals.
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.
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.
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.
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 分析、最小安装包、最快启动、商业级打包风格
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.
Use this skill when:
prepare-for-review command encounters conflictsBefore 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
For each conflicted file:
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.
| Situation | Strategy |
|---|---|
| Both sides changed the same line differently | Ask the user — this is a semantic conflict |
| Both sides added different code in the same area | Keep both — combine the additions in logical order |
| One side deleted, other side modified | Ask 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 conflicts | Accept 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 |
use, JS/TS import, Python import, Go import, Rust use.php -l filename.php then vendor/bin/phpstan analyse path/to/file.phptsc --noEmit (full project) or eslint path/to/file.tspython -m py_compile path/to/file.py then mypy path/to/file.pygo vet ./path/to/pkg/...cargo checkphp artisan migrate --env=testingphp bin/console doctrine:migrations:migrate --env=test --no-interactionpnpm prisma migrate dev --schema=...pnpm knex migrate:latest --env testalembic upgrade head (against a test DB URL)migrate -path ./migrations -database "$TEST_DATABASE_URL" upcomposer.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.Always ask when:
Resolve without asking when:
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.
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
| Pitfall | Prevention |
|---|---|
| Accepting "ours" blindly | Always read both sides first |
| Missing a conflict marker | Run grep -rn "<<<<<<< " after resolving |
| Breaking imports | Check use statements after merge |
| Losing new code | Compare the resolved file with both original versions |
| Forgetting to regenerate lock files | Always run package manager after resolving *.json |
| Approach | When to use |
|---|---|
git merge main | Default — preserves history, safer for shared branches |
git rebase main | Only when explicitly asked — rewrites history, cleaner log |
Never rebase without explicit permission (per no-commit rule).
<<<<<<<) in any file.