A technical guardrail and optimization module for AI agents to write idiomatic, bug-free R code by avoiding common language-specific traps.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install r
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install r using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill equips AI coding agents with the specialized knowledge required to navigate the unique quirks of the R programming language. It focuses on high-performance vectorization, robust NA handling, and avoiding the silent bugs that often plague data science workflows. By implementing these standards, users of Openclaw Skills can ensure their generated R scripts are both efficient and statistically accurate.
The skill covers everything from 1-based indexing nuances to the critical differences between base data frames and modern tibbles. It serves as a vital safeguard for developers using Openclaw Skills to automate statistical modeling, data manipulation, and visualization tasks, ensuring that the AI understands R-specific behaviors like column-major memory layout and NA propagation.
To use this skill, ensure that the R language environment is installed on your system. The skill specifically requires the Rscript binary to be available in your system's PATH.
# Check if R is installed
R --version
# Ensure common dependencies are available
Rscript -e "install.packages(c('tibble', 'dplyr', 'purrr'))"
The skill manages R code structure and data manipulation logic following these organizational principles:
| Feature | Standardized Behavior |
|---|---|
| Indexing | Enforces 1-based indexing and prevents silent x[0] bugs. |
| Data Frames | Prefers drop = FALSE to maintain structure during subsetting. |
| Typing | Enforces TRUE/FALSE over T/F to prevent variable overwriting. |
| Sequence | Uses seq_along() instead of 1:length() for empty vector safety. |
| Scope | Utilizes local() environments to prevent global namespace pollution. |
Loading
A personal AI-driven wisdom repository for saving, organizing, and automatically resurfacing meaningful quotes.

A professional-grade study assistant that optimizes Quizlet set creation, session planning, and weak-card diagnostics through atomic learning principles.

A comprehensive framework for designing engaging, logically sound quizzes and professional assessments for any context.

A sophisticated inquiry engine designed to refine questioning techniques through Socratic methodology and bias mitigation.

A comprehensive framework for building, optimizing, and debugging production-grade Retrieval-Augmented Generation pipelines.

A production-grade development skill for building robust Ruby on Rails applications while avoiding performance bottlenecks and security risks.








































