/rdf:r-modefrom RDF: rfxn Development Framework
Switches the current session's operational mode (development, security, performance, migration, refactoring, debugging, documentation) to change agent behavior, methodology, and review focus.
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.
Switch the operational mode for the current session.
/rdf:r-mode [name] Switch to the named mode /rdf:r-mode Show current mode and available modes
| Mode | Description | When to Use |
|---|---|---|
development | Default TDD workflow | Standard feature work, bug fixes, refactoring |
security | Security assessment | Threat modeling, vuln analysis, hardening |
performance | Performance audit | Profiling, optimization, bottleneck analysis |
migration | Version/platform/data migration | Upgrades, platform moves, data transforms |
refactoring | Behavior preservation | Large restructuring, code movement, API changes |
debugging | Hypothesis-driven | Bug hunts, incident response, root cause analysis |
documentation | Read-then-write | README rewrites, API docs, man pages, guides |
Aliases: security -> security-assessment, performance -> performance-audit, dev -> development, refactor -> refactoring, debug -> debugging, docs -> documentation
When invoked with a mode name:
Read the mode context file from modes/{name}/context.md in the
RDF repository (resolve aliases per the table above)
If .rdf/governance/index.md exists in the current project,
update the Mode: line to reflect the new mode
Display a mode switch confirmation as a blockquote callout:
> **Mode switched**
> `development` -> `security`
>
> - **Methodology:** threat-model-first assessment with STRIDE/DREAD
> - **Gate overrides:** security review pass elevated to *blocking*
> - **Reviewer focus:** input validation, auth boundaries, secret handling
The callout includes:
/rdf:r-build, /rdf:r-verify, /rdf:r-review, etc.) will
include the mode context in their promptsWhen invoked without arguments:
.rdf/governance/index.md for the current mode**Current mode:** `development` *(default)*
The mode context file is appended to agent dispatch prompts. It does NOT modify governance files permanently -- it is session-scoped context that changes how agents interpret their existing governance.
Agents affected:
| Agent | Mode Effect |
|---|---|
Spec (/rdf:r-spec) | Research methodology and brainstorming focus change |
| Planner | Decomposition strategy and phase risk assessment change |
| Dispatcher | Quality gate overrides applied |
| Reviewer | Pass weighting and blocking thresholds change |
| QA | Additional verification requirements per mode |
| UAT | Scenario scope adjusted per mode |
| Engineer | Reads mode context for approach guidance |
/rdf:r-mode security # Switch to security assessment mode
/rdf:r-mode performance # Switch to performance audit mode
/rdf:r-mode migration # Switch to migration planning mode
/rdf:r-mode dev # Switch back to default development mode
/rdf:r-mode # Show current mode and available modes
What 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
Other plugins' skills for the same job