rforge:doc-check

A command that checks whether documentation across R software packages is complete, consistent, and current. R is a programming language commonly used for statistics and data analysis.

In plain words
What is it for?
Use it to check NEWS files, API contracts, examples, vignettes, and cross-package references, either for the whole R package ecosystem or one named package.
Why use it?
It finds mismatches between recent changes and the documents that describe them. This helps prevent users from relying on missing, outdated, or incorrect examples and API descriptions.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/data-wise/claude-plugins/doc-check
Clone the repo
git clone --depth 1 https://github.com/Data-Wise/claude-plugins
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 516 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00015 $0.00516
Opus 5 $0.00008 $0.00258
Sonnet 5 $0.00003 $0.00103
Haiku 4.5 $0.00002 $0.00052

Measured yesterday against content hash 3d27be8d0c2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rforge:doc-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rforge/commands/doc-check.md · 94 lines

What it actually says

/rforge:doc-check - Documentation Drift Checker

Check for documentation inconsistencies and drift across your R package ecosystem.

What It Does

Uses the rforge_doc_check MCP tool to:

  • Verify NEWS.md completeness
  • Check API contract consistency
  • Find outdated examples
  • Identify missing documentation
  • Cross-reference vignettes

Usage

# Check all documentation
/rforge:doc-check

# Check specific package
/rforge:doc-check medfit

# Detailed check with examples
/rforge:doc-check --detailed

Output

Returns documentation audit with:

  • NEWS.md Status: Up-to-date or needs entries
  • API Contracts: Consistency across packages
  • Examples: Outdated or broken examples
  • Vignettes: Cross-references and accuracy
  • Recommendations: What to update

Examples

Clean Documentation

📝 DOCUMENTATION CHECK

NEWS.md: ✅ Current (last entry: 2025-01-15)
API Contracts: ✅ Consistent across ecosystem
Examples: ✅ All working
Vignettes: ✅ Up-to-date

Status: EXCELLENT
No action needed.

Documentation Drift

⚠️ DOCUMENTATION CHECK

NEWS.md: ⚠️ Missing 3 recent changes
  • extract_mediation refactor (2025-01-10)
  • New bootstrap method (2025-01-08)
  • Bug fix #234 (2025-01-05)

API Contracts: ❌ Inconsistency detected
  • probmed expects old signature
  • medsim docs reference deprecated function

Examples: ⚠️ 2 outdated
  • README example uses old API
  • Vignette 2 has broken code

Recommendations:
  1. Update NEWS.md (5 min)
  2. Fix probmed function calls (15 min)
  3. Update examples (20 min)
  4. Regenerate vignettes (10 min)

Total work: ~50 minutes

Use When

  • Before releases
  • After API changes
  • During code reviews
  • Maintaining ecosystem health
  • /rforge:status - Overall health check
  • /rforge:impact - See change impact
  • /rforge:cascade - Plan documentation updates
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 94 lines · 15 tokens per session scan A 3d27be8d0c2a

Subscribe to this mod's changes

rforge:doc-check is a command published in the GitHub repository Data-Wise/claude-plugins (7 stars, last pushed 5d ago), licensed MIT. It adds 15 tokens to every session and 516 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.