skills/coding/coding-data-science/SKILL.md
Data science meta: Python + R + Julia for ML, wrangling, visualization, statistical modeling, notebooks
npx skillsauth add alphaonedev/openclaw-graph coding-data-scienceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill allows OpenClaw to handle data science tasks using Python, R, and Julia, focusing on machine learning, data wrangling, visualization, statistical modeling, and notebook execution. It integrates these languages to enable seamless code execution and analysis.
Use this skill when users need to process datasets, build ML models, or perform statistical analysis. Apply it for tasks like exploratory data analysis in Jupyter notebooks, training models with scikit-learn in Python, or visualizing data with ggplot2 in R. Avoid it for non-data tasks like web development.
To use this skill, invoke OpenClaw via CLI or API, specifying the language and code. Always set the environment variable $OPENCLAW_API_KEY for authentication. For example, prefix commands with the skill ID: openclaw execute --skill coding-data-science. Use JSON config files for multi-step workflows, e.g., {"lang": "python", "code": "import pandas as pd"}. Chain tasks by piping outputs, like running a Python script that generates data for an R visualization.
Use the OpenClaw CLI for direct execution:
openclaw execute --skill coding-data-science --lang python --code "import pandas as pd; print(pd.read_csv('data.csv').head())" --output json
lang: julia
code: using Statistics; mean([1,2,3])
from sklearn.linear_model import LinearRegression
model = LinearRegression().fit(X, y)
predictions = model.predict(X_test)
library(ggplot2)
ggplot(iris, aes(Sepal.Length, Sepal.Width)) + geom_point()
Integrate this skill with environments by setting up virtual environments: use pip install pandas for Python or install.packages("dplyr") for R via OpenClaw's pre-execution hooks. For Jupyter notebooks, pass notebook files directly: openclaw execute --skill coding-data-science --lang notebook --file my_notebook.ipynb. Handle dependencies in a config file, e.g., JSON: {"dependencies": {"python": ["pandas"], "r": ["ggplot2"]}}. Use env vars for secrets, like $DATA_API_KEY in code snippets. Ensure compatibility by specifying versions, e.g., Python 3.8+ for certain ML libraries.
Check for language-specific errors: in Python, catch ImportErrors for missing packages; in R, handle non-numeric arguments in functions. Use OpenClaw's error codes: 400 for syntax issues, 500 for runtime failures. Always wrap code in try-except blocks, e.g.,
try:
import missing_library # This will raise ImportError
except ImportError as e:
print(f"Error: {e}")
For R: Use tryCatch(), e.g.,
tryCatch({
summary(iris)
}, error = function(e) print(paste("Error:", e)))
Log outputs with --verbose flag in CLI commands. If authentication fails (e.g., missing $OPENCLAW_API_KEY), retry with proper env setup.
openclaw execute --skill coding-data-science --lang python --code "import pandas as pd; df = pd.read_csv('data.csv'); df.dropna(inplace=True); print(df.head())". This loads, cleans, and previews data in one command.tools
Root web development: project structure, tooling selection, deployment decisions
development
WebAssembly: Rust/Go/C to WASM, wasm-bindgen, Emscripten, WASM Component Model
development
Vue 3: Composition API script setup, Pinia, Vue Router 4, SFCs, Vite, Nuxt 3
tools
Tailwind CSS 4: utility classes, config, JIT, arbitrary values, darkMode, plugins, shadcn/ui