moai-lang-r
R 4.4+ best practices with testthat 3.2, lintr 3.2, and data analysis patterns.
Best use case
moai-lang-r is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
R 4.4+ best practices with testthat 3.2, lintr 3.2, and data analysis patterns.
Teams using moai-lang-r should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/moai-lang-r/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How moai-lang-r Compares
| Feature / Agent | moai-lang-r | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
R 4.4+ best practices with testthat 3.2, lintr 3.2, and data analysis patterns.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Lang R Skill ## Skill Metadata | Field | Value | | ----- | ----- | | **Skill Name** | moai-lang-r | | **Version** | 2.0.0 (2025-10-22) | | **Allowed tools** | Read (read_file), Bash (terminal) | | **Auto-load** | On demand when keywords detected | | **Tier** | Language | --- ## What It Does R 4.4+ best practices with testthat 3.2, lintr 3.2, and data analysis patterns. **Key capabilities**: - ✅ Best practices enforcement for language domain - ✅ TRUST 5 principles integration - ✅ Latest tool versions (2025-10-22) - ✅ TDD workflow support --- ## When to Use **Automatic triggers**: - Related code discussions and file patterns - SPEC implementation (`/alfred:2-run`) - Code review requests **Manual invocation**: - Review code for TRUST 5 compliance - Design new features - Troubleshoot issues --- ## Tool Version Matrix (2025-10-22) | Tool | Version | Purpose | Status | |------|---------|---------|--------| | **R** | 4.4.2 | Primary | ✅ Current | | **testthat** | 3.2.2 | Primary | ✅ Current | | **lintr** | 3.2.0 | Primary | ✅ Current | --- ## Inputs - Language-specific source directories - Configuration files - Test suites and sample data ## Outputs - Test/lint execution plan - TRUST 5 review checkpoints - Migration guidance ## Failure Modes - When required tools are not installed - When dependencies are missing - When test coverage falls below 85% ## Dependencies - Access to project files via Read/Bash tools - Integration with `moai-foundation-langs` for language detection - Integration with `moai-foundation-trust` for quality gates --- ## References (Latest Documentation) _Documentation links updated 2025-10-22_ --- ## Changelog - **v2.0.0** (2025-10-22): Major update with latest tool versions, comprehensive best practices, TRUST 5 integration - **v1.0.0** (2025-03-29): Initial Skill release --- ## Works Well With - `moai-foundation-trust` (quality gates) - `moai-alfred-code-reviewer` (code review) - `moai-essentials-debug` (debugging support) --- ## Best Practices ✅ **DO**: - Follow language best practices - Use latest stable tool versions - Maintain test coverage ≥85% - Document all public APIs ❌ **DON'T**: - Skip quality gates - Use deprecated tools - Ignore security warnings - Mix testing frameworks
Related Skills
moai-lang-python
Python 3.13+ development specialist covering FastAPI, Django, async patterns, data science, testing with pytest, and modern Python features. Use when developing Python APIs, web applications, data pipelines, or writing tests.
moai-icons-vector
Vector icon libraries ecosystem guide covering 10+ major libraries with 200K+ icons, including React Icons (35K+), Lucide (1000+), Tabler Icons (5900+), Iconify (200K+), Heroicons, Phosphor, and Radix Icons with implementation patterns, decision trees, and best practices.
moai-foundation-trust
Complete TRUST 4 principles guide covering Test First, Readable, Unified, Secured. Validation methods, enterprise quality gates, metrics, and November 2025 standards. Enterprise v4.0 with 50+ software quality standards references.
moai-foundation-memory
Persistent memory across sessions using MCP Memory Server for user preferences, project context, and learned patterns
moai-foundation-core
MoAI-ADK's foundational principles - TRUST 5, SPEC-First TDD, delegation patterns, token optimization, progressive disclosure, modular architecture, agent catalog, command reference, and execution rules for building AI-powered development workflows
moai-cc-claude-md
Authoring CLAUDE.md Project Instructions. Design project-specific AI guidance, document workflows, define architecture patterns. Use when creating CLAUDE.md files for projects, documenting team standards, or establishing AI collaboration guidelines.
moai-alfred-language-detection
Auto-detects project language and framework from package.json, pyproject.toml, etc.
langsmith-fetch
Debug LangChain and LangGraph agents by fetching execution traces from LangSmith Studio. Use when debugging agent behavior, investigating errors, analyzing tool calls, checking memory operations, or examining agent performance. Automatically fetches recent traces and analyzes execution patterns. Requires langsmith-fetch CLI installed.
langchain-tool-calling
How chat models call tools - includes bind_tools, tool choice strategies, parallel tool calling, and tool message handling
langchain-notes
LangChain 框架学习笔记 - 快速查找概念、代码示例和最佳实践。包含 Core components、Middleware、Advanced usage、Multi-agent patterns、RAG retrieval、Long-term memory 等主题。当用户询问 LangChain、Agent、RAG、向量存储、工具使用、记忆系统时使用此 Skill。
langchain-js
Builds LLM-powered applications with LangChain.js for chat, agents, and RAG. Use when creating AI applications with chains, memory, tools, and retrieval-augmented generation in JavaScript.
langchain-agents
Expert guidance for building LangChain agents with proper tool binding, memory, and configuration. Use when creating agents, configuring models, or setting up tool integrations in LangConfig.