AGENT SKILL

datachain

Routes DataChain operating guidance for Python SDK pipelines, query expressions, CLI and Studio commands, agent-harness knowledge workflows, and repository maintenance.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
datachain
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Routes DataChain operating guidance for Python SDK pipelines, query expressions, CLI and Studio commands, agent-harness knowledge workflows, and repository maintenance.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

DataChain

Use this repo skill when a task involves DataChain: wrangling unstructured AI data, turning files or tables into typed versioned datasets, composing warehouse-backed query operations, running DataChain CLI/Studio commands, installing DataChain's bundled coding-agent skills, or maintaining the DataChain source repository.

DataChain's core model is a lazy DataChain over typed signals. Signals may be scalars, file objects, or nested Pydantic/DataChain models; saved datasets carry schema, lineage, and version metadata so later sessions can reuse them.

Fast Route

  • Python SDK pipeline authoring: reading storage/CSV/JSON/Parquet/database, writing map/gen/agg UDFs, saving datasets, exporting results, checkpoints, delta/retry, File/DataModel types, LLM operations, optional ML extras → read sdk-pipelines.
  • Native query expressions: filter, select, mutate, group_by, merge, union, diff, datachain.func, window functions, vector distances, nested field resolution, backend parity, or schema mapping bugs → read query-engine.
  • CLI and Studio operations: datachain --help, storage/dataset commands, show, gc, auth, jobs, pipelines, command parser behavior, local vs Studio flavor flags, environment variables → read cli-and-studio.
  • Agent harness and knowledge base: datachain skill install|list|uninstall, Claude/Cursor/Codex/Pi/Copilot target layouts, dc-knowledge/, bundled core/knowledge/jobs skills, CAST-style dataset layering, agent data workflows → read agent-harness.
  • Repository maintenance: editing DataChain source, nox/pytest, package extras, contribution workflow, backend-sensitive source changes, signal→column matrix, stale skill checks → read repo-development.

Minimal Checks

For an installed package:

python -c "import datachain as dc; print(dc.__version__)"
datachain --help

For a local DataChain SDK smoke that does not need cloud credentials:

python sub-skills/sdk-pipelines/scripts/local_io_smoke.py
python sub-skills/query-engine/scripts/query_smoke.py

For read-only CLI help checks:

python sub-skills/cli-and-studio/scripts/cli_help_smoke.py job run

For agent skill install layout previews without mutating target directories:

python sub-skills/agent-harness/scripts/skill_layout_check.py --all-targets --local

For source-checkout staleness or maintainer test selection:

python sub-skills/repo-development/scripts/snapshot_repo_state.py
python sub-skills/repo-development/scripts/select_tests.py src/datachain/func/string.py

Cross-Cutting Safety

  • Treat DataChain chains as immutable: every operation returns a new chain.
  • Prefer saved datasets for reusable or expensive UDF/model/LLM results; avoid bypassing .save() by pulling rows into Python and dumping files manually.
  • Use native Query Engine operations instead of pandas/Python loops for filters, joins, grouping, sorting, and SQL-style derivations.
  • Do not run cloud, Studio, LLM-provider, model-download, GPU, destructive, or credentialed workflows unless the user explicitly supplies access and approves side effects/costs.
  • Do not print or store Studio tokens, cloud credentials, model API keys, or user secret environment variables.
  • A local CPU/SQLite smoke is not proof of ClickHouse, BigQuery, Snowflake, Postgres, cloud-provider, Studio, or accelerator behavior.
  • When maintaining the repository, backend-sensitive schema or query changes require a literal test matrix and value read-back assertions.

Shared References and Helpers

Import and Refresh Notes

This generated repo skill is self-contained operating knowledge for DataChain's public package and repository. It does not require the source checkout for runtime use. If a later checkout changes public APIs, CLI flags, optional extras, backend behavior, or bundled agent skills, refresh this repo skill before using it as authoritative guidance.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351