计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
cluster-operations【效率与协作】Operate SkyPilot interactive clusters safely with CLI launch, exec, status, logs, queues, lifecycle cleanup, and troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user wants to operate interactive SkyPilot clusters or cluster-local jobs through the CLI: launch, reuse, execute commands, inspect status, tail logs, view queues, cancel cluster jobs, configure autostop, stop/start, down, dry-run, or estimate cluster cost.
Do not use this sub-skill for deep task YAML schema design, managed jobs, SkyServe services, provider credential setup, Python SDK equivalents, or contributor test workflows. Route those to the sibling sub-skills instead.
task-yaml sub-skill.infrastructure-storage sub-skill.managed-jobs sub-skill.sdk-api-server sub-skill.--gpus, --cpus, --memory, --disk-size, --ports, and --use-spot when relevant, then let SkyPilot choose cloud, region, zone, and instance type unless the user explicitly needs a provider or cluster backend.sky launch --dryrun before any new or expensive cluster launch; it exercises parsing and optimizer planning without launching cloud resources.sky launch -c <cluster> ...; a matching cluster from sky status is reused instead of creating a new one.sky exec <cluster> ... for iterative run-command changes on an existing cluster. It syncs workdir when provided, but skips provisioning, setup commands, and file-mount syncing; rerun sky launch -c <cluster> ... when setup, resources, image, file mounts, or cluster shape changed.sky status -o json, sky queue -o json, and sky cost-report -o json. Use sky logs --status or bounded --tail for log checks rather than scraping tables.--idle-minutes-to-autostop, sky autostop, sky stop, or sky down depending on whether the cluster should be restartable.sky launch --dryrun -c <cluster> <task.yaml> first, then launch with autostop once the user approves cost and provider implications.sky exec <cluster> <task.yaml> or sky exec <cluster> --workdir . <command>.sky status --refresh -o json <cluster> when cloud state may have changed, otherwise sky status -o json <cluster>.sky queue <cluster> -o json, sky logs <cluster> <job-id> --tail 200 --no-follow, and sky cancel <cluster> <job-id> for cluster-local jobs.sky stop <cluster>; restart later with sky start <cluster>.sky down <cluster> only after confirming the user no longer needs cluster disk state.Before suggesting commands that mutate cloud resources, confirm:
stop is restartable and down is destructive.--infra, region, zone, or --instance-type pins are intentional, not accidental optimizer bypasses.--all, --all-users, --purge, --yes, and autodown are justified and scoped.--secret or secret files, not embedded in public logs or command transcripts.Use the bundled command builder for no-launch command planning:
python sub-skills/cluster-operations/scripts/cluster_command_builder.py debug-cycle \
--cluster mycluster \
--task-yaml task.yaml \
--gpus A100:1 \
--idle-minutes 30
The helper prints commands by default. It includes dry-run launch suggestions unless --ready-to-launch is provided, and it refuses to execute launch or destructive commands unless explicit execution and safety flags are set.