/rdf:r-syncfrom RDF: rfxn Development Framework
Pulls emergency edits made directly to ~/.claude/ back into the RDF canonical source tree, reversing the normal deployment flow.
Ships in RDF: rfxn Development Framework. 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.
None: SKILL.md is the whole skill.
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.
RDF development follows a one-way flow:
rdf/canonical/ (the source of truth)rdf generate claude-code to deploy to ~/.claude/~/.claude/, run /rdf:r-sync
to pull them backThis command handles step 3 — the reverse flow.
$ARGUMENTS — optional flags:
--dry-run: show what would change without writing--v3-only: sync only v3 agent and command files--diff: show detailed diff for each changed filecanonical/ directory in the rdf project~/.claude/ (agents, skills, scripts)claude-code)Compare deployed files against canonical sources:
~/.claude/agents/*.mdcanonical/agents/*.md--- delimited block) before
comparison. Frontmatter is added by the adapter during generate
and must be removed during sync.~/.claude/skills/r-*/SKILL.mdcanonical/commands/*.mdname/description~/.claude/scripts/*.shcanonical/scripts/*.shFor each file with differences:
canonical/{type}/{filename} path and ~/.claude/{type}/{filename} deployed path--diff flag: show unified diff--dry-run flag: report only, do not writeFor each changed file (unless --dry-run):
updated: canonical/{type}/{filename}For unchanged files:
Display a structured sync report using tables, task lists, and blockquotes following the r-start formatting guide.
### Sync Report
| Property | Value |
|----------|-------|
| **Direction** | `~/.claude/` -> `rdf/canonical/` |
| **Adapter** | `claude-code` |
| **Updated** | {count} files |
| **Unchanged** | {count} files |
File sync table — one row per changed file. Omit if no files
were updated. Direction is always deployed -> canonical.
#### Files Synced
| File | Type | Status |
|------|------|--------|
| `canonical/agents/{name}.md` | *agent* | **updated** |
| `canonical/commands/{name}.md` | *command* | **updated** |
| `canonical/scripts/{name}.sh` | *script* | **updated** |
If new files are found (deployed file with no canonical counterpart), use a blockquote warning:
> **New Files Detected** — {N} files in `~/.claude/` have no canonical source
>
> - `~/.claude/agents/{name}.md` — import to `canonical/agents/`?
> - `~/.claude/skills/{name}/SKILL.md` — import to `canonical/commands/`?
If --dry-run was used, add a blockquote callout:
> **Dry Run** — no files were written. Re-run without `--dry-run` to apply.
Next steps — task list of follow-up actions:
#### Next Steps
- [ ] Review changes: `git diff canonical/`
- [ ] Commit with descriptive message
- [ ] Verify round-trip: `rdf generate claude-code`
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.
~/.claude/ — sync is a pull operation<agent>-<variant>.md whose
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 agentrdf sync CLI command handles the actual file operations —
this skill can invoke it or replicate its logic for v3 pathsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rfxn/rdf --plugin rdf38 skills in this plugin
/r-auditUse when you want a full codebase audit: dispatches parallel reviewer and QA passes across the tree.
/r-audit-slopAI slop audit. Finds dead code, orphan helpers, noop functions,
/r-buildUse when a plan exists and you want it built: dispatches the plan-execution orchestrator (engineer/QA/review gates) per phase at the right tier.
/r-context-auditMeasure, score, and report on Claude Code context overhead for this
/r-envUse to assess the environment against an optimal Claude Code + RDF setup: code intelligence plugins and language servers, tools, limits, sandbox, Claude Code currency, .claude files and the price table, with exact fix commands.
/r-initUse to initialize RDF governance on a new or existing repository.
Other plugins' skills for the same job