repo-development
Maintain the DVC repository itself: source layout, CLI command internals, focused test selection, optional dependency boundaries, lint/type config, and contribution pitfalls.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- repo-development
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Maintain the DVC repository itself: source layout, CLI command internals, focused test selection, optional dependency boundaries, lint/type config, and contribution pitfalls.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/development-guide.md8.3 KB
- 参考文档references/test-selection.md7.7 KB
- 参考文档references/troubleshooting.md6.4 KB
- 脚本scripts/select_tests.py10.2 KB
03 SKILL.md 正文
DVC Repository Development
Use this sub-skill when an agent is editing the DVC codebase rather than using DVC in an end-user project. It covers package layout, command implementation patterns, focused tests, optional dependency boundaries, and local quality checks for safe maintainer workflows.
Start Here
- Identify the changed surface: CLI parser/command class,
Repomethod, Python API helper, filesystem/remote backend, config/schema, testing fixture, or docs-only change. - Read
references/development-guide.mdfor the code layout, entry points, packaging facts, and command implementation flow before editing. - Use
scripts/select_tests.pywith changed file paths to propose focused pytest targets and marker exclusions without running tests. - Read
references/test-selection.mdbefore running tests; prefer narrow unit/functional targets and skip opt-in network, Studio, and VSCode contract markers unless explicitly needed. - Read
references/troubleshooting.mdwhen imports, optional backends, parser errors, config validation, or DVC test fixtures fail.
Maintainer Defaults
- Console entry point is
dvc = dvc.cli:main; in this checkoutdvc.cliis a package and the main implementation isdvc/cli/__init__.py. - CLI commands are registered from
dvc/cli/parser.py, implemented underdvc/commands/, and usually delegate business logic todvc/repo/. - Tests are not part of setuptools packages (
tests,tests.*excluded; namespaces disabled), so runtime code must not importtests.*. - Optional remote extras such as
azure,gdrive,gs,hdfs,oss,s3,ssh,webdav, andwebhdfsare not installed by default. - Do not run the full test suite by default; start with focused paths and marker exclusions.
Bundled References
references/development-guide.mdexplains source layout, package metadata, command wiring, editable install expectations, and local quality tooling.references/test-selection.mdmaps common changed files to focused test targets, marker policy, and safe no-network commands.references/troubleshooting.mdcovers dependency/import failures, parser errors, optional extras, flaky network/Studio tests, config warnings, and fixture mistakes.scripts/select_tests.pyprints suggested pytest targets and marker exclusions from changed paths; it never imports DVC or runs pytest.
Routing Notes
- Route end-user data tracking, stages,
dvc repro, and pipeline operation to../data-and-pipelines/SKILL.md. - Route end-user remotes, cache behavior,
push/pull/fetch, and storage credentials to../remotes-and-cache/SKILL.md. - Route metrics, params, and plots usage to
../metrics-params-plots/SKILL.md. - Route experiment workflows to
../experiments/SKILL.md. - Route public Python API usage (
dvc.api,DVCFileSystem,Repoautomation) to../python-api/SKILL.mdunless the task is about changing those APIs inside the DVC repo.
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).