AGENT SKILL

storage-secrets-ingress

Use LeptonAI storage/file, secret, ingress routing, access controls, and mount/env/secret parsing safely.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
storage-secrets-ingress
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use LeptonAI storage/file, secret, ingress routing, access controls, and mount/env/secret parsing safely.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

storage-secrets-ingress

Use this sub-skill when a LeptonAI task involves workspace file storage, secrets, ingress/domain routing, canary endpoint weights, endpoint access-control flags, or validating storage mount/env/secret strings before a workload command.

Route here for

  • lep storage ... file-system commands and the hidden lep file ... alias.
  • Storage operations: upload, download, rm, rmdir, mkdir, du, ls, and ls-file-system.
  • lep secret create/list/remove planning, redaction, and secret-to-env references.
  • lep ingress list/create/get/delete/add-endpoint/remove-endpoint/update-endpoint/set-endpoints planning.
  • Canary routing with relative ingress weights and safe rollout/rollback command sequences.
  • Endpoint access-control review involving --public, --ip-whitelist, and --tokens.
  • Mount strings of the form FROM_PATH:MOUNT_PATH:VOLUME, including node-local and node-nfs:<storage_name>.
  • Preflight parsing of --mount, --env, --secret, IP allowlist, token, and complete ingress endpoint-list plans without contacting Lepton.

Route elsewhere

  • Creating, updating, stopping, deleting, or scaling endpoints/jobs/pods/Ray/fine-tune workloads themselves: use workload-management and return here only for storage, secret, mount, ingress, or access-control details.
  • Login, workspace selection, credential persistence, or token refresh: use workspace-and-auth.
  • Python SDK endpoint calls and APIClient programming patterns not specific to storage/secret/ingress resource methods: use sdk-client.
  • General lep command discovery, shell safety, and top-level CLI behavior: use cli-operations.

Required safety posture

Lepton storage, secret, ingress, and endpoint access-control commands are workspace-scoped cloud operations. Do not run list/create/update/delete/upload/download commands unless the user has authorized the live workspace operation. Before any mutation or data transfer, produce a read-first plan, name the target resource/path/domain, ask for confirmation, and redact tokens and secret values.

Prefer these bundled references:

Quick safe preflight

Use the bundled parser before building workload or ingress commands:

python scripts/validate_mounts_env.py \
  --mount ./data:/mnt/data:node-local \
  --mount storage-cache:/cache:node-nfs:my-nfs \
  --env MODE=production \
  --secret API_KEY \
  --ip-whitelist 203.0.113.0/24 \
  --existing-endpoint stable:100 \
  --set-endpoint stable:90 \
  --set-endpoint canary:10

The script performs only local parsing/linting. It never opens a Lepton workspace client and never transfers data or mutates cloud state.

Minimal mutation checklist

  1. Identify the exact live target: storage path/file-system, secret name, ingress domain/name, endpoint name, or complete endpoint list.
  2. Run a read command first when authorized: lep storage ls ..., lep secret list, lep ingress get -n ..., or the workload status route.
  3. Validate local syntax with scripts/validate_mounts_env.py when mounts/env/secrets/IP allowlists or set-endpoints are involved.
  4. Ask for explicit confirmation for upload, download overwrites, rm, rmdir, secret remove, ingress delete, remove-endpoint, and especially set-endpoints.
  5. Execute only the confirmed command; do not print secret values or literal access tokens in logs.

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