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がスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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.
- 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.
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. Readreferences/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.mdfirst; 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.
人気
- GitHubのスター
- 70k
- ランキング
- #3131
- ライセンス
- NOASSERTION
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
comment-checker
70kエージェントが自動コメントチェッカーからのフィードバックを理解し、それに対応するのを支援します。自動化されたコードやコンテンツのレビュー結果の処理に役立ちます。
lcx-contribute-bug-fix
70kエージェントがLazyCodex関連プロジェクトのバグ修正に貢献するのを支援します。Issueやプルリクエストを作成し、コードの品質を保ちます。
lcx-doctor
70kエージェントがLazyCodexとCodex CLIのインストール状態を確認できるようにします。更新や変更の後に動作がおかしいときに役立ちます。
lcx-report-bug
70kエージェントがLazyCodexプロジェクトのバグを詳しく報告するのを支援します。開発者が問題を修正するのに役立つ情報を含むIssueを作成します。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。