covr

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

An R package that measures how much of an R package's code is exercised by tests. This is called test coverage.

In plain words
What is it for?
Use it to calculate coverage for packages, files, functions, or code snippets, create HTML reports, list uncovered code, and send results to Codecov or Coveralls.
Why use it?
It shows which files or functions lack tests, making untested code easier to find.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to calculate coverage for packages, files, functions, or code snippets, create HTML reports, list uncovered code, and send results to Codecov or Coveralls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leolin990405/r-analytics-skill/covr
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 LeoLin990405/r-analytics-skill --skill covr
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 covr

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/covr"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/covr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 474 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.
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.00022 $0.00474
Opus 5 $0.00011 $0.00237
Sonnet 5 $0.00004 $0.00095
Haiku 4.5 $0.00002 $0.00047

Measured 8d ago against content hash fa9faa2393b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

covr 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 8d 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-dev/r-dev-package/covr/SKILL.md · 119 lines

What it actually says

covr

Test coverage for R packages.

Basic Usage

library(covr)

# Calculate coverage
cov <- package_coverage()

# View report
report(cov)

# Print summary
cov

Coverage Types

# Package coverage
package_coverage()

# File coverage
file_coverage("R/myfile.R", "tests/testthat/test-myfile.R")

# Function coverage
function_coverage("myfunction", test_file = "tests/test.R")

# Code coverage
code_coverage(source_code, test_code)

Coverage Report

# Interactive HTML report
report(cov)

# Zero coverage
zero_coverage(cov)

# Coverage by file
coverage_to_list(cov)

Codecov Integration

# Upload to Codecov
codecov(token = "YOUR_TOKEN")

# In GitHub Actions
# - uses: codecov/codecov-action@v3

Coveralls Integration

# Upload to Coveralls
coveralls(token = "YOUR_TOKEN")

Exclusions

# Exclude lines with comments
# nocov start
code_to_exclude()
# nocov end

# Single line exclusion
x <- 1 # nocov

Options

# Set options
options(covr.exclude_pattern = "# nocov")
options(covr.exclude_start = "# nocov start")
options(covr.exclude_end = "# nocov end")

CI Configuration

# .github/workflows/test-coverage.yaml
on: push
jobs:
  test-coverage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: r-lib/actions/setup-r@v2
      - name: Test coverage
        run: |
          install.packages("covr")
          covr::codecov()
        shell: Rscript {0}

Percent Coverage

# Get percent
percent_coverage(cov)

# By expression type
tally_coverage(cov)
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. 8d ago First seen · 119 lines · 22 tokens per session scan A fa9faa2393b0

Subscribe to this mod's changes

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

Related

Other skills, from other repositories

change-request-to-go-live-protocol

Use this skill when a Dynamics 365 change request must be structured and progressed through impact assessment, fit-gap analysis, UAT sign-off, go/no-go decision, go-live execution, and hypercare using the Success by Design framework. Defines the full change-to-go-live flow — change request intake, solution blueprint…

VincentChuWaiChow/vanguard-frontier-agentic · 147 tokens

environment-to-production-release-protocol

Use this skill when a Power Platform or Dynamics 365 solution must progress through a structured dev-to-test-to-production release pipeline using managed solutions and Power Platform pipelines, when rollback readiness must be verified before go-live, or when a deployment approval gate must be enforced. Defines the…

VincentChuWaiChow/vanguard-frontier-agentic · 128 tokens

erp-crm-cutover-protocol

Use this skill when a Dynamics 365 ERP or CRM implementation is approaching go-live and must progress through mock migration, data reconciliation, cutover runbook execution, rollback testing, and the Success by Design go-live gate before production switchover. Orchestrates d365-data-migration-cutover-agent as primary…

VincentChuWaiChow/vanguard-frontier-agentic · 148 tokens

argo-rollouts-progressive-delivery-review

Use this skill when reviewing Argo Rollouts progressive delivery configuration. Trigger when the user asks about canary or blue-green Rollout strategy correctness, AnalysisTemplate success/failure conditions, traffic weighting provider alignment, canaryService isolation, PDB deadlock risk with Rollout maxSurge…

VincentChuWaiChow/vanguard-frontier-agentic · 79 tokens

betterthink

Enforce a stricter execution workflow for coding tasks: reduce ambiguity before editing, complete and verify one work item before starting the next, keep the project's instructions file lean and current when conventions or commands change, and screenshot-check UI work across mobile, tablet, and desktop. Use when the…

RokyYTR2/BetterThink · 74 tokens

betterthink

Enforce a stricter execution workflow for coding tasks: reduce ambiguity before editing, complete and verify one work item before starting the next, keep the project's rules file lean and current when conventions or commands change, and screenshot-check UI work across mobile, tablet, and desktop. Use when the user…

RokyYTR2/BetterThink · 74 tokens