AGENT SKILL

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

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

  1. Identify the changed surface: CLI parser/command class, Repo method, Python API helper, filesystem/remote backend, config/schema, testing fixture, or docs-only change.
  2. Read references/development-guide.md for the code layout, entry points, packaging facts, and command implementation flow before editing.
  3. Use scripts/select_tests.py with changed file paths to propose focused pytest targets and marker exclusions without running tests.
  4. Read references/test-selection.md before running tests; prefer narrow unit/functional targets and skip opt-in network, Studio, and VSCode contract markers unless explicitly needed.
  5. Read references/troubleshooting.md when imports, optional backends, parser errors, config validation, or DVC test fixtures fail.

Maintainer Defaults

  • Console entry point is dvc = dvc.cli:main; in this checkout dvc.cli is a package and the main implementation is dvc/cli/__init__.py.
  • CLI commands are registered from dvc/cli/parser.py, implemented under dvc/commands/, and usually delegate business logic to dvc/repo/.
  • Tests are not part of setuptools packages (tests, tests.* excluded; namespaces disabled), so runtime code must not import tests.*.
  • Optional remote extras such as azure, gdrive, gs, hdfs, oss, s3, ssh, webdav, and webhdfs are 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.md explains source layout, package metadata, command wiring, editable install expectations, and local quality tooling.
  • references/test-selection.md maps common changed files to focused test targets, marker policy, and safe no-network commands.
  • references/troubleshooting.md covers dependency/import failures, parser errors, optional extras, flaky network/Studio tests, config warnings, and fixture mistakes.
  • scripts/select_tests.py prints 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, Repo automation) to ../python-api/SKILL.md unless the task is about changing those APIs inside the DVC repo.

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