executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
python-apiUse DVC as a Python library for streaming reads, fsspec filesystem access, Repo automation, params/metrics/experiments inspection, and safe exception handling.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when an agent needs to call DVC from Python instead of shelling out to the dvc console script. It covers the supported dvc.api surface, DVCFileSystem/fsspec-style access, selected Repo methods for scripted automation, and common failure modes.
dvc.api.open() when streaming and dvc.api.read() only when loading the full file is acceptable.dvc.api.DVCFileSystem over dvc.api.read().dvc.repo.Repo as a context manager and call public methods such as add(), run(), reproduce(), status(), push(), pull(), and diff().dvc.api helpers first; drop to Repo only when the helper does not expose the needed operation.s3, gs, azure, ssh, gdrive, webdav, webhdfs, hdfs, and oss are optional and may not be installed.references/api-reference.md lists public signatures, return shapes, and safe usage patterns.references/filesystem-access.md explains streaming reads, get_url(), DVCFileSystem, fsspec-style workflows, revisions, remotes, and config injection.references/troubleshooting.md maps common Python API errors to fixes.scripts/dvc_api_smoke.py is a safe helper for verifying the installed package, opening a user-supplied tracked file, and showing optional metadata.../data-and-pipelines/SKILL.md for CLI/stage concepts before translating them to Repo.run() or Repo.reproduce().metrics-params-plots sub-skill for metric, parameter, and plot semantics when available; this sub-skill only covers Python call shapes.../experiments/SKILL.md for experiment workflows; this sub-skill covers dvc.api.exp_show() and dvc.api.exp_save() integration points.../remotes-and-cache/SKILL.md for remote configuration, cache, optional storage extras, and push/pull behavior.dvc.api and dvc.repo.Repo.dvc.api.open() outside a with block; it intentionally raises AttributeError on attribute access before entering the context.dvc.api.open(); only read modes are supported and non-read modes raise ValueError.dvc.api.get_url() as proof that a remote object exists; it resolves the configured cache/remote URL for a tracked output.dvc.api.read() when a streaming reader or DVCFileSystem.open() would avoid memory pressure.