Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

coding-r编码 r

Agent Skill

coding-r 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

451

周安装

19

GitHub Stars

4

下载量

158
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:coding-r(编码 r)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/coding-r
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill coding-r
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill coding-r

简介

coding-r 基于 tidyverse 与 ggplot2 生态系统,支持数据框操作与交互式 Shiny 应用。

  • 适用于统计分析、可视化报表生成与 RMarkdown 文档自动化输出。
  • 可执行线性回归、分组汇总与动态图表渲染,但不支持数值计算以外的任务。
  • 使用前请确认 R 4.3+ 已安装并加载 tidyverse 包,避免因缺失依赖导致运行失败。
  • coding-r 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Purpose

This skill allows the AI to execute R programming tasks for data manipulation, visualization, and analysis using packages like tidyverse and ggplot2, focusing on data frames, statistical modeling, RMarkdown reports, Shiny apps, and package development.

When to Use

  • When handling tabular data with data frames, such as cleaning and transforming datasets.
  • For creating visualizations with ggplot2, like scatter plots or histograms.
  • In statistical modeling scenarios, e.g., linear regression on datasets.
  • Building interactive apps with Shiny or generating reports via RMarkdown.
  • Developing or extending R packages for custom data science workflows.

Key Capabilities

  • Manipulate data frames using tidyverse functions (e.g., dplyr for filtering and mutating).
  • Generate plots with ggplot2, including layers, themes, and faceting.
  • Perform statistical modeling with base R or packages like lm() for regression.
  • Create RMarkdown documents for reproducible reports, including code chunks and outputs.
  • Develop Shiny apps for interactive dashboards and package development using devtools.
  • Integrate with data science pipelines, such as reading from CSV or connecting to databases.

Usage Patterns

Always prefix R code with the skill ID "coding-r" in agent commands, e.g., "Use coding-r to load and plot data". Invoke via code blocks in responses, ensuring scripts are self-contained. For multi-step tasks, break into functions: first load libraries, then process data, and finally output results. Use R scripts (.R files) for complex workflows, calling them with source("script.R"). If environment variables are needed (e.g., for API keys in packages), set them like Sys.setenv(API_KEY = "$MY_API_KEY") before running code.

Common Commands/API

  • Load tidyverse: library(tidyverse) followed by df <- read_csv("data.csv") %>% filter(column > 10).
  • Create a ggplot: library(ggplot2); ggplot(df, aes(x=var1, y=var2)) + geom_point() + theme_minimal().
  • Statistical modeling: model <- lm(y ~ x, data=df); summary(model).
  • RMarkdown basics: Start with --- title: "Report" output: html_document --- in a.Rmd file, then add code chunks like {r} print(summary(df)).
  • Shiny app skeleton: library(shiny); ui <- fluidPage(); server <- function(input, output) {}; shinyApp(ui, server).
  • Package development: Use devtools::create("mypackage") to initialize, then add functions in R/ folder.

Integration Notes

Integrate R code into larger workflows by embedding in Python via rpy2 (e.g., import rpy2.robjects as robjects; robjects.r('library(tidyverse)')), or use reticulate for Python-R bridging. For web services, deploy Shiny apps on Shiny Server or shinyapps.io, configuring with environment variables like $SHINY_API_KEY for authentication. Use config files (e.g., YAML) for parameters: create a config.yml with api_key: $MY_API_KEY, then read in R with yaml::yaml.load_file("config.yml"). Ensure R version compatibility (e.g., >=4.0) and install dependencies via install.packages(c("tidyverse", "ggplot2")) before execution.

Error Handling

Use tryCatch() for robust code: tryCatch({result <- lm(y ~ x, data=df)}, error = function(e) print(paste("Error:", e))). Check for missing packages with if (!require(tidyverse)) install.packages("tidyverse"). Handle data issues like NA values with df <- df %>% drop_na() before operations. For Shiny, debug with shiny::runApp(launch.browser=TRUE) and log errors via options(shiny.error = recover). Always validate inputs, e.g., if (is.null(df)) stop("Data frame is missing"). If API calls fail (e.g., in httr package), retry with httr::RETRY("GET", url, times=3).

Concrete Usage Examples

  1. Data Analysis and Plotting: To analyze a CSV file and create a scatter plot, use: library(tidyverse); library(ggplot2); df <- read_csv("data.csv"); ggplot(df, aes(x=age, y=income)) + geom_point() + labs(title="Age vs Income"). This loads data, filters if needed, and outputs the plot.
  2. Statistical Modeling in RMarkdown: For a regression report, create an RMarkdown file: ```` --- output: html_document --- # Analysis ``{r} library(tidyverse); model <- lm(sales ~ advertising, data=df); summary(model) ``. Render with ```rmarkdown::render("report.Rmd") to generate an HTML output with results.

Graph Relationships

  • Related to: ID: coding-python (shares data science cluster for integrated workflows)
  • Related to: ID: coding-julia (overlaps in statistical modeling and data analysis)
  • Connected via tags: "statistics" with other skills like data-analysis, and "coding" cluster for general programming tools

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.61%
按下载量换算58

Claude

29.25%
按下载量换算46

Cursor

19.02%
按下载量换算30

Gemini CLI

9.24%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills