AGENT SKILL

repo-development

Modify the SkyPilot repository safely with structure, style, tests, API compatibility, protobuf, dashboard, and PR guidance.

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
Modify the SkyPilot repository safely with structure, style, tests, API compatibility, protobuf, dashboard, and PR guidance.
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

SkyPilot Repo Development

Use this sub-skill when the user wants to change SkyPilot source code, tests, docs, packaging/dependency files, API server schemas, protobufs, dashboard code, CI config, or contribution/PR workflows. This is for maintainer work in a SkyPilot checkout, not for end-user cluster, job, service, storage, or SDK usage.

Start Here

  1. Read references/development-guide.md for the repository map, coding conventions, focused validation strategy, protobuf/dashboard workflows, API compatibility rules, critical paths, and PR handoff checklist.
  2. Read references/troubleshooting.md when formatter versions, protobuf generation, API compatibility, dashboard builds, import-time behavior, smoke tests, or Buildkite status checks fail.
  3. Run scripts/repo_sanity.py with --repo-root . to inspect a checkout and print recommended commands for changed files. It reports only by default; it does not format, run broad tests, start API servers, contact clouds, or mutate the checkout.
  4. Add --check-import only when a read-only import sky probe is safe in the current environment.

Owns

  • Source-editing workflow for sky/, tests/, docs/source/, examples/, llm/, charts/, sky/dashboard/, sky/schemas/proto/, packaging files, CI files, and maintainer scripts.
  • Coding conventions: Google Python style, import placement, typing-only imports, LazyImport, TODO/FIXME attribution, exception usage, dependency pin rationale, and generated-file boundaries.
  • Formatting/linting/test selection: format.sh, development tool versions, pytest unit targets, smoke test safety, dashboard lint/build/test commands, protobuf regeneration, and PR Tested: sections.
  • API compatibility for client/server changes: API_VERSION, MIN_COMPATIBLE_API_VERSION, @versions.minimal_api_version(...), payload defaults, remote API version branching, serialization compatibility, and backward compatibility tests.
  • Critical maintainer paths: managed jobs recovery, API server performance/robustness, CLI/SDK UX, cloud/backend provisioning, and generated protobuf/dashboard coupling.

Route Elsewhere

  • Task YAML authoring or parser-only validation: ../task-yaml/SKILL.md.
  • Interactive cluster commands, status/logs, launch/exec/stop/down behavior: ../cluster-operations/SKILL.md.
  • Managed job launch, queue, recovery, logs, cancellation, and pools: ../managed-jobs/SKILL.md.
  • SkyServe service YAMLs, updates, replicas, autoscaling, and serving logs: ../serving/SKILL.md.
  • Cloud credentials, Kubernetes/Slurm/SSH, storage, volumes, GPU catalogs, and provider-specific triage: ../infrastructure-storage/SKILL.md.
  • Python SDK/API server usage without source edits: ../sdk-api-server/SKILL.md.

Operating Principles

  • Start from the files changed, then select the smallest meaningful formatter/test/build commands; broaden only when risk or reviewers need it.
  • Never run cloud-launching smoke tests, destructive cleanup, Helm upgrades, or credentialed provider checks unless the user explicitly asks and understands cost/resource effects.
  • Treat sky/schemas/generated/ as generated output; edit .proto sources and regenerate instead of hand-editing generated files.
  • Restart the API server after source changes before manual API-server validation; rebuild dashboard assets first when dashboard source changed.
  • For PR summaries, include a concrete Tested: section with commands actually run, skipped expensive checks, and any manual verification notes.

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