r-publish

r-publish is a skill for Claude Code from queelius/claude-anvil. It costs 78 tokens per session (1,985 once invoked), scanned A, original, MIT.

A publication workflow for R packages, where R is a programming language used for statistics and data analysis. It guides publication through CRAN, JOSS, and optionally JSS, which provide package distribution, a peer-reviewed paper and citation information.

In plain words
What is it for?
Use it to check an R package for publication, prepare a CRAN submission, draft a JOSS paper, and optionally prepare a JSS methods paper.
Why use it?
It replaces a multi-stage publication process with one coordinated path and identifies when the project is not an R package.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the pub-pipeline plugin — 5 skills, 5 agents shipped together

Good fit Use it to check an R package for publication, prepare a CRAN submission, draft a JOSS paper, and optionally prepare a JSS methods paper.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add queelius/claude-anvil
Claude Code
/plugin install pub-pipeline

Made for: Claude Code.

Or install pub-pipeline, the plugin that ships this one along with the rest of its 5 skills, 5 agents.

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-publish

README.md
[![agentmods](https://agentmods.dev/badge/skills/queelius/claude-anvil/r-publish/github.svg)](https://agentmods.dev/skills/queelius/claude-anvil/r-publish)
Your own site
<a href="https://agentmods.dev/skills/queelius/claude-anvil/r-publish"><img src="https://agentmods.dev/badge/skills/queelius/claude-anvil/r-publish/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-publish

Your own site · 80×15
<a href="https://agentmods.dev/skills/queelius/claude-anvil/r-publish"><img src="https://agentmods.dev/badge/skills/queelius/claude-anvil/r-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,985 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00078 $0.01985
Opus 5.5 $0.00031 $0.00794
Sonnet 5.5 $0.00016 $0.00397
Haiku 4.5 $0.00008 $0.00198

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

Security

Grade A, and why

r-publish scanned grade A with 1 finding 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.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

5. R-universe status (Bash tool, structured JSON; `{user}` is `r.universe`, skip if unset): `curl -s https://{user}.r-universe.dev/api/packages/{name}` returns `Version`, `_registered`, and `_status` (build result); a 40
pub-pipeline/skills/r-publish/SKILL.md · 130 lines

How it starts

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

R Package Publication Pipeline

Orchestrate CRAN submission, then a JOSS paper, then optionally a JSS methods paper. This skill coordinates /pub-pipeline:cran-audit, /pub-pipeline:joss-audit, and /pub-pipeline:joss-draft into one workflow. Package root: $ARGUMENTS if given, else the current directory. If it has no DESCRIPTION with a Package: field, say so: point to /pub-pipeline:pypi-publish for a pyproject.toml project, or the papermill plugin for a .tex paper.

Strategy

  1. CRAN: distribution, discoverability, install.packages().
  2. JOSS: quick DOI, peer-reviewed citation, Crossref/Google Scholar indexing.
  3. JSS (optional): high-prestige methods paper, Web of Science indexed.

Each stage builds on the previous: CRAN gives legitimacy, JOSS a citable DOI, JSS academic weight for the methodology.

Workflow

Phase 1: Assess Current State

Load user config (Read tool): read .claude/pub-pipeline.local.md if it exists. Extract author metadata, r.domain, r.audience, r.competitors, r.targets, r.universe, r.dependency_chain, and related_work. Companion papers and preprints in related_work shape the JOSS paper (cite them) and the overall strategy. If the file is missing, offer to create it from ${CLAUDE_PLUGIN_ROOT}/docs/user-config-template.md.

  1. Read DESCRIPTION for package metadata (Read tool).
  2. Check git history (Bash tool).
  3. Look for existing paper.md, CITATION.cff (Glob tool).
  4. CRAN status: fetch https://cran.r-project.org/package={name} (WebFetch tool).
  5. R-universe status (Bash tool, structured JSON; {user} is r.universe, skip if unset): curl -s https://{user}.r-universe.dev/api/packages/{name} returns Version, _registered, and _status (build result); a 404 means the package is not in that universe.
  6. JOSS status: search joss.theoj.org (WebSearch tool).

Dependency chain (Bash tool): for each non-base, non-recommended package in Imports, Depends, and LinkingTo:

Rscript -e 'ap <- available.packages(); cat("PKG_NAME" %in% rownames(ap))'

A dependency missing from CRAN is a hard blocker for R CMD check --as-cran. Present the submission order (dependencies first), cross-check r.dependency_chain, and offer to switch to the dependency package.

Read the full file on GitHub · 130 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 · 130 lines · 78 tokens per session scan A bfc35f5d9572

Subscribe to this mod's changes

r-publish is a skill published in the GitHub repository queelius/claude-anvil (3 stars, last pushed 1mo ago), licensed MIT. It adds 78 tokens to every session and 1,985 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-22.

Related

r-publish compared with skills from other repositories

r-publish next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
r-publishqueelius/claude-anvilSkill31mo agoMITA78Claude Code
cpp-reinforcement-learningAznatkoiny/zAI-SkillsSkill1027d agoMITA131Claude Code
cross-language-checkflonat/flonat-researchSkill15819d agoMITA58Claude Code
r-ops0xDarkMatter/claude-modsSkill8610d agoMITA83Claude Code
python-servicesiliaal/whetstoneSkill37todayMITA48Claude Code, Codex
react-frontendiliaal/whetstoneSkill37todayMITA57Claude Code, Codex
pinescriptiliaal/whetstoneSkill37todayMITA64Claude Code, Codex