task-yaml
Author, validate, troubleshoot, and adapt SkyPilot task and service YAMLs safely.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- task-yaml
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Author, validate, troubleshoot, and adapt SkyPilot task and service YAMLs safely.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/troubleshooting.md5.8 KB
- 参考文档references/yaml-reference.md14.9 KB
- 脚本scripts/validate_task_or_service_yaml.py5.3 KB
03 SKILL.md 正文
SkyPilot Task YAML
Use this sub-skill when the user needs to write, review, convert, or debug a SkyPilot task YAML, a SkyServe YAML's task portion, or Python code that constructs sky.Task and sky.Resources from YAML-compatible config.
Start Here
- Read
references/yaml-reference.mdfor accepted top-level fields, resource forms, service YAML fields, Python construction APIs, and safe validation flow. - Use
scripts/validate_task_or_service_yaml.pyfor parser-only validation when SkyPilot is installed; it does not launch clusters, contact clouds, or write resources. - Read
references/troubleshooting.mdwhen validation fails or when YAML behavior is ambiguous.
Owns
- Task fields:
name,workdir,num_nodes,resources,envs,secrets,api_server_access,volumes,file_mounts,setup,run, andconfig. - Resource fields:
infra,accelerators,cpus,memory,instance_type,use_spot,disk_size,ephemeral_storage,disk_tier,network_tier,ports,labels,any_of,ordered,autostop,job_recovery,priority, andpriority_class. - Storage/file-mount basics: local path copies, cloud object-store mounts,
MOUNT,COPY,MOUNT_CACHED, mount-cached presets, and Kubernetes volume references. - Python parser construction with
sky.Task.from_yaml(),sky.Task.from_yaml_config(),sky.Task.from_yaml_str(), andsky.Resources(...). - Service YAML field validation for the
service:section and service-spec fragments, then routing runtime SkyServe operations elsewhere.
Route Elsewhere
- Launching, executing, stopping, status, logs, autostop operations, and cleanup belong to
../cluster-operations/SKILL.md. - Managed job lifecycle, queues, recovery behavior, job pools, and job logs belong to
../managed-jobs/SKILL.md. - SkyServe operations, service updates, production rollout, and replica debugging belong to
../serving/SKILL.md. - Credential triage, provider setup, Kubernetes/Slurm/SSH details, GPU availability, and deep storage/provider failures belong to
../infrastructure-storage/SKILL.md. - SDK request handling, API server lifecycle, and remote server compatibility belong to
../sdk-api-server/SKILL.md. - Source edits, tests, formatting, and contribution rules belong to
../repo-development/SKILL.md.
Safe Validation
Run the bundled parser helper from this sub-skill directory or with an explicit path:
python scripts/validate_task_or_service_yaml.py --kind auto path/to/task.yaml
Use --kind task for normal task YAMLs and --kind service for SkyServe YAMLs or service-spec fragments. The helper imports SkyPilot parser APIs only; it is not a dry run, optimizer call, or credential check.
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).