Runs R CMD check to verify package structure, documentation, and code quality, ensuring CRAN-like standards.

Install

mkdir -p .claude/skills/cmd-check && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10451" && unzip -o skill.zip -d .claude/skills/cmd-check && rm skill.zip

Installs to .claude/skills/cmd-check

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

GitHub Copilot Chat Assistant
29 chars · catalog descriptionno explicit “when” trigger
Intermediate

Key capabilities

  • →Execute R package validation checks
  • →Identify syntax errors and broken NAMESPACE files
  • →Detect missing package dependencies
  • →Generate CRAN-style quality reports
  • →Provide actionable feedback for documentation mismatches

How it works

The tool runs R CMD check to verify package structure and documentation against quality standards. It utilizes devtools for standard development loops or rcmdcheck for programmatic control.

Inputs & outputs

You give it
R package source code
You get back
Validation report containing errors, warnings, and notes

When to use cmd-check

  • →Validate R package before merging to main
  • →Run CRAN-style package checks locally
  • →Fix documentation mismatches in NAMESPACE

About cmd-check

Automates the execution of package validation tests. Identifies errors, warnings, and notes, providing actionable feedback for missing dependencies or sync issues.

GitHub Copilot Chat Assistant

When not to use it

  • →When tests have not yet passed
  • →When the environment is not clean

Limitations

  • →Examples requiring internet access may fail unless wrapped in specific tags
  • →Global variable notes require manual suppression via R/HockeyModel-package.R or utils::globalVariables

How it compares

Unlike manual inspection, this tool automates the detection of global variable issues and documentation sync errors through standardized R session execution.

Compared to similar skills

cmd-check side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
cmd-check (this skill)07moNo flagsIntermediate
python-testing-patterns776moReviewIntermediate
pr-review65moReviewIntermediate
pytest810moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry