/si-coder:sc-syncfrom si-coder
Syncs gitignored files between a VPS and local machine over Tailscale using rsync, with dry-run first and explicit direction via SYNC_ROLE.
Ships in si-coder. 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.
A repo is checked out on two machines (say, a VPS and a laptop). .gitignore
deliberately keeps some files out of git — local notes, generated docs,
scratch config — so they never travel with git push / git pull. Plain SSH
scp/rsync between the two kept failing (NAT, dynamic IP, firewall...);
Tailscale is confirmed working on both ends. This skill wraps rsync over the
Tailscale interface so those gitignored files can move in either direction
without inventing a new transport.
It deliberately does not try to guess which machine it's running on via
hostname — that leaks a real, personally-identifying hostname into logs and
breaks the moment either machine is renamed or reimaged. Instead the
invoking side declares itself explicitly via SYNC_ROLE.
tailscale status shows both).SYNC_REMOTE_PATH assumes this — override it if the layout differs).rsync installed on both machines.sshd running, reachable from the tailnet.Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 in an
elevated PowerShell) and make sure the sshd service is running before a
local-vps/vps-local sync can reach a Windows box. This is a real
per-machine caveat, not a generic assumption — check it on whichever side
is the pull/push target if the connection times out.| Variable | Required | Default | Meaning |
|---|---|---|---|
SYNC_ROLE | yes | — | Which machine this process is running on: exactly vps or local. Never inferred from hostname. |
SYNC_VPS_TS_ADDR | yes | — | Tailscale MagicDNS alias or 100.x IP of the VPS, e.g. your-vps or 100.x.x.x. |
SYNC_LOCAL_TS_ADDR | yes | — | Tailscale MagicDNS alias or 100.x IP of the local machine, e.g. your-laptop. |
SYNC_REMOTE_USER | no | os.userInfo().username | SSH user on the far side. |
SYNC_REMOTE_PATH | no | this repo's own git rev-parse --show-toplevel | Absolute repo path on the far side. Only override if the two checkouts don't live at the same path. |
Direction (vps-local or local-vps) says which way data should flow.
SYNC_ROLE says which machine is running the command right now. Crossing the
two tells the script whether this machine is pushing (source) or pulling
(destination) — the routing table is a small pure function
(route() in scripts/_shared.js), unit tested for all four cells:
| direction | SYNC_ROLE | this machine is | other machine is |
|---|---|---|---|
vps-local | vps | SRC — pushes to local | DST |
vps-local | local | DST — pulls from vps | SRC |
local-vps | local | SRC — pushes to vps | DST |
local-vps | vps | DST — pulls from local | SRC |
SYNC_* values may be stored in the user's sync named connection. In that case run the helper through sc run -- ... rather than exporting the values globally. The export examples below are legacy/manual configuration examples only.
# On the VPS, set once (e.g. ~/.bashrc):
export SYNC_ROLE=vps
export SYNC_VPS_TS_ADDR=your-vps
export SYNC_LOCAL_TS_ADDR=your-laptop
# On the local machine, set once:
export SYNC_ROLE=local
export SYNC_VPS_TS_ADDR=your-vps
export SYNC_LOCAL_TS_ADDR=your-laptop
cd ~/projects/myrepo
# Preview only (default — no files are copied):
node skills/sc-sync/scripts/sync.js vps-local
node skills/sc-sync/scripts/sync.js local-vps
# Actually copy, after reviewing the dry-run diff above:
node skills/sc-sync/scripts/sync.js vps-local --apply
node skills/sc-sync/scripts/sync.js local-vps --apply
# Sync only specific paths instead of the full default set:
node skills/sc-sync/scripts/sync.js local-vps --apply docs/private-notes.md scratch/
The same command works from either machine for a given direction — it's the
env's SYNC_ROLE (not an argv flag) that tells the script whether it's
pushing or pulling this time.
Everything git ls-files --others --ignored --exclude-standard reports for
the repo (i.e. every gitignored-but-present file), excluding anything
under: node_modules, .git, dist, build, .next, .turbo, .venv,
venv, __pycache__, target, vendor, coverage, .cache — those are
build output / VCS internals / language caches, never something you want
hand-carried between machines. Pass explicit paths on the CLI to sync a
specific subset instead of the full default list.
--apply) runs rsync --dry-run so the agent (and the human) can read exactly what would change
before anything is copied.--apply. Run without it, show/summarize the
diff, and only re-run with --apply once the diff has actually been
reviewed — don't add --apply on the first invocation just because the
user asked to "sync".--apply uses rsync -avzu (-u = skip files newer on the destination),
so a newer file on the far side won't be clobbered by an older local copy —
but that's a safety net, not a substitute for reading the dry-run diff.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (rahmanef63/si-coder-agent) — no native marketplace selected
npx claudepluginhub p/rahmanef63-si-coder27 skills in this plugin
/scMain SI-Coder entry point for non-technical users. Turn a plain-language idea or existing web app into a working product, improve frontend quality across UI/UX/DX/AX, and publish it. Route automatically while keeping technical details optional./sc-allTurn a plain-language web-app goal into a working live app. Designed for non-technical users: choose architecture and hosting automatically, connect accounts safely, create/publish code, data, domain and verification end-to-end, delegate user-facing frontend quality to sc-fe, and expose technical details only when needed or requested./sc-axSI-Coder Agent Experience (AX) skill. Make projects, tools, workflows, and frontend actions easy for coding agents to discover, understand, invoke correctly, observe, recover, resume, and verify with low context/token waste./sc-buildBuild a web app from a plain-language idea for a non-technical user. Ask at most three short business/product questions one at a time, infer everything already stated, choose technical defaults automatically, create a first working version, gather product feedback, then publish through /sc-all./sc-cfCloudflare DNS automation — idempotent per-record A/AAAA/CNAME/TXT writes via the Cloudflare v4 API, DNS-only (grey cloud) by default so Let's Encrypt works. Use this provider whenever the domain's nameservers actually delegate to Cloudflare; it mirrors the lib/hostinger.js contract so /sc-all can swap providers. Workers/Pages/R2/tunnel still stubs./sc-clerk(STUB / NOT IMPLEMENTED YET) Clerk auth setup for projects that explicitly use Clerk instead of @convex-dev/auth. Configures instance, sets allowed origins, creates JWT template for Convex integration. Pairs with Clerk MCP (clerk @ mcp.clerk.com/mcp) for SDK snippet generation.Other plugins' skills for the same job