merge-conflict-generated-fileslisted
Install: claude install-skill wan-huiyan/agent-traffic-control
# Merge Conflict in Generated Output Files
## Problem
A project generates output files (HTML, JSON, CSS, TypeScript declarations, OpenAPI specs,
etc.) from a source-of-truth input. Both branches modified the source AND committed fresh
generated outputs. The merge/rebase now shows conflicts in the generated files — but hand-
merging them is both futile (the generator will overwrite them) and error-prone (computed
totals, sorted indexes, and aggregated summaries can't be correctly resolved by text diffing).
**The key mistake to avoid:** treating generated file conflicts as real conflicts requiring
line-by-line resolution. They're not — they're a side effect of forgetting that the files
are derived.
## Context / Trigger Conditions
Apply this skill when ALL of these hold:
1. Multiple files are in the conflict set, but most of them look like generated output (HTML
tables, JSON indexes, minified CSS, declaration files, changelogs built from commits).
2. You can identify a single source generator that produces them — a build command, a Python
script, `make docs`, `npm run build`, `openapi-generator`, etc.
3. `git diff --name-only origin/main...HEAD` shows the same generator SOURCE (not output) was
also modified on your branch, meaning both sides touched the source AND re-ran the generator.
4. Hand-merging the outputs would produce semantically wrong results (e.g., duplicate tracker
entries, stale totals, mismatched sort order, broken JSON).
**Common generator → ou