Data Scientist
Processes and analyzes data with resident-kernel engines (DuckDB, Polars) and one-shot...
Install
npx skills add code-yeongyu/oh-my-openagent --skill data-scientist -g -a claude-code -y- Repository
- code-yeongyu/oh-my-openagent70.6k
- Category
- Data and ML
- Updated
- 3d ago
- License
- See repository
- Context cost
- Lightabout 1,377 tokens
- Runs scripts
- Yes, review before use
What it does
Processes and analyzes data with resident-kernel engines (DuckDB, Polars) and one-shot tools. Use for CSV/parquet/JSON analysis, group-by/join/aggregation, time series, distributions, cleaning, or plotting a dataset.
Data Scientist: Hybrid-Engine Data Processing
Answer data questions through the cheapest engine and surface that can prove the answer, and decide where the computation should live before touching the data.
Execution surfaces: resident kernel first
A persistent REPL/eval kernel (many harnesses expose one for JavaScript and Python) is the default surface. Reason: each one-shot process pays roughly a second of spawn-plus-import overhead and re-scans the input file, while a resident connection amortizes both, after a one-time load, repeat queries return in milliseconds. Exploration is repeat queries, so this difference dominates the session.
- JavaScript kernel (Bun): run
scripts/ensure-js-deps.shonce; it prints the absolute import path for@duckdb/node-api. Dynamic-import it, connect once, query across cells. - Python kernel: the default surface for Python work. duckdb/numpy/matplotlib are
typically resident; Polars and pyarrow come from
scripts/ensure-py-deps.sh, which installs them once into a user cache keyed to the kernel's interpreter,sys.path.insertthe printed directory and import. The interpreter itself is never mutated. - uv lane (
uv run --with ...): isolation for a heavy or crash-prone one-shot that should not take the kernel down. - No kernel (plain-shell harness): the same engines as one-shots,
bun -efor DuckDB-js,uv run python -cfor the Python stack, batching several questions per process.
Per-surface patterns and pitfalls: read references/execution-surfaces.md before first use.
