/superRA:worktree-data-syncfrom superRA
Syncs non-git-tracked data (datasets, outputs, caches, symlinked data) between git worktrees. Provides seed, diff, apply, and teardown modes for managing data across worktrees.
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; scripts run unread.
Non-git data sync between existing worktrees — seed, diff, apply, data teardown. Worktree lifecycle (create / enter / remove): skills/agent-orchestration/references/worktree-harness-fallback.md.
Activate the data-sync CLI below for:
Single CLI entrypoint (<skill-dir> = directory containing this SKILL.md; --from defaults to the worktree containing the caller's current directory):
python3 <skill-dir>/scripts/sync_worktree_data.py --to <worktree-path> --mode <seed|diff|apply> [OPTIONS]
--mode seedMaterialize missing managed files in destination from source. Never overwrites existing destination files.
Per managed directory root, a stat-only preflight walk picks the cheapest path:
cp -c -R -p clones the whole root (COW where the filesystem supports it, falling back to shutil.copytree)# data-sync:symlink, since it never switches modes automaticallyEvery failed path is recorded with its reason; seed prints the listing to stderr (capped, plus a total count) and exits nonzero when any path failed.
Optional: --seed-sync-mode <auto|force-symlink|force-cow> (default: auto)
auto: preserve current per-path behavior (symlink-only roots get symlinks, others get copies)force-symlink: create top-level symlinks for all managed roots when the destination path does not already exist; conflicting paths are skippedforce-cow: copy/COW all managed roots, including symlink-only annotated paths--seed-sync-mode is valid only with --mode seed; the CLI rejects it elsewhere.
--mode diffReport source-to-destination differences for managed files.
Statuses:
new: exists in source but missing in destinationmodified: exists in both but differsunchanged: identical (only shown with --include-unmodified)Output options:
--json), compatible with apply mode--mode applyExecute sync actions for selected changes.
Actions:
--action overwrite: copy source file to destination path--action rename: copy source file to destination with suffixSelection options:
--from-json <file> from prior diff output--files <path...> for explicit relative pathsnew + modified)No delete/discard action is provided.
Discovery is stateless and source-driven. Managed roots come from:
git ls-files --others --ignored --exclude-standard --directory, minus a built-in denylist (below).gitignore symlink-only annotationsA gitignored entry whose basename matches a well-known non-data name — .venv, venv, .direnv, node_modules, __pycache__, .pytest_cache, .mypy_cache, .ruff_cache, .tox, .nox, .cache, .ipynb_checkpoints, .quarto, dist, build, *.egg-info, .DS_Store, .env, .envrc, .worktrees, .claude, .codex — is excluded from managed entries. The denylist filters discovered entries only — it excludes nothing from inside an otherwise-managed root. A # data-sync:symlink annotation always wins over the denylist, so an annotated root stays managed even under a denylisted name.
Annotate a path as symlink-only by adding a duplicate line with the tag comment:
Data/
Data/ # data-sync:symlink
The first line is the actual gitignore rule; the second is the annotation the discovery script parses.
Legacy tag # worktree:symlink is also supported.
Symlink-only roots are symlinked in seed auto mode and excluded from diff/apply actions.
# Seed from the current worktree into destination
python3 <skill-dir>/scripts/sync_worktree_data.py \
--to ../MyRepo-feature \
--mode seed
# Seed using top-level symlinks for all managed roots
python3 <skill-dir>/scripts/sync_worktree_data.py \
--to ../MyRepo-feature \
--mode seed \
--seed-sync-mode force-symlink
# Seed using copy/COW for all managed roots (including symlink-only)
python3 <skill-dir>/scripts/sync_worktree_data.py \
--to ../MyRepo-feature \
--mode seed \
--seed-sync-mode force-cow
# Diff explicit source -> destination
python3 <skill-dir>/scripts/sync_worktree_data.py \
--from ../MyRepo-expA \
--to ../MyRepo-expB \
--mode diff --json
# Apply overwrite using diff json
python3 <skill-dir>/scripts/sync_worktree_data.py \
--to ../MyRepo-expB \
--mode apply \
--from-json /tmp/changes.json \
--action overwrite
# Apply rename for explicit files
python3 <skill-dir>/scripts/sync_worktree_data.py \
--from ../MyRepo-expA \
--to ../MyRepo-expB \
--mode apply \
--files output/result.csv notes/draft.md \
--action rename \
--suffix _from_expA
Materialized data inside a worktree (copies, COW clones, symlinks created by --mode seed) disappears when the worktree directory is deleted — no separate "unseed" step. The source worktree's data is untouched.
Worktree removal itself (git worktree remove, branch deletion, safety checks): skills/agent-orchestration/references/worktree-harness-fallback.md §Remove.
skills/agent-orchestration/references/worktree-harness-fallback.md — worktree lifecycle (create / enter / remove), harness tools preferred, raw-git fallback, placement conventions.skills/agent-orchestration/references/parallel-dispatch.md — when parallel subagents each need their own worktree, and how data seeding fits into that flow.What SKILL.md sets; muted values are Claude Code's defaults
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