/superRA:semantic-mergefrom superRA
Integrates git branches by semantic intent rather than line-level conflicts. Use before merge, rebase, or cherry-pick to resolve overlapping changes deliberately.
Ships in superRA. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Integrate branches by intent, not by lines: understand what each side was achieving, synthesize where both changes are valid, escalate decisions that change what the branch means to the user, leave a trail later agents can follow.
Treat conflicts as intent conflicts first, line conflicts second. Intent-changing conflicts always go to the user; implement their decisions, never override them.
Load exactly the mode reference matching the call path:
references/workflow-sync-author.md when superintegrate dispatches an agent to bring the current branch onto a confirmed base.references/workflow-sync-reviewer.md when superintegrate dispatches a separate reviewer before maturation begins.references/standalone-merge.md when this skill is invoked directly for a merge, rebase, cherry-pick, or branch sync outside the full integration workflow.All modes walk §Semantic Coherence Checklist below.
Inspect before changing anything:
BASE_REF, PRE_SYNC_BASE_SHA, BASE_HEAD_SHA, and incoming range.Dirty worktree with unrelated changes: stash them under a name before any sync operation and report the stash in the status return. Stop and clarify only when the repository is already mid-operation (unresolved merge, in-flight rebase, detached HEAD) in a way that makes intent ambiguous.
Size the work from Step 1's conflict status, touched-file set, and incoming range before investigating intent in depth. A merge is trivial when all three hold:
Trivial merge: land it and run the stale-reference sweep (Step 6) bounded to that near-empty reach — the sweep confirms the third condition held. Skip intent synthesis, the resolution plan, and escalation; they have no overlapping cluster to act on. Record a clean sync. Any condition failing — a conflict, an overlapping file, a rename reaching current-branch code — takes the merge at full depth. Unsure whether overlap or a rename reaches current-branch code: treat it as non-trivial.
Read commit messages, diffs, and any task tree or docs for each side. Current-branch intent: the superRA/ task tree in workflow mode, the branch name, commits, and diffs in standalone mode. Incoming intent: the commit range on the other side of the merge base.
Classify each cluster of changes by role. The role drives its resolution:
superRA/.repro/lock.json needs no hand edit: superra repro keeps each entry on one side or identical on both and drops the entries the sides disagree on, whose steps then read missing. Resolve those steps by the stale rule (reproducibility/references/rerun-or-accept.md). Any superra repro build rewrites the lock without markers — build a fresh step when the rule builds none — then commit it. A conflicted superRA/.repro/acceptance/<step>.json accepts nothing: remove it and resolve its step by the same rule.Classify and execute within each role; intent-changing calls — data contracts, test expectations, outputs — go to the user.
For each overlapping area, pick one of:
Prefer synthesis over picking sides, regeneration over hand-editing generated files.
Ask the user before resolving — with intent and consequences, not raw diff chunks — when:
superplan §User Feedback and Changing the Task Tree),Fold every answer into the relevant task objective — rewritten self-sufficient with the new context — before committing the resolution. No task tree: record the decision in the sync commit body.
Run the sync operation only after intent investigation. Resolve by the plan from Step 3. Preserve base-current deletions and relocations by default; restore branch-side content only when current-branch intent, an approved task objective, or a logged user decision justifies it.
Land one merge commit plus N propagation commits as needed to reach semantic coherence. Every commit leaves the tree passing the automated protection selected before Sync, or existing tests and drift tests when standalone. Per-commit protection-pass is the lower bound; the whole-mode stopping rule is §Semantic Coherence Checklist §Scope boundary.
Include the conflict resolution, resolved docs, and the mode-specific sync record with the commits producing them — commit messages plus task-local ## Sync Impact sections in workflow mode, the commit body in standalone mode. Broader codebase-coherence work belongs to refactor-and-integrate. The sync record may capture context explaining the post-sync diff for later codebase review; it never carries unresolved semantic-merge work into Integrate.
A "no conflict markers" check is not enough. Before returning, sweep the merge's semantic reach for stale references and resolve them:
Run targeted checks for touched subsystems where cheap. Fix stale references following directly from the merge; defer broader codebase-fit work to refactor-and-integrate. Confirm the tree matches the integrated intent, not just a conflict-free state.
Semantic-merge is done when the merge's meaning is fully represented in the tree. The implementer walks this as a pre-handoff self-check; the reviewer walks what its focus covers. A merge scoped trivial per §Scope the merge first satisfies the intent-preservation and resolution items by construction — confirm the verification items and move on. [BLOCKING] items must be satisfied for the sync to be accepted; [ADVISORY] items are recorded and do not block.
Intent preservation:
[BLOCKING] Incoming intent understood from commits, diffs, docs, and caller context.[BLOCKING] Governing baseline and direction identified before conflict resolution.[BLOCKING] Each overlapping cluster classified by role (behavior/API, data/schema, docs/narrative, generated outputs, tests, config/build) before resolution.[BLOCKING] No silent losses from either side; dropped hunks have a documented rationale.[BLOCKING] No silent restorations of base-current deletions or relocations in workflow Sync.Scope boundary (semantic coherence stopping rule):
[BLOCKING] Stale references within the merge's semantic reach are resolved (per Step 6).[BLOCKING] Generated outputs made stale by the merged sources are regenerated, or escalated per Step 4 and recorded when regeneration would change a meaningful result.[BLOCKING] Docs and comments that describe the merged code are updated to match.[BLOCKING] Existing protection passes on every commit landed by this skill (per Step 5).[BLOCKING] Broader codebase-coherence work is left to refactor-and-integrate; the sync record defines no unresolved semantic-sync targets.Intent integrity:
[BLOCKING] Intent-changing choices were escalated, folded into the relevant task objective, and implemented as stated.[BLOCKING] Data-discipline artifacts and drift tests were preserved.[BLOCKING] Meaningful result changes were not silently accepted or re-expected.Sync record:
[BLOCKING] Task files remain coherent after the sync when present.[BLOCKING] Task-structure changes were routed through superplan §User Feedback and Changing the Task Tree before adaptation proceeded.[BLOCKING] Affected tasks carry a ## Sync Impact section (per references/workflow-sync-author.md) when workflow Sync leaves task-specific context needed to understand the post-sync diff.Verification:
[BLOCKING] Stale-reference sweep covered labels, paths, docs, and generated outputs — not just the absence of conflict markers.[BLOCKING] Targeted checks were run, or the sync record says why none applied.[BLOCKING] Dirty-state stash (when used) was reported in the status return so the user can restore it.Orchestrator-managed parallel worktrees bypass this skill. Branches matching <current-branch>-agent/parallel/<slug> merge with plain git merge --no-ff; the merge-guard hook exempts */parallel/* source refs.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
22 skills in this plugin
/academic-writingUse by default for .tex sources. In other formats, use for publication-quality writing such as manuscripts, exhibit notes, footnotes, appendices, and response letters. Covers proofreading, polishing, drafting, reviewing, and citation or consistency checks./agent-orchestrationCoordinate superRA agents and handoffs. Requires superRA:using-superra. Use to dispatch roles, run parallel agents, choose reviewers, or preserve workflow state./communicateCommunication discipline for writing, rewriting, distilling, and reviewing any text meant for human reading, including conversation, task files, planning updates, results, reports, reviews, handoffs, documentation, and interactive HTML pages. Use for every message or artifact a human will read; Must load for superRA who produces human-facing text./econ-data-analysisEconomic data-analysis discipline. Use for importing, cleaning, merging, filtering, variables, aggregation, summary stats, regressions, or figures on economic, financial, or panel data./handoff-docDEPRECATED. Redirects to task-tree and the role skills./implement-taskImplementer role protocol for a superRA task — execute the objective, self-check, write results into the task file, commit, and return status. Load when a dispatch assigns you an implementer seat or when you fill one yourself.npx claudepluginhub fuzhiyu/superra --plugin superRAOther plugins' skills for the same job