dvc
Use the DVC repository skill for data versioning, pipelines, experiments, remotes/cache, metrics/params/plots, Python API usage, and DVC codebase maintenance.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- dvc
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use the DVC repository skill for data versioning, pipelines, experiments, remotes/cache, metrics/params/plots, Python API usage, and DVC codebase maintenance.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/repo-provenance.md2.1 KB
- 参考文档references/repo-routing-metadata.json451 B
- 参考文档references/troubleshooting.md3.2 KB
- 脚本scripts/check_dvc_install.py3.8 KB
03 SKILL.md 正文
DVC Repo Skill
Use this skill when a task names DVC, Data Version Control, dvc CLI commands, the dvc Python package, DVC pipeline files, DVC experiments, or maintenance of the DVC codebase itself.
Install And Smoke Check
- End-user install:
pip install dvcfor core local/HTTP workflows. - Optional remotes: install only the needed extra, such as
pip install 'dvc[s3]',pip install 'dvc[gs]',pip install 'dvc[azure]',pip install 'dvc[ssh]',pip install 'dvc[gdrive]',pip install 'dvc[webdav]',pip install 'dvc[webhdfs]',pip install 'dvc[hdfs]', orpip install 'dvc[oss]'. - Development install: use an editable checkout and install test/lint extras only when maintaining DVC itself.
- Minimal checks:
python -c "import dvc; print(dvc.__version__)",dvc --help, anddvc version.
Route By Task
sub-skills/data-and-pipelines/SKILL.md: use fordvc init,dvc add,.dvcfiles,dvc.yaml,dvc.lock,dvc stage add,dvc repro,dvc status,dvc diff,dvc dag,.dvcignore, and safe pipeline planning.sub-skills/experiments/SKILL.md: use fordvc exp run/show/diff/apply/branch/save/push/pull/remove/rename/clean, queued sweeps, Hydra/set-param runs, and experiment table troubleshooting.sub-skills/remotes-and-cache/SKILL.md: use fordvc remote, storage extras,push,pull,fetch, cloud status, cache configuration,gc,unprotect,import-url,get-url, and missing backend/credential failures.sub-skills/metrics-params-plots/SKILL.md: use fordvc metrics,dvc params,dvc plots, stage metric/plot/param declarations, JSON/Markdown/Vega reporting, and API summaries of metrics or params.sub-skills/python-api/SKILL.md: use fordvc.api.open,read,get_url,DVCFileSystem,Repoautomation, and Python exception handling around DVC data access.sub-skills/repo-development/SKILL.md: use only when editing or reviewing the DVC source repository, selecting focused tests, changing CLI command internals, updating package metadata, or maintaining contribution workflows.
Cross-Cutting References
- Read
references/troubleshooting.mdfor install/import, optional extra, no-repo, remote/cache, and command-routing failures that span several sub-skills. - Read
references/repo-provenance.mdbefore deciding whether this skill matches a current DVC checkout or should be refreshed. - Read
references/repo-routing-metadata.jsononly when importing this skill through DisCo's managed repo-skills-router. - Run
scripts/check_dvc_install.py --helpfor a safe local package and CLI smoke-check helper.
Decision Pattern
- Decide whether the task is end-user DVC usage, Python API usage, or DVC codebase maintenance.
- Route to the most specific sub-skill before reading long references.
- Prefer dry-run/help/config/API inspection before commands that mutate workspace data, remote storage, cache, Git refs, or experiment queues.
- Install only the optional remote/backend extra required by the task; do not default to broad
dvc[all]. - For original DVC repository tests or examples, use
repo-developmentguidance; public runtime workflows should not depend on the original checkout.
Safety Boundaries
- Treat cloud remotes, Studio, network URLs, credentials, and large data transfers as opt-in operations.
- Use
dvc repro --dry, helper scripts, or CLI--helpbefore expensive or destructive workflow changes. - Do not assume optional remote backends are installed just because core
dvcimports. - Do not use private
dvc.*internals for user projects when a public CLI,dvc.api, orRepomethod covers the task.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).