moai-lang-r

Enforce R 4.4+ best practices with testthat 3.2 and lintr 3.2, generating test and lint execution plans.

Updated Nov 24, 2025
One-click install
npx skills add https://github.com/jg-chalk-io/Nora-LiveKit --skill moai-lang-r-jg-chalk-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-r
Source: https://github.com/jg-chalk-io/Nora-LiveKit/tree/main/.claude/skills/moai-lang-r
Command: npx skills add https://github.com/jg-chalk-io/Nora-LiveKit --skill moai-lang-r-jg-chalk-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces R language best practices for data analysis, ensuring code quality and reproducibility.

Core Features & Use Cases

  • Best-practice enforcement: Aligns with R 4.4+ standards and modern testing.
  • TRUST 5 integration: Quality gates for data work.
  • Migration guidance: Keeps projects up to date with tool versions and practices.

Quick Start

Use the moai-lang-r skill to validate a dataset analysis script and generate a reproducible testing plan.

Frequently Asked Questions about moai-lang-r

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce R best practices and code quality standards on my data analysis project?

Enforce R best practices by running moai-lang-r on R 4.4+ codebases using testthat 3.2 and lintr 3.2. The Skill generates a test and lint execution plan, identifies code quality issues, and provides migration guidance to align with modern standards and ensure reproducible analysis.

Can I use this Skill to validate my R code for TRUST 5 compliance?

Yes. moai-lang-r integrates TRUST 5 quality gates into R code review workflows, generating compliance checkpoints and review guidance. It works with moai-foundation-trust to ensure data work meets reproducibility and trustworthiness standards.

How does automatic code linting and testing work with R data analysis scripts?

The Skill triggers automatically on code discussions and SPEC implementations, running lintr 3.2 for style checks and testthat 3.2 for test execution. It generates actionable plans and integrates with moai-core-code-reviewer for manual code review workflows.

What if my R project uses older versions of testthat or lintr?

moai-lang-r targets testthat 3.2 and lintr 3.2 on R 4.4+. If your project uses older versions, the Skill provides migration guidance to upgrade tools and practices, helping you transition to supported versions and modern best practices.

Can I use this for TDD workflows in R data analysis?

Yes. The Skill enforces test-driven development practices by integrating testthat 3.2 testing into your workflow. It validates test coverage and code quality through automatic triggers and manual review checkpoints aligned with TDD methodology.

Does this Skill work with existing code review processes?

Yes. moai-lang-r integrates with moai-core-code-reviewer for seamless code review workflows. It generates linting reports, test plans, and TRUST 5 checkpoints that enhance manual reviews, feature design discussions, and troubleshooting cycles.