mcpbeat Sign in

Nemo Relay Instrument Typed Wrappers Agent Skill

Use this skill when adding NeMo Relay typed wrappers, domain types, or provider codecs while preserving JSON middleware semantics and caller-visible behavior.

6k tokens
context cost
the whole folder, loaded on every use
5
files
instructions only
0
copies elsewhere
how many repositories repackaged it
102
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/NVIDIA/skills --skill nemo-relay-instrument-typed-wrappers

What comes with it

17 651 bytes besides the instruction
BENCHMARK.md
evals/evals.json
skill-card.md
skill.oms.sig

The instruction itself

7 sections, as written by the author

Use Typed Wrappers And Codecs

Use this skill when an application wants stronger domain types than raw JSON for

tool or LLM integration.

Keep typed boundaries explicit so middleware still sees predictable JSON.

Default Guidance

  • Prefer plain JSON first for initial adoption.
  • Reach for typed wrappers when the application already has stable domain models.
  • Keep in mind that middleware still operates on JSON, not typed objects.

Embedded Codec Model

  • A typed value codec is a pure boundary translator. It converts

application-facing values to JSON before NeMo Relay emits events or runs

middleware, then converts JSON back into the framework callback or caller type.

  • Python exposes JsonPassthrough, DataclassCodec, PydanticCodec, and

BestEffortAnyCodec. Node.js exposes JsonPassthrough plus custom

Codec<T> implementations.

  • Use BestEffortAnyCodec only at boundaries where strict schemas are not

available. Prefer dataclass, Pydantic, or explicit Node.js codecs when the

framework owns a stable schema.

  • Provider codecs are different from typed value codecs: they normalize

provider-specific LLM requests and responses so middleware and subscribers can

inspect messages, tools, model names, generation parameters, and response

annotations.

  • Built-in provider codecs include OpenAIChatCodec, OpenAIResponsesCodec,

and AnthropicMessagesCodec in Python, Node.js, and Rust. Choose the

codec that matches the actual provider payload shape.

  • Response codecs annotate LLM end events with fields such as id, model,

message, tool_calls, finish_reason, usage, provider-specific data, and

extra unmodeled fields. They do not rewrite the caller-visible response.

  • Request codecs run before LLM request intercepts. Intercepts receive both the

raw LLMRequest and optional annotated request; encode merges annotated

edits back before execution intercepts and the provider callback run.

  • Built-in request codecs guarantee JSON-value identity for an unchanged

annotation. They compare edits with a decoded baseline and patch only changed

fields, preserving native representation details and unknown fields.

  • Use instructions, portable messages and components, and the tagged

api_specific request surface for normalized edits. Provider-only union

members use explicit { provider, kind, value } native components. Reserve

top-level extra for unknown future fields.

  • The nemo-relay gateway always supplies matching request codecs on Anthropic

Messages, OpenAI Chat Completions, and OpenAI Responses generation routes.

On those routes, treat raw request.content as read-only and return body

edits through the annotated request. Header edits still use the raw request.

Key Rules

  • Typed wrappers are currently a first-class path for Python and Node.js; Rust

uses codec traits directly

  • Request/response conversion belongs in codecs
  • Intercepts and guardrails see JSON values after encoding
  • Changes made by middleware survive into the decode step

Choose A Codec

  • JsonPassthrough for JSON-native values
  • DataclassCodec or PydanticCodec in Python when the models already exist
  • Custom codecs for domain-specific wire shapes
  • BestEffortAnyCodec only when broad flexibility is worth the looser contract
  • Provider codecs for LLM provider payloads, not application domain objects

conversion

Validation Checklist

  • [ ] Codec output is JSON-compatible
  • [ ] Required fields survive toJson/fromJson or decode/encode
  • [ ] Middleware sees the expected serialized shape
  • [ ] Provider codecs preserve fields they do not understand
  • [ ] Response codec failures do not break the underlying LLM call
  • [ ] Request codec encode preserves original provider fields unless an

intercept intentionally changes them

  • [ ] Provider-native components belong to the codec's provider surface
  • [ ] Gateway generation intercepts do not mutate raw request.content
  • nemo-relay-instrument-calls
  • nemo-relay-plugin-observability
  • nemo-relay-debug-runtime-integration

Other skills for the same job

different authors, same section of the catalogue
Protocolsio Integration
by christophacham
×4

Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.

16k tokens
Tailored Resume Generator
by frostant
×4

Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances

3k tokens
Excalidraw Diagram Generator
by github
vendor ×3

Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.

36k tokens scripts
Expo Dev Client
by openai
vendor ×3

Build and distribute Expo development clients locally or via TestFlight

961 tokens
Executing Plans
by ZhanlinCui
×3

Use when you have a written implementation plan to execute in a separate session with review checkpoints

542 tokens
Anndata
by christophacham
×3

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

16k tokens
Benchling Integration
by christophacham
×3

Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.

14k tokens
Biopython
by christophacham
×3

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

24k tokens

How to use it

Copy the folder

Take nvidia/nemo-relay-instrument-typed-wrappers from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.