contribute-api

tarafından nvidia

NeMo Fabric genel API yüzeyine güvenli şekilde yeni bir katkı sağlayın; Rust, CLI, Python, şema, adaptör ve dokümantasyon paralelliğini göz önünde bulundurarak

npx skills add https://github.com/nvidia/nemo-fabric --skill contribute-api

Contribute A New API Surface

Companion Guidance

Use karpathy-guidelines alongside this skill for implementation or review work. Keep changes scoped, surface assumptions, and define focused validation before editing.

Use this skill when contributing a public API addition or behavior change to the runtime or bindings.

Default Guidance

  • Start from the shared Rust core behavior first
  • Decide whether the CLI, PyO3 binding, Python SDK, type stubs, schemas, or the Python and TypeScript adapter-contract bindings must expose the new surface
  • Keep every affected public surface in parity
  • RunRequest.relay_session_root is forwarded as the typed AgentRunRequest.relay_session_root field. Keep Rust, Python, TypeScript, and schema representations in parity. Context keys do not control Relay propagation; preserve the adapter fallback for unusable UUIDs.
  • OpenShell task commands serialize public SDK config/request/handle/result mappings. Keep forwarding buffered and preserve task-generated IDs, normalized failed results, telemetry references, and declared artifacts. Do not normalize an SDK result as an adapter result. Task paths remain POSIX strings; host artifact destinations stay separate. Unknown outcomes bind the immutable sandbox identity through reattachment and must not be replayed.
  • Runtime discovery uses the typed public Fabric.runtime_status() operation and sdk/runtime-status-report schema. Keep fabric-agent-ctl status delegated to that SDK operation and OpenShell status routed through the existing provider command transport. Preserve recorded lifecycle state separately from health observations, use null handles for stopped records, and exclude environment variables and arbitrary provider metadata from discovery snapshots. Each client caps all runtime records, including pending starts, at 128; evict only stopped records and reject full-capacity starts with runtime_limit_reached before runtime effects.
  • Hermes and OpenClaw cold resume take an optional session_ref directly at runtime start. Omission starts a fresh conversation. runtime.keep_state controls retention. Keep SDK, managed commands, and adapter contexts aligned. Native-only Hermes configurations retain state, advertise session_resume: false, and reject explicit SDK session selection.
  • Metadata inspection takes canonical descriptors in memory. Python inspect_adapter returns AdapterInspection; consume the nested capability_profile only after checking issues. Compatibility failures return issues by default (diagnostics=True); support diagnostics=False for exception-based rejection. Malformed inputs raise in both modes. Keep startup validation rules shared and preserve malformed-input errors. Inspection and planning share Relay ATIF admission: requested output requires descriptor support and exactly one observability component.
  • Update docs and examples in the same branch

Minimum Acceptance

  • Public behavior is clearly described
  • Every affected public surface is covered
  • The validation matrix matches the changed surfaces
  • PR notes explain the user-facing change

References

  • validate-change

  • review-doc-style

  • docs/python-sdk-contract.md

  • schemas/SCHEMA.md

  • justfile

  • Software provenance uses FabricConfig.provenance and optional RunResult.execution. Keep Rust, shared Python evidence dataclasses in nemo-fabric-evidence, SDK result mappings, generated TypeScript types and the canonical schemas/evidence/execution-evidence.schema.json aligned. The shared schema is generated from Rust and consumed by both NB and SB bindings; keep the TypeScript adapter-contract schema copy byte-identical. Preserve strict adapter result shapes: lifecycle evidence is carried beside the outcome. Optional report failure must not replace invocation outcomes.

nvidia tarafından daha fazla skill

accelerated-computing-cudf
nvidia
NVIDIA tarafından yazılmış resmi kılavuz: NVIDIA cuDF GPU DataFrames, pandas hızlandırma, dask-cuDF, ETL, birleştirmeler, groupby, CSV/Parquet G/Ç, boş değer anlam bilimi ve…
accessibility
nvidia
Statik analiz, çalışma zamanı testi, ARIA desenleri, klavye navigasyonu ve renk kontrastı genelinde birleşik accessibility denetim iş akışı. Bu beceriyi kullanın…
accessing-mlflow
nvidia
MLflow'da depolanan değerlendirme sonuçlarını sorgulayın ve göz atın. Kullanıcının çağrı kimliğine göre çalıştırmaları aramak, modeller arasında metrikleri karşılaştırmak, yapıtları getirmek istediğinde kullanın…
add-binding-feature
nvidia
NeMo Relay genel API yüzeyine, çekirdek çalışma zamanı ve etkilenen her bağlama üzerinde yeni bir özellik ekleyin veya mevcut bir özelliği değiştirin.
add-middleware
nvidia
NeMo Relay middleware hattına yeni bir güvenlik duvarı veya müdahale türü ekleyin
aicr-analyzing-snapshots
nvidia
AICR snapshot YAML dosyasını analiz ederken, küme durumunu incelerken, sağlayıcı özelliklerini karşılaştırırken, GPU/ağ topolojisi içgörüleri çıkarırken veya… kullanın.
aicr-auditing-docs
nvidia
AICR'ın Markdown dokümantasyonunu kopya, sapma, şişkinlik ve eksiklikler açısından gözden geçirirken kullanın — proje geliştikçe dokümanların yüksek değerli kalmasını sağlamak için. "audit…" ifadesiyle tetiklenir.
aicr-creating-guided-demos
nvidia
Etkileşimli rehberli demo scripti (demos/*.sh) hazırlar, canlı veya kendi hızında, Frame → Tell → Show → Close deseniyle. "demo script", "guided…" üzerine tetiklenir.