rfxn/rdf/r-sync
Claude Code and agent skill by rfxn/rdf
- community
Checking that the SKILL.md file is still in the repository.
You are running the /rdf:r-sync canonical source synchronization. This is
Install
npx vskill@latest install rfxn/rdf/r-syncSKILL.md
The same SKILL.md was published earlier as rfxn/rdf/r-sync.
You are running the /rdf:r-sync canonical source synchronization. This is an RDF-internal command that pulls emergency edits made directly to ~/.claude/ back into the rdf canonical source tree.
Context
RDF development follows a one-way flow:
- Edit files in
rdf/canonical/(the source of truth) - Run
rdf generate claude-codeto deploy to~/.claude/ - If emergency edits are made directly to
~/.claude/, run/rdf:r-sync
to pull them back
This command handles step 3 — the reverse flow.
Arguments
$ARGUMENTS — optional flags:
- No args: sync all changed files
--dry-run: show what would change without writing--v3-only: sync only v3 agent and command files--diff: show detailed diff for each changed file
Procedure
Step 1: Locate Sources
- RDF canonical root: the
canonical/directory in the rdf project - Deployed target:
~/.claude/(agents, skills, scripts) - Adapter: identify which adapter was used (default:
claude-code)
Step 2: Scan for Changes
Compare deployed files against canonical sources:
Agents
- Source:
~/.claude/agents/*.md - Target:
canonical/agents/*.md - Processing: strip YAML frontmatter (
---delimited block) before
comparison. Frontmatter is added by the adapter during generate and must be removed during sync.
Skills
- Source:
~/.claude/skills/r-*/SKILL.md - Target:
canonical/commands/*.md - Processing: strip YAML frontmatter — canonical stays frontmatter-free;
SKILL.md carries name/description
Scripts
- Source:
~/.claude/scripts/*.sh - Target:
canonical/scripts/*.sh - Processing: direct comparison
Step 3: Report Changes
For each file with differences:
- Show the
canonical/{type}/{filename}path and~/.claude/{type}/{filename}deployed path - If
--diffflag: show unified diff - If
--dry-runflag: report only, do not write
Step 4: Apply Changes
For each changed file (unless --dry-run):
- Strip frontmatter from agent files
- Trim leading blank lines from stripped content
- Write to canonical path
- Report:
updated: canonical/{type}/{filename}
For unchanged files:
- Count but do not report individually
Step 5: Summary
Display a structured sync report using tables, task lists, and blockquotes following the r-start formatting guide.
File sync table — one row per changed file. Omit if no files were updated. Direction is always deployed -> canonical.
If new files are found (deployed file with no canonical counterpart), use a blockquote warning:
If --dry-run was used, add a blockquote callout:
Next steps — task list of follow-up actions:
Frontmatter Stripping
Agent files deployed by rdf generate have YAML frontmatter:
name: rdf-engineer description: Universal implementation engineer... model: opus effort: xhigh
(actual agent prompt content)
The sync command strips everything between the first --- and the second --- (inclusive), keeping only the body content. Leading blank lines after the frontmatter block are also trimmed.
Constraints
- Never modify files in
~/.claude/— sync is a pull operation - Always strip frontmatter from agent files (never commit frontmatter
to canonical)
- New files: if a deployed file has no canonical counterpart, report
it as new file and ask the user whether to import it
- Generated variants: a deployed agent
<agent>-<variant>.mdwhose
variant is declared under variants in adapters/claude-code/agent-meta.json (e.g. engineer-focused.md, reviewer-challenge.md) is a generated copy of canonical/agents/<agent>.md — never report it as a new file or offer to import it; edits belong in the base agent
- Missing deployments: if a canonical file has no deployed counterpart,
ignore it (it may not have been generated for this adapter)
- The
rdf syncCLI command handles the actual file operations —
this skill can invoke it or replicate its logic for v3 paths
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingadapters/claude-plugin/output/skills/r-sync/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rfxn/rdf/r-sync)