rewrite-branch-merge
Manage rewrite branches: when to branch, how to compare, and how to merge back with minimal chaos.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
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)
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!