r-ops

r-ops is a skill for Claude Code from 0xDarkMatter/claude-mods. It costs 83 tokens per session (2,238 once invoked), scanned A, original, MIT.

A modern R guide for data analysis, statistics, charts, and reproducible work. R is a programming language commonly used to explore data and build statistical models.

In plain words
What is it for?
Use it for data cleaning, joining and reshaping tables, plotting, statistical modelling, iteration, time-series work, and package workflows.
Why use it?
It helps you choose current R tools and patterns instead of relying on older or inconsistent approaches. It also explains when alternatives such as base R or data.table make sense.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claude-mods plugin — 112 skills, 3 commands, 3 agents, 4 hooks shipped together

Good fit Use it for data cleaning, joining and reshaping tables, plotting, statistical modelling, iteration, time-series work, and package workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0xdarkmatter/claude-mods/r-ops
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.

Any agent
npx skills add 0xDarkMatter/claude-mods --skill r-ops
Clone the repo
git clone --depth 1 https://github.com/0xDarkMatter/claude-mods

Made for: Claude Code.

Or install claude-mods, the plugin that ships this one along with the rest of its 112 skills, 3 commands, 3 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for r-ops

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/r-ops/github.svg)](https://agentmods.dev/skills/0xdarkmatter/claude-mods/r-ops)
Your own site
<a href="https://agentmods.dev/skills/0xdarkmatter/claude-mods/r-ops"><img src="https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/r-ops/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for r-ops

Your own site · 80×15
<a href="https://agentmods.dev/skills/0xdarkmatter/claude-mods/r-ops"><img src="https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/r-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,238 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00083 $0.02238
Opus 5.5 $0.00033 $0.00895
Sonnet 5.5 $0.00017 $0.00448
Haiku 4.5 $0.00008 $0.00224

Measured 1mo ago against content hash ddc23bb2a67c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

r-ops 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check-r-facts.py, tests/run.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/r-ops/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Modern R Operations

A tidyverse-first, current-best-practice reference for working in R (2024+): data analysis, statistics, visualization, and reproducible workflow. Opinionated where the community has converged, with base R and data.table flagged as the right tool when they are.

The modern R stack at a glance

Job Reach for Not (anymore)
Pipe native |> (R 4.1+) %>% only when you need its placeholder/. features
Data frame tibble data.frame defaults (but it's fine)
Wrangle dplyr + tidyr hand-rolled [, subset, aggregate
Read CSV readr::read_csv (prod), data.table::fread (speed) read.csv
Excel / Parquet / DB readxl / arrow / DBI+dbplyr —
Strings / dates / factors stringr / lubridate / forcats base grepl/POSIXlt/factor juggling
Plot ggplot2 base graphics (fine for throwaway plots)
Iterate purrr::map_* + across() sapply (type-unstable); lapply ok in package code
Big / fast data.table (or dtplyr, arrow+duckdb) —
Model base lm/glm + broom; tidymodels for CV/tuning caret
Time series tsibble + fable forecast::auto.arima (maintenance-only)
Reports Quarto (.qmd) R Markdown (still works)
Reproducibility renv + Projects + here() setwd(), saving .RData

The analysis workflow (and where each reference lives)

import → tidy → transform → visualize → model → communicate
  1. Import — get data in: import-io.md
  2. Tidy & transform — the dplyr/tidyr core: tidyverse-core.md
  3. Clean types — strings, dates, factors: strings-dates-factors.md
  4. Iterate — map over many things, list-columns: iteration-functional.md
  5. Visualize — ggplot2 + EDA: visualization.md
  6. Model — tests, lm/glm, broom, tidymodels: modeling-stats.md
  7. Scale up — when dplyr is too slow: data-table.md
  8. Time series — tsibble/fable, xts: time-series.md
  9. Ship it — projects, renv, Quarto, testing: workflow-tooling.md

Read the full file on GitHub · 129 lines

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. 1mo ago First seen · 129 lines · 83 tokens per session scan A ddc23bb2a67c

Subscribe to this mod's changes

r-ops is a skill published in the GitHub repository 0xDarkMatter/claude-mods (68 stars, last pushed 4d ago), licensed MIT. It adds 83 tokens to every session and 2,238 once invoked, about $0.0003 per session on Opus 5.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-09-03.