nemo-relay-instrument-typed-wrappers
Use this skill when adding NeMo Relay typed wrappers, domain types, or provider codecs while preserving JSON middleware semantics and caller-visible behavior.
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install skills-nemo-relay-instrument-typed-wrappersManual setup by platform
Claude Code
~/.claude/skills/skills-nemo-relay-instrument-typed-wrappers/SKILL.md
Instructions
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 exposesJsonPassthroughplus custom
Codec<T>implementations. - Use
BestEffortAnyCodeconly 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,
andAnthropicMessagesCodecin 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
rawLLMRequestand optional annotated request;encodemerges annotated
edits back before execution intercepts and the provider callback run.
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
JsonPassthroughfor JSON-native valuesDataclassCodecorPydanticCodecin Python when the models already exist- Custom codecs for domain-specific wire shapes
BestEffortAnyCodeconly 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/fromJsonordecode/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
encodepreserves original provider fields unless an
intercept intentionally changes them
Related Skills
nemo-relay-instrument-callsnemo-relay-plugin-observabilitynemo-relay-debug-runtime-integration
Security
Reviews (0)
Related skills
Browse all →More from skills
View source →More Build skills
Browse category →Frequently asked questions about nemo-relay-instrument-typed-wrappers
What does the nemo-relay-instrument-typed-wrappers skill do?
Use this skill when adding NeMo Relay typed wrappers, domain types, or provider codecs while preserving JSON middleware semantics and caller-visible behavior. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the nemo-relay-instrument-typed-wrappers skill?
Run `npx @skills-hub-ai/cli install skills-nemo-relay-instrument-typed-wrappers` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/skills-nemo-relay-instrument-typed-wrappers/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does nemo-relay-instrument-typed-wrappers work with?
nemo-relay-instrument-typed-wrappers runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the nemo-relay-instrument-typed-wrappers skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use nemo-relay-instrument-typed-wrappers after installing it?
In Claude Code, type `/skills-nemo-relay-instrument-typed-wrappers` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the nemo-relay-instrument-typed-wrappers skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.