Skip to content
Data-WisePublic

About

R package ecosystem orchestrator - 15 commands for R package development, dependency analysis, and intelligent orchestration with MCP integration. Claude Code plugin.

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

606 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

RForge Plugin

Version License: MIT CI

R package ecosystem orchestrator for Claude Code β€” 45 commands, R-aware hooks, validation skills.

Self-contained R package analysis for Claude Code. As of v1.3.0 the plugin is fully self-sufficient β€” pure-Python lib/ modules handle discovery, dependencies, status, and init. No MCP server required.

Codex personal plugin

The source rforge-openai adapter 0.2.0 provides three skills: $rforge-check for package validation, $rforge-docs-check for static README/vignette API audits, and $rforge-lint for CI-aware package lint. All reuse the existing Rforge engines. Package/docs skills were verified in fresh sessions on isolated medfit copies; the new lint skill still needs installation and fresh-session discovery. The original adapter was integrated on dev (PR #92); it is not a published adapter release or a port of the Claude command catalog and hooks.

Start with the Codex installation and checks guide. Claude marketplace and Homebrew installation below do not install these Codex skills.

What's new in v2.25.0

  • πŸ“‹ /rforge:docs:check --release-docs. Checks release documentation for drift against the package's own version and changelog (#121).
  • ⚑ Faster CI. The pytest suite runs in parallel with pytest-xdist, pushes to dev run as two shards on Python 3.11, and scripts/local-ci.sh records .local-ci/evidence.json.

What's new in v2.24.0

  • πŸ“£ /rforge:announce drafts and checks release posts. Drafts LinkedIn, Bluesky and Mastodon posts for an R package release and checks every claim (version, exports, "New since" items, citation, install line, length, style) against the release tag. It never posts and never writes to the package repo; --run and --network are opt-in (45 commands). See the reference.
  • πŸ§ͺ Local CI mirror. scripts/local-ci.sh runs the slow CI jobs locally, and pull requests into dev now run Python 3.11 and 3.15 instead of all four.

What's new in v2.23.1

  • 🧠 ADHD-friendly documentation site. A documented design system, regrouped navigation, a "What do you want to do?" home page with a 5-minute quickstart path, and a TL;DR, time line and next-step block on tutorials, guides and top-level pages. Docs-only: no command or flag changes (44 commands). See the design system.

What's new in v2.23.0

  • 🧭 --site audits Quarto articles and pkgdown development-mode sites. .qmd, .Rmd and .rmd articles map to articles/*.html, and development.mode resolves from the pinned DESCRIPTION version with pkgdown 2.2.1's rule. --site must equal the source url plus the development prefix. Every site stage reports content_freshness and deploy_layout as unverified, so a complete stage means route presence only. Sites that were previously incomplete can now complete and fail --fail-on. No command-surface change. See the Docs audit guide.

What's new in v2.22.2

  • 🍎 The A2 release gate moves from macos-14 to macos-15. GitHub retires the macOS 14 runner image on 2026-11-02, so the gate now requires ubuntu-24.04 and macos-15. pytest tests/, the gate's required command, works under the pinned pytest 8.4.2 again, and the artifact actions moved to upload-artifact 7 and download-artifact 8. The source-only Codex adapter 0.2.0 adds rforge-lint. No command-surface change.

What's new in v2.22.1

  • πŸ”’ --run-examples compares short integers exactly. A documented whole number of up to six digits must match the real output ([1] 100 against [1] 101 is now a mismatch). Decimals, scientific notation and longer integers keep their tolerance. See the Docs audit guide.

What's new in v2.22.0

  • 🌐 /rforge:docs:check --site URL [--ref REF] audits a deployed pkgdown site over HTTP and --run-examples [--examples-budget-seconds 300] replays README examples in a guarded R process. Both are opt-in; the default stays offline. Incomplete stages exit 2 with either enabled threshold, and --site reports pkgdown development-mode sites and .qmd articles as incomplete rather than clean. Accepted on ubuntu-24.04 and macos-14 (662 required checks each). See the Docs audit guide.

What's new in v2.21.0

  • πŸ”Ž /rforge:docs:check is a real docs audit β€” lib/docaudit.py checks the calls and signatures in your README and vignettes against the package exports: signature-named-arg (error), signature-names / signature-arity (warn), scannability (info), --since coverage. --eco, --detailed, --fail-on none|warn|error, docs.allowlist. Reports end INCOMPLETE / NOT AUDITED instead of no findings when it could not finish. Opt-in A2 stages add --site URL [--ref REF] and --run-examples [--examples-budget-seconds 300]; the default stays offline. README execution is partial coverage and runs package code. Completed A2 discrepancies are warnings; incomplete stages exit 2 with either enabled threshold. See the Docs audit guide.
  • πŸ› /rforge:finish keeps .STATUS version annotations and still adds version: when missing (#84).
  • πŸ“š New Ecosystem analysis guide, a "Fix a docs:check finding" tutorial, corrected command cards, one Quick Start.

What's new in v2.20.1

  • πŸ› .STATUS parsing fixes β€” lib.status (behind /rforge:status and /rforge:health) now reads the key: value frontmatter dialect every mediationverse package uses (#75) and takes phase only from a phase: key, not from old history lines in the prose (#82).
  • πŸ› /rforge:restore NEWS count β€” entries grouped under ## subsections are counted again (#78).
  • πŸ“š MediationVerse doctrine in the CRAN-submission, dev-cycle and S7-review Command Guides (#76).

What's new in v2.20.0

  • πŸ”– /rforge:restore + /rforge:finish (PR #71) β€” R-package session-boundary commands: recap a single package's state (DESCRIPTION/NEWS.md/git/.STATUS) and sync .STATUS from what actually happened, dry-run by default with a redundant-edit guard and a version-drift check against DESCRIPTION.
  • πŸ›‘οΈ Backed by a new lib/rstatus.py reader/differ, with an apply_updates() helper closing a data-loss trap (a bare RStatus(...) construction silently defaulted every untouched field to None) found in a 4-agent adversarial review before merge.

What's new in v2.19.0

  • πŸ” r:urlcheck evidence-based 403 triage (#67) β€” replaces the hardcoded doi.org heuristic with root-then-URL probing, classifying dead/real_403 (gate) vs bot_blocked/transient (advisory).
  • πŸ› r:rhub dispatch bugfix (#66) β€” rhub::rhub_check()'s first param is gh_url, not a local path; fixed via setwd().
  • 🧹 r:tidy command + r:lint --tidy (#65) β€” tidyverse-conventions audit: lint preset, DESCRIPTION normalization, roxygen completeness, NEWS.md header currency.

Full release history: CHANGELOG.md.

Quick Start

# Quick analysis (< 30 seconds)
/rforge:analyze "Update RMediation bootstrap algorithm"

# Ultra-fast (< 10 seconds)
/rforge:quick

# CRAN submission gate (per-package)
/rforge:r:cran-prep

# Ecosystem rollup (2-5 minutes)
/rforge:thorough "Prepare for CRAN release"

Features

✨ Auto-delegation - Recognizes task patterns, selects appropriate tools ⚑ Parallel execution - Invokes multiple lib/ modules simultaneously πŸ“Š Live progress - Real-time updates as tools complete 🎯 Smart synthesis - Combines results into actionable summary 🧠 ADHD-friendly - Fast feedback, clear structure, visual progress 🐍 Pure-Python lib/ - lib/discovery.py, lib/deps.py, lib/status.py, lib/init.py, lib/cranlint.py (pure Python, no R); lib/rcmd.py runs R engines for the r:* dev-cycle + CRAN commands. No MCP server, no Node.js. See docs/lib-modules.md.

How It Works

User Request
    ↓
Pattern Recognition (CODE_CHANGE, BUG_FIX, etc.)
    ↓
Tool Selection (impact, tests, docs, health)
    ↓
Parallel `lib/` invocations (python3 -m lib.* in subprocess)
    ↓
Results Synthesis (impact + quality + maintenance + next steps)
    ↓
Actionable Summary

Skills

/rforge:analyze

Balanced analysis with recommendations (< 30 seconds)

/rforge:analyze "Update code"

/rforge:quick

Ultra-fast status check (< 10 seconds)

/rforge:quick

/rforge:thorough

Comprehensive analysis with R CMD check (2-5 minutes)

/rforge:thorough "Prepare for CRAN"

Requirements

  1. Python 3.10+ (the lib/ modules run via python3 -m lib.<tool>)
  2. R Environment
    • R >= 4.0.0
    • devtools package (optional, for /rforge:thorough)
    • testthat package (optional)
    • covr package (optional, for coverage analysis)
  3. Claude Code CLI or Claude Desktop
    • Plugin works in both environments

Migrating from v1.2.x? If you have an mcpServers.rforge entry in ~/.claude/settings.json, you can remove it β€” v1.3.0 no longer needs the MCP server. See docs/migration/rforge-mcp-deprecation.md.

Installation

Option 1: Claude Code Marketplace (Recommended)

From inside Claude Code:

/plugin marketplace add Data-Wise/rforge
/plugin install rforge

The marketplace install reads .claude-plugin/marketplace.json from the repository, fetches the plugin into ~/.claude/plugins/rforge, and wires it up automatically. Works on macOS, Linux, and Windows. Update later with /plugin update rforge.

Option 2: Homebrew (macOS)

# Add the Data-Wise tap
brew tap data-wise/tap

# Install rforge plugin
brew install rforge

The Homebrew formula automatically:

  • Installs the plugin to ~/.claude/plugins/rforge
  • Makes it available in Claude Code CLI and Claude Desktop

Option 3: Manual Installation (Local Development)

For Claude Code CLI and Claude Desktop:

# Clone the repository
git clone https://github.com/Data-Wise/rforge.git
cd rforge

# Install in development mode (symlink - changes reflected immediately)
ln -s $(pwd) ~/.claude/plugins/rforge

# Or install in production mode (copy - stable)
cp -r . ~/.claude/plugins/rforge

Installation locations:

  • Plugin directory: ~/.claude/plugins/rforge
  • Commands: ~/.claude/plugins/rforge/commands/
  • Agent: ~/.claude/plugins/rforge/agents/orchestrator.md
  • Lib: ~/.claude/plugins/rforge/lib/

Verify Installation

Step 1: Check plugin

# Check plugin directory exists
ls -la ~/.claude/plugins/rforge

# Verify plugin.json
cat ~/.claude/plugins/rforge/.claude-plugin/plugin.json

Step 2: Check Python

python3 --version    # Expect 3.10+

Step 3: Test end-to-end

# Navigate to an R package
cd ~/projects/r-packages/active/RMediation

# Start Claude Code
claude

# Test a command
/rforge:status

Expected output:

πŸ“Š RMediation - Single Package
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Version: 2.4.0
Tests: 187 passing
Health: 87/100 (B+)

Using in Claude Code CLI

After installation, commands are immediately available:

# Navigate to any R package
cd ~/my-r-package

# Start Claude Code
claude

# Use rforge commands
/rforge:analyze "Update bootstrap algorithm"
/rforge:status
/rforge:quick

Using in Claude Desktop App

RForge automatically loads when you open Claude Desktop. Commands work the same way:

  1. Open Claude Desktop app
  2. Navigate conversation to an R package directory (or specify path)
  3. Use slash commands: /rforge:analyze, /rforge:status, etc.

Migration

  • From v1.2.x: the mcpServers.rforge entry in ~/.claude/settings.json is no longer needed in v1.3.0. Remove it manually (we don't auto-edit user settings). See docs/migration/rforge-mcp-deprecation.md for the full migration table.

Migration from rforge-orchestrator (historical, pre-v1.3.0)

Only relevant if you skipped v1.2.x and are coming from a much older rforge-orchestrator setup. v1.3.0 doesn't use any MCP server, so the end state is just: remove these entries entirely.

If your ~/.claude/settings.json has either an rforge-orchestrator or rforge-mcp entry under mcpServers, delete it:

// Delete BOTH of these patterns if present:
{
  "mcpServers": {
    "rforge-orchestrator": { ... },
    "rforge-mcp": { ... }
  }
}

In v1.3.0+ the plugin runs entirely in-process via lib/ modules β€” there's no MCP server to configure. The plugin loads via /plugin install rforge; no settings.json entries are required.

For the full transition narrative, see docs/migration/rforge-mcp-deprecation.md.

Pattern Recognition

The orchestrator automatically detects what you're doing:

Your Request Pattern Tools Used
"Update algorithm" CODE_CHANGE impact, tests, docs, health
"Add function" NEW_FUNCTION detect, tests, docs
"Fix bug" BUG_FIX tests, impact
"Update docs" DOCUMENTATION docs, detect
"Release 2.1.0" RELEASE health, impact, tests, docs

Example Outputs

Quick Analysis

⚑ Quick analysis running...
βœ… Done! (8.2 seconds)

πŸ“Š QUICK SUMMARY:
βœ… Impact: 2 packages (MEDIUM)
βœ… Tests: 187/187 passing
⚠️ Docs: NEWS.md needs update
βœ… Health: 87/100 (B+)

Full Analysis

🎯 IMPACT: MEDIUM
  β€’ 2 packages affected (mediate, sensitivity)
  β€’ Estimated cascade: 4 hours

βœ… QUALITY: EXCELLENT
  β€’ Tests: 187/187 passing (94% coverage)
  β€’ CRAN: Clean

πŸ“ MAINTENANCE: 2 items
  β€’ NEWS.md needs entry
  β€’ Vignette example outdated

πŸ“‹ NEXT STEPS:
  1. Implement changes (3 hours)
  2. Auto-fix documentation
  3. Run cascade for dependents

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚      Claude Code Session            β”‚
β”‚                                     β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚  RForge Orchestrator Plugin   β”‚ β”‚
β”‚  β”‚                               β”‚ β”‚
β”‚  β”‚  β€’ Pattern Recognition        β”‚ β”‚
β”‚  β”‚  β€’ Tool Selection             β”‚ β”‚
β”‚  β”‚  β€’ Parallel Execution         β”‚ β”‚
β”‚  β”‚  β€’ Progress Display           β”‚ β”‚
β”‚  β”‚  β€’ Results Synthesis          β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚          β”‚                          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚ Parallel python3 -m lib.* calls
           ↓
    β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”
    ↓             ↓      ↓      ↓
[discovery]  [deps] [status] [init]
    ↓             ↓      ↓      ↓
  (8s)          (5s)   (3s)   (7s)
    β”‚             β”‚      β”‚      β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”˜
                  β”‚
                  ↓
         Results synthesized
         by orchestrator

Performance

Mode Tools Time Use Case
Quick 4 quick tools ~10s Status check
Analyze 4 quick + synthesis ~30s Daily dev
Thorough Background R 2-5m Pre-release

Time savings: Parallel execution = 4x faster than sequential!

ADHD-Friendly Design

  1. Fast feedback - Results in seconds, not minutes
  2. Clear structure - Consistent output format
  3. Visual progress - See what's happening
  4. Actionable - Always provides next steps
  5. Interruptible - Can cancel/resume anytime
  6. Incremental - Results stream as they complete

Troubleshooting

"python3: command not found"

# Verify Python 3.10+ is on PATH
python3 --version

# macOS: install via Homebrew
brew install python@3.12

"Package not detected"

# Run from package directory
cd /path/to/package

# Or specify path explicitly
/rforge:analyze --package /path/to/package

"Analysis too slow"

  • Use /rforge:quick for fast status
  • Use /rforge:analyze for balanced speed/depth
  • Only use /rforge:thorough when needed

Configuration

Plugin settings in plugin.json:

{
  "settings": {
    "default_mode": "quick",           // quick, analyze, or thorough
    "parallel_execution": true,         // Run tools in parallel
    "show_progress": true,              // Show progress bars
    "auto_synthesize": true             // Auto-generate summary
  }
}

Development

Plugin structure:

~/.claude/plugins/rforge/
β”œβ”€β”€ .claude-plugin/
β”‚   β”œβ”€β”€ plugin.json          # Plugin manifest (v2.21.0)
β”‚   β”œβ”€β”€ marketplace.json     # Marketplace install metadata
β”‚   β”œβ”€β”€ config.json          # User-tunable options (CRAN mirror, etc.)
β”‚   β”œβ”€β”€ hooks/
β”‚   β”‚   └── pretooluse.py    # R-aware Write/Edit guard (4 rules)
β”‚   └── skills/
β”‚       └── validation/
β”‚           └── description-sync.md  # DESCRIPTION ↔ NEWS.md drift check
β”œβ”€β”€ commands/                # 45 slash commands (/rforge:*)
β”œβ”€β”€ agents/
β”‚   └── orchestrator.md      # Pattern recognition + delegation
β”œβ”€β”€ lib/                     # Pure-Python analysis modules
β”‚   β”œβ”€β”€ discovery.py         # Package detection + ecosystem layout
β”‚   β”œβ”€β”€ deps.py              # Dependency graph + impact
β”‚   β”œβ”€β”€ status.py            # DESCRIPTION + .STATUS health snapshot
β”‚   β”œβ”€β”€ init.py              # ~/.rforge/context.json initializer
β”‚   β”œβ”€β”€ rcmd.py              # R dev-cycle + quality + CRAN-submission engines (v2.7.0)
β”‚   β”œβ”€β”€ cranlint.py          # CRAN-incoming linter β€” DESCRIPTION + build-hygiene (v2.3.0)
β”‚   └── formatters.py        # Output formatting helpers
└── docs/                    # User-facing docs

Contributing

Ideas for improvement:

  • Add caching for repeated analyses
  • Track user preferences for tool selection
  • Add more pattern types
  • Improve time estimates
  • Add result export (markdown, JSON)

License

MIT

Links


Version: 2.25.0 Status: Active development Compatibility: Claude Code 0.1.0+

About

R package ecosystem orchestrator - 15 commands for R package development, dependency analysis, and intelligent orchestration with MCP integration. Claude Code plugin.

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages