readr

readr is a skill for Claude Code, Codex from LeoLin990405/r-analytics-skill. It costs 25 tokens per session (857 once invoked), scanned A, original, MIT.

An R package for reading rectangular data, such as rows and columns in CSV, TSV, delimited, or fixed-width files. R is a programming language commonly used for data analysis.

In plain words
What is it for?
Use it to read CSV and TSV datasets, pipe-delimited files, fixed-width files, plain text, or selected portions of large files into R.
Why use it?
It provides consistent ways to load files and control column types, skipped rows, and how much data is read. This reduces manual parsing work and type-related mistakes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

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 skills/leolin990405/r-analytics-skill/readr
Any agent
npx skills add LeoLin990405/r-analytics-skill --skill readr
Clone the repo
git clone --depth 1 https://github.com/LeoLin990405/r-analytics-skill

Made for: Claude Code, Codex.

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 readr

README.md
[![agentmods](https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/readr.svg)](https://agentmods.dev/skills/leolin990405/r-analytics-skill/readr)
Your own site
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/readr"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/readr.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 857 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.1 $0.00025 $0.00857
Opus 5 $0.00013 $0.00428
Sonnet 5 $0.00005 $0.00171
Haiku 4.5 $0.00003 $0.00086

Measured 6d ago against content hash 1794dbd07dfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

readr 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 6d ago.

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.

sub-skills/r-data/r-data-formats/readr/SKILL.md · 158 lines

How it starts

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

readr

Fast rectangular data reading.

Read Functions

library(readr)

# CSV
df <- read_csv("file.csv")
df <- read_csv("file.csv", col_names = FALSE)
df <- read_csv("file.csv", skip = 2)
df <- read_csv("file.csv", n_max = 1000)

# TSV
df <- read_tsv("file.tsv")

# Delimited
df <- read_delim("file.txt", delim = "|")

# Fixed width
df <- read_fwf("file.txt", fwf_widths(c(10, 5, 8)))
df <- read_fwf("file.txt", fwf_positions(c(1, 11, 16), c(10, 15, 23)))

# Lines
lines <- read_lines("file.txt")

# Whole file
text <- read_file("file.txt")

Column Specification

# Explicit types
df <- read_csv("file.csv", col_types = cols(
  id = col_integer(),
  name = col_character(),
  value = col_double(),
  date = col_date(format = "%Y-%m-%d"),
  flag = col_logical()
))

# Column types
col_logical()
col_integer()
col_double()
col_character()
col_factor(levels = c("A", "B", "C"))
col_date(format = "")
col_datetime(format = "")
col_time(format = "")
col_number()
col_skip()
col_guess()

# Shorthand
df <- read_csv("file.csv", col_types = "icdDl")
# i = integer, c = character, d = double, D = date, l = logical
# n = number, _ = skip, ? = guess

Options

df <- read_csv("file.csv",
  # Column names
  col_names = TRUE,
  col_names = c("a", "b", "c"),
  
  # Skip/limit
  skip = 0,
  n_max = Inf,
  skip_empty_rows = TRUE,
  
  # Missing values
  na = c("", "NA", "NULL", "-999"),
  
  # Locale
  locale = locale(
    encoding = "UTF-8",
    decimal_mark = ".",
    grouping_mark = ",",
    date_format = "%Y-%m-%d",
    tz = "UTC"
  ),
  
  # Quoting
  quote = "\"",
  
  # Comments
  comment = "#",
  
  # Trimming
  trim_ws = TRUE,
  
  # Progress
  progress = TRUE
)

Write Functions

# CSV
write_csv(df, "output.csv")
write_csv(df, "output.csv", na = "")
write_csv(df, "output.csv", append = TRUE)

# TSV
write_tsv(df, "output.tsv")

# Delimited
write_delim(df, "output.txt", delim = "|")

# Excel-friendly CSV
write_excel_csv(df, "output.csv")

# Lines
write_lines(lines, "output.txt")

# File
write_file(text, "output.txt")

Read the full file on GitHub · 158 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. 6d ago First seen · 158 lines · 25 tokens per session scan A 1794dbd07dfd

Subscribe to this mod's changes

readr is a skill published in the GitHub repository LeoLin990405/r-analytics-skill (5 stars, last pushed 5mo ago), licensed MIT. It adds 25 tokens to every session and 857 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.

Related

Other skills, from other repositories

fused-storage

The fused storage and secrets MCP tools — inspecting cloud-native datasets and managing secrets. Use when finding/listing/counting S3 objects, reading a Parquet/Arrow/CSV schema, minting a download URL, uploading content, or storing/reading/deleting secrets, via…

fusedio/skills · 138 tokens

ai-science-vision-rag

ColPali-style Vision RAG: embed rendered PDF pages, retrieve via ColBERT MaxSim, feed top-k pages to Qwen2-VL, no OCR. Use for PDF/document QA over figures and tables, multimodal retrieval, or Recall@k/MRR eval.

Pavel-Kravchenko/Bioinformatics · 65 tokens

weak-agent-test

Run the weak-agent adversarial test harness against docx-cli. Spawns weak exercise agents (Haiku by default, Sonnet to probe, or a local agent harness's pre-produced runs) to perform real document tasks over six scenarios — five editing (MNDA form-fill + font fidelity, invoice table-edit/restructure + logo replace…

kklimuk/docx-cli · 218 tokens

jangbu-import

원본 재무 데이터(엑셀·은행 CSV·카드 내역 CSV·영수증 이미지·세금계산서 PDF·카드명세서 PDF)를 표준 거래내역 13개 필드로 변환하는 스킬. PaddleOCR 로컬 처리로 영수증·세금계산서·카드명세서에서 거래 자동 추출, Level 2 민감정보 마스킹 적용.

kimlawtech/korean-jangbu-for · 97 tokens

docx-cli

Read, edit, redline, comment on, and create Microsoft Word .docx files. Use to fill out or edit a Word doc, redline a contract with tracked changes, add/resolve comments, replace text keeping its formatting, restyle headings/fonts, edit tables, or read/extract a .docx as Markdown or text. Also BUILD a new .docx — from…

kklimuk/docx-cli · 116 tokens

databricks-developer-platform

Use this skill to review a Declarative Automation Bundle configuration, authentication setup, and deployment flow against production readiness criteria: bundle structure, deployment modes, run-as identity boundaries, variable resolution timing, OAuth and environment-variable authentication, Terraform versus direct…

VincentChuWaiChow/vanguard-frontier-agentic · 92 tokens