rewrite-branch-merge
Manage rewrite branches: when to branch, how to compare, and how to merge back with minimal chaos.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
When to use
- A change is risky (canon/timeline/payoff) and might break the mainline.
- Author wants to explore multiple routes in parallel.
Branching rules (simple, strict)
- Branch if:
- canon changes would require editing many existing chapters
- timeline constraints are violated and fix is non-local
- payoff plan changes the story’s core promise
Comparison checklist
- Narrative Tests: pass/fail delta
- Setup/Payoff ledger: debt ratio, broken setups
- Reader personas: confusion / payoff strength delta
- Author intent: does this branch align better with the deviation intent?
Merge strategies
- Pick winner: choose one branch entirely (fast)
- Selective merge: pick best chapters/sections (requires strong diff discipline)
- Dual timeline: keep both as alternate route (rare; only if author wants)
Output
-
branch_compare.md(diff summary + test/persona/ledger comparison) -
merge_plan.md(chosen strategy + concrete steps)
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-01-26
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!