본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트70k · #3131

data-scientist

하는 일

이 에이전트는 CSV, Parquet, JSON 같은 파일의 데이터를 분석하고 처리합니다. 정보를 묶고, 계산하고, 데이터를 정리하거나 그래프를 만들 수 있습니다.

사용하는 경우

  • ✓데이터 파일이 있고 내용을 이해하고 싶을 때.
  • ✓대량의 데이터를 유용한 통찰로 요약할 때.
  • ✓차트로 데이터를 시각화해야 하는 경우.

스킬 링크

https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/shared-skills/skills/data-scientist/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/shared-skills/skills/data-scientist/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“‘sales.csv’ 파일을 분석해서 월별 총 매출을 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

DuckDB와 Polars 같은 특수 도구를 사용해 데이터 파일을 읽습니다. 먼저 데이터 크기와 사용 가능한 메모리를 확인해서, 전부 메모리에 올릴지 데이터를 나눠서 처리할지 가장 좋은 방법을 결정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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.

  1. JavaScript kernel (Bun): run scripts/ensure-js-deps.sh once; it prints the absolute import path for @duckdb/node-api. Dynamic-import it, connect once, query across cells.
  2. 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.insert the printed directory and import. The interpreter itself is never mutated.
  3. uv lane (uv run --with ...): isolation for a heavy or crash-prone one-shot that should not take the kernel down.
  4. No kernel (plain-shell harness): the same engines as one-shots — bun -e for DuckDB-js, uv run python -c for the Python stack — batching several questions per process.

Per-surface patterns and pitfalls: read references/execution-surfaces.md before first use.

Engine selection

  • DuckDB for SQL-shaped work: direct file queries, joins, aggregation, subqueries, window functions. It queries CSV/Parquet/JSON in place without loading, spills to disk past its memory limit, and reads remote files with the same syntax.
  • Polars when the pipeline is DataFrame-shaped: expression-chain transforms, reshapes, streaming datasets past RAM — resident in the Python kernel via ensure-py-deps.sh. Read references/polars-lane.md — the current 1.x API differs from widely-memorized older spellings.
  • numpy when numeric work goes beyond SQL/DataFrame aggregation: statistical tests, linear algebra, FFT, random sampling.
  • matplotlib for every chart — read references/visualization.md first; it carries the quality bar and a mandatory visual check.

Performance folklore ("X is Nx faster at filtering") varies with data shape, cardinality, and hardware. When the engine choice materially matters, measure on the actual data instead of trusting remembered multipliers.

Placement: decide where the computation lives

Probe before you compute — one cell: file size, free RAM, and (when unclear) a row count via a direct scan. Then place the work:

  • Load into memory when the working set stays within roughly a quarter of free RAM AND the session will run repeated queries: CREATE TABLE t AS SELECT ... (or a collected DataFrame) once, then iterate. One scan up front converts every later query from a file re-scan into milliseconds.
  • Query in place / stream when the question is single-pass, or the data exceeds RAM: DuckDB reads files directly (FROM 'data.csv'); past RAM, cap DuckDB's memory and let it spill, or use Polars' streaming engine in the Python kernel. NEVER load a larger-than-RAM dataset fully into memory — swapping stalls the whole machine, while streaming merely takes longer.
  • Query remotely, in place when the data lives elsewhere: DuckDB reads http(s)/S3 Parquet and CSV with projection and predicate pushdown, so fetch the columns and rows the question needs, never the whole file. When data sits on another machine you can execute on, ship the query to the data and return the small result. Rule: result much smaller than data — move the query; repeated local iteration planned — move a pruned copy of the data once.

Sizing heuristics and recipes: references/placement.md.

Hard rules

  • NEVER use pandas. DuckDB and Polars beat it decisively on every workload this skill covers, and the environments this skill assumes do not ship it — .df() on a DuckDB result raises unless pandas is installed; convert with .pl() via Arrow instead.
  • Excel files are not read directly: export to CSV or Parquet first.

Output contract

Answer the question; report row counts and timing for anything heavy; then stop — no bonus

…

자주 묻는 질문

Excel 파일을 쓸 수 있나요?

직접은 안 됩니다. 먼저 Excel에서 CSV나 Parquet 같은 형식으로 데이터를 내보내야 합니다.

데이터가 메모리에 비해 너무 크면 어떻게 되나요?

에이전트는 데이터를 나눠서(스트리밍) 처리하거나, 메모리 사용을 관리하는 도구를 사용해 시스템이 멈추지 않도록 합니다.

그래프를 만들 수 있나요?

네, 답이 시각적으로 더 잘 표현되거나 요청하면 특정 품질 지침에 따라 그래프를 만들 수 있습니다.

상세 정보

작성자의 원본 설명

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.

repo: code-yeongyu/oh-my-openagent

인기도

GitHub 스타
70k
순위
#3131
라이선스
NOASSERTION
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬